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