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