FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tutorials
geane
ex1
plane
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 ----------------------------------------------------
55
CbmPlanePoint::~CbmPlanePoint
() { }
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
76
ClassImp
(
CbmPlanePoint
)
CbmPlanePoint::fcharge
Double_t fcharge
Definition:
CbmPlanePoint.h:92
CbmPlanePoint::fX_in
Double32_t fX_in
Definition:
CbmPlanePoint.h:86
CbmPlanePoint::feventID
Int_t feventID
Definition:
CbmPlanePoint.h:96
CbmPlanePoint::fpostflag
Bool_t fpostflag
Definition:
CbmPlanePoint.h:91
CbmPlanePoint::fPz_out
Double32_t fPz_out
Definition:
CbmPlanePoint.h:89
fX
Double_t fX
Definition:
PndCaloDraw.cxx:34
CbmPlanePoint::fY_out
Double32_t fY_out
Definition:
CbmPlanePoint.h:88
CbmPlanePoint::ftrackID
Int_t ftrackID
Definition:
CbmPlanePoint.h:95
CbmPlanePoint::Print
virtual void Print(const Option_t *opt) const
Definition:
CbmPlanePoint.cxx:62
fZ
Double_t fZ
Definition:
PndCaloDraw.cxx:34
CbmPlanePoint::fPz_in
Double32_t fPz_in
Definition:
CbmPlanePoint.h:87
CbmPlanePoint::fX_out
Double32_t fX_out
Definition:
CbmPlanePoint.h:88
CbmPlanePoint
Definition:
CbmPlanePoint.h:10
CbmPlanePoint::fPy_out
Double32_t fPy_out
Definition:
CbmPlanePoint.h:89
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
CbmPlanePoint::CbmPlanePoint
CbmPlanePoint()
Definition:
CbmPlanePoint.cxx:5
CbmPlanePoint::fZ_in
Double32_t fZ_in
Definition:
CbmPlanePoint.h:86
CbmPlanePoint::fCopyNo
Int_t fCopyNo
Definition:
CbmPlanePoint.h:93
CbmPlanePoint::fPy_in
Double32_t fPy_in
Definition:
CbmPlanePoint.h:87
CbmPlanePoint::fY_in
Double32_t fY_in
Definition:
CbmPlanePoint.h:86
CbmPlanePoint::fPx_out
Double32_t fPx_out
Definition:
CbmPlanePoint.h:89
TString
TString
Definition:
SimCompleteLinkDef.h:6
CbmPlanePoint::fZ_out
Double32_t fZ_out
Definition:
CbmPlanePoint.h:88
fY
Double_t fY
Definition:
PndCaloDraw.cxx:34
CbmPlanePoint.h
ClassImp
ClassImp(PndAnaContFact)
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
CbmPlanePoint::fmass
Double_t fmass
Definition:
CbmPlanePoint.h:90
CbmPlanePoint::~CbmPlanePoint
virtual ~CbmPlanePoint()
Definition:
CbmPlanePoint.cxx:55
CbmPlanePoint::fpreflag
Bool_t fpreflag
Definition:
CbmPlanePoint.h:91
CbmPlanePoint::fPlanenam
TString fPlanenam
Definition:
CbmPlanePoint.h:94
CbmPlanePoint::fPx_in
Double32_t fPx_in
Definition:
CbmPlanePoint.h:87
nam
TString nam
Definition:
sim_hypGe.C:48
Generated on Wed Apr 3 2019 10:02:44 for FairRoot/PandaRoot by
1.8.5