EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairMCPoint.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairMCPoint.cxx
1 #include "FairMCPoint.h"
2 
3 // ----- Default constructor -------------------------------------------
6  fTrackID(-1),
7  fEventId(0),
8  fPx(0.),
9  fPy(0.),
10  fPz(0.),
11  fTime (0.),
12  fLength(0.),
13  fELoss(0.),
14  fDetectorID (-1),
15  fX(0),
16  fY (0),
17  fZ(0)
18 
19 
20 {
21 
22 }
23 // -------------------------------------------------------------------------
24 
25 
26 
27 // ----- Standard constructor ------------------------------------------
28 FairMCPoint::FairMCPoint(Int_t trackID, Int_t detID, TVector3 pos,
29  TVector3 mom, Double_t tof, Double_t length,
30  Double_t eLoss, UInt_t EventId)
32  fTrackID ( trackID),
33  fEventId (EventId),
34  fPx ( mom.Px()),
35  fPy ( mom.Py()),
36  fPz ( mom.Pz()),
37  fTime ( tof),
38  fLength ( length),
39  fELoss ( eLoss),
40  fDetectorID (detID),
41  fX(pos.X()),
42  fY(pos.Y()),
43  fZ(pos.Z())
44 {
45 }
46 // -------------------------------------------------------------------------
47 
48 
49 
50 // ----- Destructor ----------------------------------------------------
52 // -------------------------------------------------------------------------
53 
54 
55 
57