FairRoot/PandaRoot
PndDrcPDHit.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcPDHit source file -----
3 // ----- Created 12/11/07 by Annalisa Cecchi -----
4 // ----- -----
5 // ----- -----
6 // -------------------------------------------------------------------------
7 #include <iostream>
8 
9 using std::cout;
10 using std::endl;
11 
12 #include "PndDrcPDHit.h"
13 
14 // ----- Default constructor -------------------------------------------
16  :FairHit(),
17  fSensorId(-999),
18  fTime(-999.),
19  fTimeThreshold(-999.), fBarID(-999), fBoxID(-999), fTrackID(-999), fTrackIniVertex(TVector3()), fMrID(-999), fMrIDPho(-999), fPdg(-999), fTrackMom(TVector3()), fTimeAtBar(-999), fEvtTim(-999), fEventTim(-999), fPileUp(-999), fEventNo(-999)
20 {
21 }
22 // -------------------------------------------------------------------------
23 
24 
25 // ----- Standard constructor ------------------------------------------
26 
28  Int_t sensorId,
29  TVector3& pos,
30  TVector3& dpos,
31  Double_t time,
32  Double_t timeThreshold,
33  Int_t index)
34  :FairHit(detID, pos, dpos, index),fSensorId (sensorId),
35  fTime (time),fTimeThreshold (timeThreshold),
36  fBarID(), fBoxID(), fTrackID(), fTrackIniVertex(TVector3()), fMrID(), fMrIDPho(), fPdg(), fTrackMom(TVector3()), fTimeAtBar(), fEvtTim(), fEventTim(), fPileUp(), fEventNo()
37 {
38 }
39 
40 // ----- Destructor ----------------------------------------------------
42 // -------------------------------------------------------------------------
43 
44 
45 // ----- Public method Print -------------------------------------------
46 void PndDrcPDHit::Print(const Option_t* opt) const {
47  (void)opt; // to remove "unused" warnings
48  cout << "DIRC Photon hit: Time = " << fTime << endl;
49 }
50 // -------------------------------------------------------------------------
51 void PndDrcPDHit::SetBarID(Int_t BarID){
52  fBarID = BarID;
53 }
54 void PndDrcPDHit::SetBoxID(Int_t BoxID){
55  fBoxID = BoxID;
56 }
57 void PndDrcPDHit::SetTrackID(Int_t TrackID){
58  fTrackID = TrackID;
59 }
60 void PndDrcPDHit::SetTrackIniVertex(TVector3 TrackIniVertex){
61  fTrackIniVertex = TrackIniVertex;
62 }
63 void PndDrcPDHit::SetMotherID(Int_t MrID){
64  fMrID = MrID;
65 }
66 void PndDrcPDHit::SetPdgCode(Int_t Pdg){
67  fPdg = Pdg;
68 }
69 void PndDrcPDHit::SetTrackMom(TVector3 TrackMom){
70  fTrackMom = TrackMom;
71 }
72 void PndDrcPDHit::SetMotherIDPho(Int_t MrIDPho){
73  fMrIDPho = MrIDPho;
74 }
76  fTimeAtBar = TimeAtBar;
77 }
79  fEvtTim = EvtTim;
80 }
82  fEventTim = EventTim;
83 }
85  fPileUp = pileup;
86 }
87 void PndDrcPDHit::SetEventNo(Int_t EventNo){
88  fEventNo = EventNo;
89 }
90 
Int_t fTrackID
Definition: PndDrcPDHit.h:80
TVector3 pos
void SetTimeAtBar(Double_t TimeAtBar)
Definition: PndDrcPDHit.cxx:75
Int_t fPdg
Definition: PndDrcPDHit.h:84
TVector3 fTrackIniVertex
Definition: PndDrcPDHit.h:81
Double_t fTime
Definition: PndDrcPDHit.h:77
Int_t fEventNo
Definition: PndDrcPDHit.h:90
void SetPileUp(Double_t pileup)
Definition: PndDrcPDHit.cxx:84
Double_t fPileUp
Definition: PndDrcPDHit.h:89
void SetBoxID(Int_t BoxID)
Definition: PndDrcPDHit.cxx:54
void SetEvtTim(Double_t EvtTim)
Definition: PndDrcPDHit.cxx:78
void SetEventNo(Int_t EventNo)
Definition: PndDrcPDHit.cxx:87
Int_t fMrID
Definition: PndDrcPDHit.h:82
void SetTrackID(Int_t TrackID)
Definition: PndDrcPDHit.cxx:57
Double_t fEventTim
Definition: PndDrcPDHit.h:88
void SetMotherIDPho(Int_t MrIDPho)
Definition: PndDrcPDHit.cxx:72
Double_t
void SetTrackIniVertex(TVector3 TrackIniVertex)
Definition: PndDrcPDHit.cxx:60
void SetEventTim(Double_t EventTim)
Definition: PndDrcPDHit.cxx:81
void SetMotherID(Int_t MrID)
Definition: PndDrcPDHit.cxx:63
void SetBarID(Int_t BarID)
Definition: PndDrcPDHit.cxx:51
Double_t fEvtTim
Definition: PndDrcPDHit.h:87
Double_t fTimeAtBar
Definition: PndDrcPDHit.h:86
virtual void Print(const Option_t *opt="") const
Definition: PndDrcPDHit.cxx:46
Int_t fBoxID
Definition: PndDrcPDHit.h:79
ClassImp(PndAnaContFact)
virtual ~PndDrcPDHit()
Definition: PndDrcPDHit.cxx:41
Int_t fMrIDPho
Definition: PndDrcPDHit.h:83
TVector3 fTrackMom
Definition: PndDrcPDHit.h:85
void SetTrackMom(TVector3 TrackMom)
Definition: PndDrcPDHit.cxx:69
Int_t fBarID
Definition: PndDrcPDHit.h:78
void SetPdgCode(Int_t Pdg)
Definition: PndDrcPDHit.cxx:66