BmnRoot
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//
12
13#include <iostream>
14#include "BmnZdcPoint.h"
15
16// ----- Default constructor -------------------------------------------
17BmnZdcPoint::BmnZdcPoint() : FairMCPoint() {
18// fTrackID = -1;
19// fDetectorID = -1;
20// // fEventID = -1;
21// fX = fY = fZ = 0.;
22// fPx = fPy = fPz = 0.;
23// fTime = 0.;
24// fLength = 0.;
25// fELoss = 0.;
26// fEventId
27
28 nCopy = -1;
29 nCopyMother=-1; //module
30//fNHits = 0.;
31}
32
33// ----- Standard constructor ------------------------------------------
34BmnZdcPoint::BmnZdcPoint(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos,TVector3 mom, Double_t tof, Double_t length,Double_t eLoss, UInt_t EventId)
35 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, EventId) {
36 nCopy = copyNo;
37 nCopyMother = copyNoMother;
38 //fNHits = nHits;
39
40 // fTrackID = trackID;
41 // fDetectorID = detID;
42
43 // fX = pos.X();
44 // fY = pos.Y();
45 // fZ = pos.Z();
46 // fPx = mom.Px();
47 // fPy = mom.Py();
48 // fPz = mom.Pz();
49 // fTime = tof;
50 // fLength = length;
51 // fELoss = eLoss;
52 // fNHits = nHits;
53 // fEventId
54
55}
56
57// ----- Destructor ----------------------------------------------------
59
60// ----- Public method Print -------------------------------------------
61void BmnZdcPoint::Print(const Option_t* opt) const {
62 cout << "-I- BmnZdcPoint: MUO Point for track " << fTrackID
63 << " in detector " << fDetectorID <<" " <<nCopyMother <<" " <<nCopy << endl;
64 cout << " Position (" << fX << ", " << fY << ", " << fZ
65 << ") cm" << endl;
66 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
67 << ") GeV" << endl;
68 cout << " Time " << fTime << " ns, Length " << fLength
69 << " cm, Energy loss " << fELoss << " GeV" << endl;
70 //<< " cm, Energy loss " << fELoss << " GeV" <<", nHits " <<fNHits << endl;
71}
Short_t nCopyMother
Short_t nCopy
virtual ~BmnZdcPoint()
virtual void Print(const Option_t *opt) const