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