SND@LHC Software
Loading...
Searching...
No Matches
EmulsionDetPoint.cxx
Go to the documentation of this file.
1
#include "
EmulsionDetPoint.h
"
2
3
#include <iostream>
4
using
std::cout;
5
using
std::endl;
6
7
8
// ----- Default constructor -------------------------------------------
9
EmulsionDetPoint::EmulsionDetPoint
()
10
: FairMCPoint()
11
{
12
}
13
// -------------------------------------------------------------------------
14
15
// ----- Standard constructor ------------------------------------------
16
17
EmulsionDetPoint::EmulsionDetPoint
(Int_t trackID, Int_t detID,TVector3 pos, TVector3 mom,
18
Double_t tof, Double_t length,
19
Double_t eLoss, Int_t pdgcode, TVector3 Lpos, TVector3 Lmom)
20
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode),fLpos(Lpos),fLmom(Lmom)
21
{ }
22
23
// -------------------------------------------------------------------------
24
25
26
// ----- Destructor ----------------------------------------------------
27
EmulsionDetPoint::~EmulsionDetPoint
() { }
28
// -------------------------------------------------------------------------
29
30
// ----- Public method Print -------------------------------------------
31
void
EmulsionDetPoint::Print
(
const
Option_t* opt)
const
32
{
33
cout <<
"-I- EmulsionDetPoint: box point for track "
<< fTrackID
34
<<
" in detector "
<< fDetectorID << endl;
35
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ
36
<<
") cm"
<< endl;
37
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz
38
<<
") GeV"
<< endl;
39
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
40
<<
" cm, Energy loss "
<< fELoss*1.0e06 <<
" keV"
<< endl;
41
}
42
// -------------------------------------------------------------------------
43
44
ClassImp
(
EmulsionDetPoint
)
45
EmulsionDetPoint.h
EmulsionDetPoint
Definition
EmulsionDetPoint.h:11
EmulsionDetPoint::EmulsionDetPoint
EmulsionDetPoint()
Definition
EmulsionDetPoint.cxx:9
EmulsionDetPoint::~EmulsionDetPoint
virtual ~EmulsionDetPoint()
Definition
EmulsionDetPoint.cxx:27
EmulsionDetPoint::Print
virtual void Print(const Option_t *opt) const
Definition
EmulsionDetPoint.cxx:31
ClassImp
ClassImp(ecalContFact) ecalContFact
Definition
ecalContFact.cxx:8
shipLHC
EmulsionDetPoint.cxx
Generated by
1.9.8