BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnZdcPoint.cxx
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////
2//
3// BmnZdcPoint
4//
5// Geant point for Hyp detector
6//
7// Created 14/08/06 by S.Spataro
8//
9// Modified by M.Golubeva
10//
11///////////////////////////////////////////////////////////////
12
13#include "BmnZdcPoint.h"
14
15#include <iostream>
16
17// ----- Default constructor -------------------------------------------
19 : FairMCPoint()
20{
21 // fTrackID = -1;
22 // fDetectorID = -1;
23 // // fEventID = -1;
24 // fX = fY = fZ = 0.;
25 // fPx = fPy = fPz = 0.;
26 // fTime = 0.;
27 // fLength = 0.;
28 // fELoss = 0.;
29 // fEventId
30
31 nCopy = -1;
32 nCopyMother = -1; // module
33 // fNHits = 0.;
34}
35
36// ----- Standard constructor ------------------------------------------
38 Int_t detID,
39 Int_t copyNo,
40 Int_t copyNoMother,
41 TVector3 pos,
42 TVector3 mom,
43 Double_t tof,
44 Double_t length,
45 Double_t eLoss,
46 UInt_t EventId)
47 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, EventId)
48{
49 nCopy = copyNo;
50 nCopyMother = copyNoMother;
51 // fNHits = nHits;
52
53 // fTrackID = trackID;
54 // fDetectorID = detID;
55
56 // fX = pos.X();
57 // fY = pos.Y();
58 // fZ = pos.Z();
59 // fPx = mom.Px();
60 // fPy = mom.Py();
61 // fPz = mom.Pz();
62 // fTime = tof;
63 // fLength = length;
64 // fELoss = eLoss;
65 // fNHits = nHits;
66 // fEventId
67}
68
69// ----- Destructor ----------------------------------------------------
71
72// ----- Public method Print -------------------------------------------
73void BmnZdcPoint::Print(const Option_t* opt) const
74{
75 cout << "-I- BmnZdcPoint: MUO Point for track " << fTrackID << " in detector " << fDetectorID << " " << nCopyMother
76 << " " << nCopy << endl;
77 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
78 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
79 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss << " GeV" << endl;
80 //<< " cm, Energy loss " << fELoss << " GeV" <<", nHits " <<fNHits << endl;
81}
int Int_t
double Double_t
const char Option_t
BmnZdcPoint()
Default constructor.
Short_t nCopyMother
Short_t nCopy
virtual ~BmnZdcPoint()
Destructor.
virtual void Print(const Option_t *opt) const
Output to screen.