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