FairRoot/PandaRoot
CbmPlanePoint.cxx
Go to the documentation of this file.
1 #include "iostream.h"
2 #include "CbmPlanePoint.h"
3 
4 // ----- Default constructor -------------------------------------------
5 CbmPlanePoint::CbmPlanePoint() : FairMCPoint() {
6  fX_out = fY_out = fZ_out = 0.;
7  fPx_out = fPy_out = fPz_out = 0.;
8 }
9 // -------------------------------------------------------------------------
10 
11 
12 
13 // ----- Standard constructor ------------------------------------------
14 // CbmPlanePoint::CbmPlanePoint(Int_t trackID, Int_t detID, TVector3 posIn,
15 // TVector3 posOut, TVector3 momIn, TVector3 momOut,
16 // Double_t tof, Double_t length, Double_t eLoss)
17 // : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss) {
18 // fX_out = posOut.X();
19 // fY_out = posOut.Y();
20 // fZ_out = posOut.Z();
21 // fPx_out = momOut.Px();
22 // fPy_out = momOut.Py();
23 // fPz_out = momOut.Pz();
24 // }
25 // -------------------------------------------------------------------------
26 CbmPlanePoint::CbmPlanePoint(Int_t trackID, Int_t detID, TVector3 posIn,
27  TVector3 posOut, TVector3 momIn, TVector3 momOut,
28  Double_t tof, Double_t length, Double_t eLoss, Double_t charge,
29  Double_t mass, Bool_t preflag, Bool_t postflag,TString nam,Int_t eventID)
30  : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss) {
31  fX_out = posOut.X();//cm
32  fY_out = posOut.Y();//cm
33  fZ_out = posOut.Z();
34  fX_in = posIn.X();
35  fY_in = posIn.Y();
36  fZ_in = posIn.Z();
37  fPx_out = momOut.Px();
38  fPy_out = momOut.Py();
39  fPz_out = momOut.Pz();
40  fPx_in = momIn.Px();
41  fPy_in = momIn.Py();
42  fPz_in = momIn.Pz();
43  fcharge = charge;
44  fmass = mass;
45  fpreflag = preflag;
46  fpostflag = postflag;
47  fCopyNo = detID;
48  fPlanenam =nam;
49  ftrackID = trackID;
50  feventID = eventID;
51 }
52 
53 
54 // ----- Destructor ----------------------------------------------------
56 // -------------------------------------------------------------------------
57 
58 
59 
60 
61 // ----- Public method Print -------------------------------------------
62 void CbmPlanePoint::Print(const Option_t* opt) const {
63  cout << "-I- CbmPlanePoint: Plane Point for track " << fTrackID
64  << " in detector " << fDetectorID << endl;
65  cout << " Position (" << fX << ", " << fY << ", " << fZ
66  << ") cm" << endl;
67  cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
68  << ") GeV" << endl;
69  cout << " Time " << fTime << " ns, Length " << fLength
70  << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
71 }
72 // -------------------------------------------------------------------------
73 
74 
75 
Double_t fcharge
Definition: CbmPlanePoint.h:92
Double32_t fX_in
Definition: CbmPlanePoint.h:86
Bool_t fpostflag
Definition: CbmPlanePoint.h:91
Double32_t fPz_out
Definition: CbmPlanePoint.h:89
Double_t fX
Definition: PndCaloDraw.cxx:34
Double32_t fY_out
Definition: CbmPlanePoint.h:88
virtual void Print(const Option_t *opt) const
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double32_t fPz_in
Definition: CbmPlanePoint.h:87
Double32_t fX_out
Definition: CbmPlanePoint.h:88
Double32_t fPy_out
Definition: CbmPlanePoint.h:89
Double_t
Double32_t fZ_in
Definition: CbmPlanePoint.h:86
Double32_t fPy_in
Definition: CbmPlanePoint.h:87
Double32_t fY_in
Definition: CbmPlanePoint.h:86
Double32_t fPx_out
Definition: CbmPlanePoint.h:89
Double32_t fZ_out
Definition: CbmPlanePoint.h:88
Double_t fY
Definition: PndCaloDraw.cxx:34
ClassImp(PndAnaContFact)
Double_t fmass
Definition: CbmPlanePoint.h:90
virtual ~CbmPlanePoint()
TString fPlanenam
Definition: CbmPlanePoint.h:94
Double32_t fPx_in
Definition: CbmPlanePoint.h:87
TString nam
Definition: sim_hypGe.C:48