FairShip
Loading...
Searching...
No Matches
DISparticle.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: LGPL-3.0-or-later
2
// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3
// Collaboration
4
5
#ifndef NEWMUONDIS_DISPARTICLE_H_
6
#define NEWMUONDIS_DISPARTICLE_H_
7
8
#include <ostream>
9
10
class
DISparticle
{
11
public
:
12
DISparticle
() {
13
pid
= 0;
14
px
= 0;
15
py
= 0;
16
pz
= 0;
17
E
= 0;
18
};
19
~DISparticle
() {};
20
21
int
pid
;
22
double
px
;
23
double
py
;
24
double
pz
;
25
double
E
;
26
};
27
28
inline
std::ostream&
operator<<
(std::ostream& os,
const
DISparticle
& p) {
29
os <<
"["
<< p.pid <<
","
<< p.px <<
","
<< p.py <<
","
<< p.pz <<
","
<< p.E
30
<<
"]"
;
31
return
os;
32
}
33
34
#endif
// NEWMUONDIS_DISPARTICLE_H_
operator<<
std::ostream & operator<<(std::ostream &os, const DISparticle &p)
Definition
DISparticle.h:28
DISparticle
Definition
DISparticle.h:10
DISparticle::DISparticle
DISparticle()
Definition
DISparticle.h:12
DISparticle::~DISparticle
~DISparticle()
Definition
DISparticle.h:19
DISparticle::px
double px
Definition
DISparticle.h:22
DISparticle::pz
double pz
Definition
DISparticle.h:24
DISparticle::py
double py
Definition
DISparticle.h:23
DISparticle::pid
int pid
Definition
DISparticle.h:21
DISparticle::E
double E
Definition
DISparticle.h:25
newMuonDIS
DISparticle.h
Generated by
Doxygen
1.15.0