LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
OpHit.cxx
Go to the documentation of this file.
1 //
3 // \brief Definition of OpHit reconstruction object
4 //
5 // \author bjpjones@mit.edu
6 // cschiu@mit.edu
7 //
9 
12 
13 namespace recob{
14 
15  //----------------------------------------------------------------------
17  : fOpChannel (-1)
18  , fFrame (0 )
19  , fPeakTime (0 )
20  , fPeakTimeAbs (0 )
21  , fWidth (0 )
22  , fArea (0 )
23  , fAmplitude (0.)
24  , fPE (0.)
25  , fFastToTotal (0.)
26  {
27 
28  }
29 
30  //----------------------------------------------------------------------
31  OpHit::OpHit(int opchannel,
32  double peaktime,
33  double peaktimeabs,
34  unsigned short frame,
35  double width,
36  double area,
37  double amplitude,
38  double pe,
39  double fasttototal)
40  : fOpChannel (opchannel )
41  , fFrame (frame )
42  , fPeakTime (peaktime )
43  , fPeakTimeAbs (peaktimeabs )
44  , fWidth (width )
45  , fArea (area )
46  , fAmplitude (amplitude )
47  , fPE (pe )
48  , fFastToTotal (fasttototal )
49  {
50 
51  }
52 
53  //----------------------------------------------------------------------
54  bool operator < (const OpHit & a, const OpHit & b)
55  {
56  return a.PE() < b.PE();
57  }
58 
59 }
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
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:54
double fPeakTime
Definition: OpHit.h:24
double fPE
Definition: OpHit.h:29
double fArea
Definition: OpHit.h:27