All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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  , fStartTime (DefaultTime)
21  , fRiseTime (DefaultTime)
22  , fWidth (0 )
23  , fArea (0 )
24  , fAmplitude (0.)
25  , fPE (0.)
26  , fFastToTotal (0.)
27  {
28 
29  }
30 
31  //----------------------------------------------------------------------
32  OpHit::OpHit(int opchannel,
33  double peaktime,
34  double peaktimeabs,
35  double starttime,
36  double risetime,
37  unsigned short frame,
38  double width,
39  double area,
40  double amplitude,
41  double pe,
42  double fasttototal)
43  : fOpChannel (opchannel )
44  , fFrame (frame )
45  , fPeakTime (peaktime )
46  , fPeakTimeAbs (peaktimeabs )
47  , fStartTime (starttime )
48  , fRiseTime (risetime )
49  , fWidth (width )
50  , fArea (area )
51  , fAmplitude (amplitude )
52  , fPE (pe )
53  , fFastToTotal (fasttototal )
54  {
55 
56  }
57 
58  //----------------------------------------------------------------------
59  OpHit::OpHit(int opchannel,
60  double peaktime,
61  double peaktimeabs,
62  unsigned short frame,
63  double width,
64  double area,
65  double amplitude,
66  double pe,
67  double fasttototal)
68  : OpHit{
69  opchannel, peaktime, peaktimeabs,
70  DefaultTime, DefaultTime, frame,
71  width, area, amplitude, pe, fasttototal
72  }
73  {}
74 
75  //----------------------------------------------------------------------
76  bool operator < (const OpHit & a, const OpHit & b)
77  {
78  return a.PE() < b.PE();
79  }
80 
81 }
bool operator<(Cluster const &a, Cluster const &b)
Definition: Cluster.cxx:196
process_name gaushit a
static constexpr double DefaultTime
Definition: OpHit.h:21
double PE() const
Definition: OpHit.h:95