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