SND@LHC Software
Loading...
Searching...
No Matches
TargetPoint.cxx
Go to the documentation of this file.
1
#include "
TargetPoint.h
"
2
3
#include <iostream>
4
using
std::cout;
5
using
std::endl;
6
7
8
// ----- Default constructor -------------------------------------------
9
TargetPoint::TargetPoint
()
10
: FairMCPoint()
11
{
12
}
13
// -------------------------------------------------------------------------
14
15
// ----- Standard constructor ------------------------------------------
16
/*
17
TargetPoint::TargetPoint(Int_t trackID, Int_t detID,TVector3 pos, TVector3 mom,
18
Double_t tof, Double_t length,
19
Double_t eLoss, Int_t pdgcode,
20
Bool_t emTop, Bool_t emBot,Bool_t emCESTop, Bool_t emCESBot, Bool_t tt,
21
Int_t nPlate, Int_t nColumn, Int_t nRow, Int_t nWall)
22
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),fPdgCode(pdgcode),
23
fEmTop(emTop), fEmBot(emBot), fEmCESTop(emCESTop), fEmCESBot(emCESBot),fTT(tt),
24
fNPlate(nPlate),fNColumn(nColumn), fNRow(nRow),fNWall(nWall)
25
{ }
26
*/
27
28
TargetPoint::TargetPoint
(Int_t trackID, Int_t detID,TVector3 pos, TVector3 mom,
29
Double_t tof, Double_t length,
30
Double_t eLoss, Int_t pdgcode)
31
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),fPdgCode(pdgcode)
32
{ }
33
34
// -------------------------------------------------------------------------
35
36
//, EmTop, EmBot, EmCESTop,EmCESBot,TT,NPlate,NColumn,NRow,NWall
37
// ----- Destructor ----------------------------------------------------
38
TargetPoint::~TargetPoint
() { }
39
// -------------------------------------------------------------------------
40
41
// ----- Public method Print -------------------------------------------
42
void
TargetPoint::Print
(
const
Option_t* opt)
const
43
{
44
cout <<
"-I- TargetPoint: ShipRpc point for track "
<< fTrackID
45
<<
" in detector "
<< fDetectorID << endl;
46
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ
47
<<
") cm"
<< endl;
48
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz
49
<<
") GeV"
<< endl;
50
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
51
<<
" cm, Energy loss "
<< fELoss*1.0e06 <<
" keV"
<< endl;
52
}
53
// -------------------------------------------------------------------------
54
55
ClassImp
(
TargetPoint
)
56
TargetPoint.h
TargetPoint
Definition
TargetPoint.h:11
TargetPoint::TargetPoint
TargetPoint()
Definition
TargetPoint.cxx:9
TargetPoint::Print
virtual void Print(const Option_t *opt) const
Definition
TargetPoint.cxx:42
TargetPoint::~TargetPoint
virtual ~TargetPoint()
Definition
TargetPoint.cxx:38
ClassImp
ClassImp(ecalContFact) ecalContFact
Definition
ecalContFact.cxx:8
nutaudet
TargetPoint.cxx
Generated by
1.9.8