CbmRoot
CbmTrdPoint.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmTrdPoint source file -----
3 // ----- Created 27/07/04 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 #include "CbmTrdPoint.h"
7 
8 #include <FairLogger.h> // for Logger, LOG
9 #include <FairMCPoint.h> // for FairMCPoint
10 
11 #include <TVector3.h> // for TVector3
12 
13 // ----- Default constructor -------------------------------------------
15  : FairMCPoint()
16  , fX_out(0.)
17  , fY_out(0.)
18  , fZ_out(0.)
19  , fPx_out(0.)
20  , fPy_out(0.)
21  , fPz_out(0.) {}
22 // -------------------------------------------------------------------------
23 
24 
25 // ----- Standard constructor ------------------------------------------
27  Int_t detID,
28  const TVector3& posIn,
29  const TVector3& momIn,
30  const TVector3& posOut,
31  const TVector3& momOut,
32  Double_t tof,
33  Double_t length,
34  Double_t eLoss)
35  : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
36  , fX_out(posOut.X())
37  , fY_out(posOut.Y())
38  , fZ_out(posOut.Z())
39  , fPx_out(momOut.Px())
40  , fPy_out(momOut.Py())
41  , fPz_out(momOut.Pz()) {}
42 // -------------------------------------------------------------------------
43 
44 
45 // ----- Destructor ----------------------------------------------------
47 // -------------------------------------------------------------------------
48 
49 
50 // ----- Public method Print -------------------------------------------
51 void CbmTrdPoint::Print(const Option_t* /*opt*/) const {
52  LOG(info) << "TRD point for track " << fTrackID << " in detector "
53  << fDetectorID;
54  LOG(info) << " Position In (" << fX << ", " << fY << ", " << fZ << ") cm";
55  LOG(info) << " Momentum In (" << fPx << ", " << fPy << ", " << fPz
56  << ") GeV";
57  LOG(info) << " Position Out (" << fX_out << ", " << fY_out << ", "
58  << fZ_out << ") cm";
59  LOG(info) << " Momentum Out (" << fPx_out << ", " << fPy_out << ", "
60  << fPz_out << ") GeV";
61  LOG(info) << " Time " << fTime << " ns, Length " << fLength
62  << " cm, Energy loss " << fELoss * 1.0e06 << " keV";
63 }
64 // -------------------------------------------------------------------------
65 
66 
CbmTrdPoint::fZ_out
Double32_t fZ_out
Definition: CbmTrdPoint.h:84
CbmTrdPoint::fY_out
Double32_t fY_out
Definition: CbmTrdPoint.h:84
CbmTrdPoint::~CbmTrdPoint
virtual ~CbmTrdPoint()
Definition: CbmTrdPoint.cxx:46
CbmTrdPoint::Print
virtual void Print(const Option_t *opt) const
Definition: CbmTrdPoint.cxx:51
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmTrdPoint
Definition: CbmTrdPoint.h:23
CbmTrdPoint::fPy_out
Double32_t fPy_out
Definition: CbmTrdPoint.h:85
CbmTrdPoint.h
CbmTrdPoint::CbmTrdPoint
CbmTrdPoint()
Definition: CbmTrdPoint.cxx:14
CbmTrdPoint::fPx_out
Double32_t fPx_out
Definition: CbmTrdPoint.h:85
CbmTrdPoint::fPz_out
Double32_t fPz_out
Definition: CbmTrdPoint.h:85
CbmTrdPoint::fX_out
Double32_t fX_out
Definition: CbmTrdPoint.h:84