FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
pnddata
DrcData
PndDrcBarPoint.cxx
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- PndDrcBarPoint source file -----
3
// ----- Created 09/04/2008 by E. Fioravanti & A. Cecchi -----
4
// -------------------------------------------------------------------------
5
6
7
#include "
PndDrcBarPoint.h
"
8
#include <iostream>
9
10
using
std::cout;
11
using
std::endl;
12
13
14
// ----- Default constructor -------------------------------------------
15
PndDrcBarPoint::PndDrcBarPoint
()
16
:FairMCPoint(),
17
fPdgCode(0),
18
fThetaC(0.),
19
fBarN(0.),
20
fMass(0.),
21
fTrackStatus(0.)
22
{
23
}
24
// -------------------------------------------------------------------------
25
26
27
28
// ----- Standard constructor ------------------------------------------
29
PndDrcBarPoint::PndDrcBarPoint
(Int_t trackID, Int_t detID, TVector3
pos
,
30
TVector3
mom
,
Double_t
tof,
Double_t
length, Int_t pdgCode,
Double_t
thetaC
, Int_t barN, Int_t eventID,
Double_t
mass)
31
:FairMCPoint(trackID,detID,pos,mom, tof, length, 0.0, (UInt_t) eventID),
32
fPdgCode( pdgCode),
33
fThetaC( thetaC),
34
fBarN( barN),
35
fMass( mass),
36
fTrackStatus(0)
37
{
38
}
39
// -------------------------------------------------------------------------
40
41
42
43
// ----- Destructor ----------------------------------------------------
44
PndDrcBarPoint::~PndDrcBarPoint
() { }
45
// -------------------------------------------------------------------------
46
47
48
49
void
PndDrcBarPoint::Print
(
const
Option_t* opt)
const
{
50
(void)opt;
// to remove "unused" warnings
51
cout <<
"-I- PndDrcPoint: DRC Point for trackID---> "
<< fTrackID
52
<<
" in detector "
<< fDetectorID << endl;
53
54
cout <<
" Position ("
<<
fX
<<
", "
<<
fY
<<
", "
<<
fZ
55
<<
") cm"
<< endl;
56
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz
57
<<
") GeV"
<< endl;
58
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
59
<<
" cm "
<< endl;
60
61
}
62
ClassImp
(
PndDrcBarPoint
)
63
pos
TVector3 pos
Definition:
GammaSpectraAnalysis.C:43
PndDrcBarPoint::~PndDrcBarPoint
virtual ~PndDrcBarPoint()
Definition:
PndDrcBarPoint.cxx:44
fX
Double_t fX
Definition:
PndCaloDraw.cxx:34
PndDrcBarPoint.h
mom
Double_t mom
Definition:
plot_dirc.C:14
PndDrcBarPoint::Print
virtual void Print(const Option_t *opt) const
Definition:
PndDrcBarPoint.cxx:49
fZ
Double_t fZ
Definition:
PndCaloDraw.cxx:34
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndDrcBarPoint::PndDrcBarPoint
PndDrcBarPoint()
Definition:
PndDrcBarPoint.cxx:15
PndDrcBarPoint
Definition:
PndDrcBarPoint.h:17
fY
Double_t fY
Definition:
PndCaloDraw.cxx:34
ClassImp
ClassImp(PndAnaContFact)
thetaC
Double_t thetaC
Definition:
plot_dirc.C:16
Generated on Sun Aug 18 2019 03:01:19 for FairRoot/PandaRoot by
1.8.8