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 
11 
12 namespace recob{
13 
14  //----------------------------------------------------------------------
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 }
Reconstruction base classes.
double fAmplitude
Definition: OpHit.h:28
double fFastToTotal
Definition: OpHit.h:30
double fWidth
Definition: OpHit.h:26
unsigned short fFrame
Definition: OpHit.h:23
double fPeakTimeAbs
Definition: OpHit.h:25
const double a
double PE() const
Definition: OpHit.h:69
int fOpChannel
Definition: OpHit.h:22
friend bool operator<(const OpHit &a, const OpHit &b)
Definition: OpHit.cxx:53
double fPeakTime
Definition: OpHit.h:24
static bool * b
Definition: config.cpp:1043
double fPE
Definition: OpHit.h:29
double fArea
Definition: OpHit.h:27