BmnRoot 26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmMvdPoint.cxx
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- CbmMvdPoint source file -----
3// ----- Created 06/11/06 by V. Friese -----
4// -------------------------------------------------------------------------
5#include "CbmMvdPoint.h"
6
7#include <iostream>
8
9using std::cout;
10using std::endl;
11
12// ----- Default constructor -------------------------------------------
14 : 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 , fPdgCode(0)
23 , fPointId(-1)
24{}
25// -------------------------------------------------------------------------
26
27// ----- Standard constructor ------------------------------------------
29 Int_t pdgCode,
30 Int_t stationNr,
31 TVector3 posIn,
32 TVector3 posOut,
33 TVector3 momIn,
34 TVector3 momOut,
35 Double_t tof,
36 Double_t length,
37 Double_t eLoss)
38 : FairMCPoint(trackID, stationNr, posIn, momIn, tof, length, eLoss)
40 , fX_out(posOut.X())
41 , fY_out(posOut.Y())
42 , fZ_out(posOut.Z())
43 , fPx_out(momOut.Px())
44 , fPy_out(momOut.Py())
45 , fPz_out(momOut.Pz())
46 , fPdgCode(pdgCode)
47 , fPointId(-1)
48{
49 SetLink(FairLink(kMCTrack, trackID));
50 fDetectorID = DetectorId(stationNr);
51}
52
53// -------------------------------------------------------------------------
54
55// ----- Destructor ----------------------------------------------------
57// -------------------------------------------------------------------------
58
59// ----- Public method Print -------------------------------------------
60void CbmMvdPoint::Print(const Option_t* opt) const
61{
62 cout << "-I- CbmMvdPoint: MVD Point for track " << fTrackID << " in station " << GetStationNr() << endl;
63 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
64 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
65 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss * 1.0e06 << " keV"
66 << endl;
67}
68// -------------------------------------------------------------------------
DetectorId
BM@N DetectorID enumerator.
@ kMCTrack
int Int_t
double Double_t
const char Option_t
CbmMvdDetectorId()
Constructor.
Int_t GetStationNr() const
Definition CbmMvdPoint.h:71
Double32_t fY_out
Definition CbmMvdPoint.h:87
Int_t fPointId
Definition CbmMvdPoint.h:90
Double32_t fPy_out
Definition CbmMvdPoint.h:88
virtual ~CbmMvdPoint()
Copy constructor.
Int_t fPdgCode
Definition CbmMvdPoint.h:89
virtual void Print(const Option_t *opt) const
Output to screen.
Double32_t fPx_out
Definition CbmMvdPoint.h:88
Double32_t fZ_out
Definition CbmMvdPoint.h:87
Double32_t fPz_out
Definition CbmMvdPoint.h:88
CbmMvdPoint()
Default constructor.
Double32_t fX_out
Definition CbmMvdPoint.h:87