FairRoot/PandaRoot
PndRichPDHit.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndRichPDHit source file -----
3 // ----- Created 01/11/14 by Beloborodov Konstantin -----
4 // ----- -----
5 // ----- -----
6 // -------------------------------------------------------------------------
7 #include <iostream>
8 
9 using std::cout;
10 using std::endl;
11 
12 #include "PndRichPDHit.h"
13 
14 // ----- Default constructor -------------------------------------------
16  :FairHit(),
17  fIndex(-1),
18  fSensorId(-1),
19  fTime(-999.),
20  fTimeThreshold(-999.)
21 {
22 }
23 // -------------------------------------------------------------------------
24 
25 
26 // ----- Standard constructor ------------------------------------------
27 
29  Int_t detID,
30  Int_t sensorId,
31  TVector3& pos,
32  TVector3& dpos,
33  Double_t time,
34  Double_t timeThreshold)
35 :FairHit(detID, pos, dpos, index),
36  fIndex(index),
37  fSensorId (sensorId),
38  fTime (time),
39  fTimeThreshold (timeThreshold)
40 {
41  fX = pos.X();
42  fY = pos.Y();
43  fZ = pos.Z();
44 }
45 
46 // ----- Destructor ----------------------------------------------------
48 // -------------------------------------------------------------------------
49 
50 
51 // ----- Public method Print -------------------------------------------
52 void PndRichPDHit::Print(const Option_t* opt) const {
53  cout << "RICH Photon hit: Time = " << fTime << " opt="<<opt<< endl;
54 }
55 // -------------------------------------------------------------------------
56 
TVector3 pos
Double_t fTime
Definition: PndRichPDHit.h:94
virtual ~PndRichPDHit()
virtual void Print(const Option_t *opt="") const
Double_t
Double_t fX
Definition: PndRichPDHit.h:93
ClassImp(PndAnaContFact)
Double_t fZ
Definition: PndRichPDHit.h:93
Double_t fY
Definition: PndRichPDHit.h:93