Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lardataobj
lardataobj
RecoBase
OpHit.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
//
3
// \brief Definition of OpHit reconstruction object
4
//
5
// \author bjpjones@mit.edu
6
// cschiu@mit.edu
7
//
8
////////////////////////////////////////////////////////////////////////
9
10
#include "
lardataobj/RecoBase/OpHit.h
"
11
12
namespace
recob
{
13
14
//----------------------------------------------------------------------
15
OpHit::OpHit
()
16
: fOpChannel (-1)
17
, fFrame (0 )
18
, fPeakTime (0 )
19
, fPeakTimeAbs (0 )
20
, fWidth (0 )
21
, fArea (0 )
22
, fAmplitude (0.)
23
, fPE (0.)
24
, fFastToTotal (0.)
25
{
26
27
}
28
29
//----------------------------------------------------------------------
30
OpHit::OpHit
(
int
opchannel,
31
double
peaktime,
32
double
peaktimeabs,
33
unsigned
short
frame,
34
double
width,
35
double
area,
36
double
amplitude,
37
double
pe,
38
double
fasttototal)
39
:
fOpChannel
(opchannel )
40
,
fFrame
(frame )
41
,
fPeakTime
(peaktime )
42
,
fPeakTimeAbs
(peaktimeabs )
43
,
fWidth
(width )
44
,
fArea
(area )
45
,
fAmplitude
(amplitude )
46
,
fPE
(pe )
47
,
fFastToTotal
(fasttototal )
48
{
49
50
}
51
52
//----------------------------------------------------------------------
53
bool
operator <
(
const
OpHit
&
a
,
const
OpHit
&
b
)
54
{
55
return
a.
PE
() < b.
PE
();
56
}
57
58
}
recob
Reconstruction base classes.
Definition:
AdcChannelData.h:91
recob::OpHit::fAmplitude
double fAmplitude
Definition:
OpHit.h:28
recob::OpHit::fFastToTotal
double fFastToTotal
Definition:
OpHit.h:30
recob::OpHit::fWidth
double fWidth
Definition:
OpHit.h:26
recob::OpHit::fFrame
unsigned short fFrame
Definition:
OpHit.h:23
recob::OpHit::fPeakTimeAbs
double fPeakTimeAbs
Definition:
OpHit.h:25
recob::OpHit
Definition:
OpHit.h:16
a
const double a
Definition:
gUpMuFluxGen.cxx:164
recob::OpHit::PE
double PE() const
Definition:
OpHit.h:69
recob::OpHit::fOpChannel
int fOpChannel
Definition:
OpHit.h:22
recob::OpHit::operator<
friend bool operator<(const OpHit &a, const OpHit &b)
Definition:
OpHit.cxx:53
recob::OpHit::fPeakTime
double fPeakTime
Definition:
OpHit.h:24
b
static bool * b
Definition:
config.cpp:1043
recob::OpHit::fPE
double fPE
Definition:
OpHit.h:29
OpHit.h
recob::OpHit::fArea
double fArea
Definition:
OpHit.h:27
recob::OpHit::OpHit
OpHit()
Definition:
OpHit.cxx:15
Generated by
1.8.11