FairRoot/PandaRoot
PndRichDigi.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndRichDigi 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 "PndRichDigi.h"
13 
14 // ----- Default constructor -------------------------------------------
16  :FairTimeStamp(0),
17  fSensorId(-1),
18  fTime(-999.),
19  fTimeThreshold(-999.)
20 {
21  SetTimeStamp(0);
22 }
23 // -------------------------------------------------------------------------
24 
25 
26 // ----- Standard constructor ------------------------------------------
27 
29  Int_t,// detID, //[R.K. 04/2017] unused parameter
30  Int_t sensorId,
31  TVector3& pos,
32  TVector3&,// dpos, //[R.K. 04/2017] unused parameter
33  Double_t time,
34  Double_t timeThreshold,
35  Double_t timeStamp)
36 :FairTimeStamp(timeStamp),
37  fSensorId (sensorId),
38  fTime (time),
39  fTimeThreshold (timeThreshold)
40 {
41  AddIndex(index);
42  fX = pos.X();
43  fY = pos.Y();
44  fZ = pos.Z();
45 }
46 
47 PndRichDigi::PndRichDigi(std::vector<Int_t> index,
48  Int_t, // detID, //[R.K. 04/2017] unused parameter
49  Int_t sensorId,
50  TVector3& pos,
51  TVector3&, // dpos, //[R.K. 04/2017] unused parameter
52  Double_t time,
53  Double_t timeThreshold,
54  Double_t timeStamp)
55 :FairTimeStamp(timeStamp),
56  fSensorId (sensorId),
57  fTime (time),
58  fTimeThreshold (timeThreshold)
59 {
60  AddIndex(index);
61  fX = pos.X();
62  fY = pos.Y();
63  fZ = pos.Z();
64 }
65 
66 // ----- Destructor ----------------------------------------------------
68 // -------------------------------------------------------------------------
69 
70 
71 // ----- Public method Print -------------------------------------------
72 void PndRichDigi::Print(const Option_t* opt) const {
73  cout << "RICH Photon hit: Time = " << fTime << " opt="<<opt<< endl;
74 }
75 // -------------------------------------------------------------------------
76 
TVector3 pos
Double_t fTime
Definition: PndRichDigi.h:117
virtual void Print(const Option_t *opt="") const
Definition: PndRichDigi.cxx:72
Double_t fX
Definition: PndRichDigi.h:116
Double_t fY
Definition: PndRichDigi.h:116
Double_t
Double_t fZ
Definition: PndRichDigi.h:116
virtual ~PndRichDigi()
Definition: PndRichDigi.cxx:67
ClassImp(PndAnaContFact)
void AddIndex(int index)
Definition: PndRichDigi.h:78