FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
pnddata
RichData
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 -------------------------------------------
15
PndRichDigi::PndRichDigi
()
16
:FairTimeStamp(0),
17
fSensorId(-1),
18
fTime(-999.),
19
fTimeThreshold(-999.)
20
{
21
SetTimeStamp(0);
22
}
23
// -------------------------------------------------------------------------
24
25
26
// ----- Standard constructor ------------------------------------------
27
28
PndRichDigi::PndRichDigi
(Int_t index,
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 ----------------------------------------------------
67
PndRichDigi::~PndRichDigi
(){}
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
77
ClassImp
(
PndRichDigi
)
pos
TVector3 pos
Definition:
GammaSpectraAnalysis.C:43
PndRichDigi::fTime
Double_t fTime
Definition:
PndRichDigi.h:117
PndRichDigi::Print
virtual void Print(const Option_t *opt="") const
Definition:
PndRichDigi.cxx:72
PndRichDigi::fX
Double_t fX
Definition:
PndRichDigi.h:116
PndRichDigi::fY
Double_t fY
Definition:
PndRichDigi.h:116
PndRichDigi::PndRichDigi
PndRichDigi()
Definition:
PndRichDigi.cxx:15
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndRichDigi::fZ
Double_t fZ
Definition:
PndRichDigi.h:116
PndRichDigi::~PndRichDigi
virtual ~PndRichDigi()
Definition:
PndRichDigi.cxx:67
ClassImp
ClassImp(PndAnaContFact)
PndRichDigi.h
PndRichDigi::AddIndex
void AddIndex(int index)
Definition:
PndRichDigi.h:78
PndRichDigi
Definition:
PndRichDigi.h:15
Generated on Wed Apr 3 2019 08:44:00 for FairRoot/PandaRoot by
1.8.5