SND@LHC Software
Loading...
Searching...
No Matches
TTPoint.cxx
Go to the documentation of this file.
1#include "TTPoint.h"
2
3#include <iostream>
4using std::cout;
5using std::endl;
6
7
8// ----- Default constructor -------------------------------------------
10 : FairMCPoint()
11{
12}
13// -------------------------------------------------------------------------
14
15TTPoint::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 ----------------------------------------------------
25// -------------------------------------------------------------------------
26
27// ----- Public method Print -------------------------------------------
28void 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
42
TTPoint()
Definition TTPoint.cxx:9
virtual ~TTPoint()
Definition TTPoint.cxx:24
virtual void Print(const Option_t *opt) const
Definition TTPoint.cxx:28
ClassImp(ecalContFact) ecalContFact