FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
pnddata
MdtData
PndMdtPoint.cxx
Go to the documentation of this file.
1
2
#include <iostream>
3
4
using
std::cout;
5
using
std::endl;
6
7
#include "
PndMdtPoint.h
"
8
#include "
PndDetectorList.h
"
9
10
// ----- Default constructor -------------------------------------------
11
PndMdtPoint::PndMdtPoint
() : FairMCPoint(), fPosIn(), fMomIn()
12
{
13
14
}
15
// -------------------------------------------------------------------------
16
17
18
19
// ----- Standard constructor ------------------------------------------
20
PndMdtPoint::PndMdtPoint
( Int_t trackID, Int_t detID, TVector3
pos
, TVector3
mom
,
21
Double_t
tof,
Double_t
length,
Double_t
eLoss,
22
TVector3 pos_in, TVector3 mom_in)
23
: FairMCPoint(trackID, detID, pos, mom,tof, length, eLoss ), fPosIn(pos_in), fMomIn(mom_in)
24
{
25
SetLink(FairLink(
"MCTrack"
, trackID));
26
}
27
28
29
// ----- Destructor ----------------------------------------------------
30
PndMdtPoint::~PndMdtPoint
() { }
31
// -------------------------------------------------------------------------
32
33
// ----- Public method Print -------------------------------------------
34
void
PndMdtPoint::Print
(
const
Option_t* opt)
const
{
35
cout <<
"-I- PndMdtPoint: MDT Point for track "
<< fTrackID <<
" in the detector "
<< fDetectorID << endl;
36
cout <<
" in event "
<< fEventId <<
" track length "
<< fLength <<
" time "
<< fTime <<
" eloss "
<< fELoss << endl;
37
cout <<
" Position In ("
<< fPosIn.X() <<
", "
<< fPosIn.Y() <<
", "
<< fPosIn.Z() <<
") cm^3*s"
<< endl;
38
cout <<
" Momentum In ("
<<
fMomIn
.X() <<
", "
<<
fMomIn
.Y() <<
", "
<<
fMomIn
.Z() <<
") GeV^4"
<< endl;
39
cout <<
" Position Out ("
<<
fX
<<
", "
<<
fY
<<
", "
<<
fZ
<<
") cm^3*s"
<< endl;
40
cout <<
" Momentum Out("
<< fPx <<
", "
<< fPy <<
", "
<< fPz <<
") GeV^4"
<< endl;
41
cout <<
" opt = "
<< opt << endl;
42
}
43
// -------------------------------------------------------------------------
44
45
46
47
ClassImp
(
PndMdtPoint
)
pos
TVector3 pos
Definition:
GammaSpectraAnalysis.C:43
PndMdtPoint::PndMdtPoint
PndMdtPoint()
Definition:
PndMdtPoint.cxx:11
fX
Double_t fX
Definition:
PndCaloDraw.cxx:34
PndMdtPoint::~PndMdtPoint
virtual ~PndMdtPoint()
Definition:
PndMdtPoint.cxx:30
mom
Double_t mom
Definition:
plot_dirc.C:14
PndMdtPoint::fMomIn
ClassDef(PndMdtPoint, 2) protected TVector3 fMomIn
Definition:
PndMdtPoint.h:64
fZ
Double_t fZ
Definition:
PndCaloDraw.cxx:34
PndMdtPoint::Print
virtual void Print(const Option_t *opt) const
Definition:
PndMdtPoint.cxx:34
PndDetectorList.h
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
fY
Double_t fY
Definition:
PndCaloDraw.cxx:34
ClassImp
ClassImp(PndAnaContFact)
PndMdtPoint.h
PndMdtPoint
Definition:
PndMdtPoint.h:12
Generated on Sun Aug 18 2019 03:01:38 for FairRoot/PandaRoot by
1.8.8