CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CoreSimTrack.h
Go to the documentation of this file.
1 #ifndef CoreSimTrack_H
2 #define CoreSimTrack_H
3 
6 
8 
10 {
11 public:
12 
14  CoreSimTrack() : tId(0), thePID(0) {}
15  CoreSimTrack( int ipart, const math::XYZTLorentzVectorD& p ) :
16  tId(0), thePID(ipart), theMomentum(p) {}
17 
18  CoreSimTrack( int ipart, math::XYZVectorD& ip, double ie ) :
19  tId(0), thePID(ipart)
20  { theMomentum.SetXYZT( ip.x(), ip.y(), ip.z(), ie ) ; }
21 
22  const math::XYZTLorentzVectorD& momentum() const { return theMomentum; }
23 
25  int type() const { return thePID;}
26 
28  float charge() const;
29 
31  EncodedEventId eventId() const {return eId;}
32 
33  void setTrackId(unsigned int t) {tId=t;}
34  unsigned int trackId() const {return tId;}
35 
36 private:
37 
39  unsigned int tId;
40  int thePID;
42 };
43 
44 #include <iosfwd>
45 std::ostream & operator <<(std::ostream & o , const CoreSimTrack & t);
46 
47 #endif
CoreSimTrack(int ipart, const math::XYZTLorentzVectorD &p)
Definition: CoreSimTrack.h:15
EncodedEventId eventId() const
Definition: CoreSimTrack.h:31
unsigned int tId
Definition: CoreSimTrack.h:39
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
void setEventId(EncodedEventId e)
Definition: CoreSimTrack.h:30
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float charge() const
charge
Definition: CoreSimTrack.cc:18
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
CoreSimTrack(int ipart, math::XYZVectorD &ip, double ie)
Definition: CoreSimTrack.h:18
CoreSimTrack()
constructors
Definition: CoreSimTrack.h:14
EncodedEventId eId
Definition: CoreSimTrack.h:38
unsigned int trackId() const
Definition: CoreSimTrack.h:34
void setTrackId(unsigned int t)
Definition: CoreSimTrack.h:33
math::XYZTLorentzVectorD theMomentum
Definition: CoreSimTrack.h:41
int type() const
particle type (HEP PDT convension)
Definition: CoreSimTrack.h:25
const math::XYZTLorentzVectorD & momentum() const
Definition: CoreSimTrack.h:22