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