LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
OpHit.h
Go to the documentation of this file.
1 //
3 // \brief Definition of OpHit object for LArSoft
4 //
5 // \author bjpjones@mit.edu
6 // cschiu@mit.edu
7 //
9 #ifndef OPHIT_H
10 #define OPHIT_H
11 
12 namespace recob {
13 
16  class OpHit {
17  public:
18  OpHit(); // Default constructor
19 
20 private:
21 
23  unsigned short fFrame;
24  double fPeakTime;
25  double fPeakTimeAbs;
26  double fWidth;
27  double fArea;
28  double fAmplitude;
29  double fPE;
30  double fFastToTotal;
31 
32 
33  public:
34 
35  OpHit(int opchannel,
36  double peaktime,
37  double peaktimeabs,
38  unsigned short frame,
39  double width,
40  double area,
41  double peakheight,
42  double pe,
43  double fasttototal);
44 
45  // Get Methods
46  int OpChannel() const;
47  double PeakTimeAbs() const;
48  double PeakTime() const;
49  unsigned short Frame() const;
50  double Width() const;
51  double Area() const;
52  double Amplitude() const;
53  double PE() const;
54  double FastToTotal() const;
55  friend bool operator < (const OpHit & a, const OpHit & b);
56 
57 
58  };
59 }
60 
61 
62 inline int recob::OpHit::OpChannel() const { return fOpChannel; }
63 inline unsigned short recob::OpHit::Frame() const { return fFrame; }
64 inline double recob::OpHit::PeakTime() const { return fPeakTime; }
65 inline double recob::OpHit::PeakTimeAbs() const { return fPeakTimeAbs; }
66 inline double recob::OpHit::Width() const { return fWidth; }
67 inline double recob::OpHit::Area() const { return fArea; }
68 inline double recob::OpHit::Amplitude() const { return fAmplitude; }
69 inline double recob::OpHit::PE() const { return fPE; }
70 inline double recob::OpHit::FastToTotal() const { return fFastToTotal; }
71 
72 
73 #endif
double FastToTotal() const
Definition: OpHit.h:70
Reconstruction base classes.
double fAmplitude
Definition: OpHit.h:28
double fFastToTotal
Definition: OpHit.h:30
double PeakTime() const
Definition: OpHit.h:64
double fWidth
Definition: OpHit.h:26
unsigned short fFrame
Definition: OpHit.h:23
double fPeakTimeAbs
Definition: OpHit.h:25
double Width() const
Definition: OpHit.h:66
unsigned short Frame() const
Definition: OpHit.h:63
double Amplitude() const
Definition: OpHit.h:68
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 PeakTimeAbs() const
Definition: OpHit.h:65
double Area() const
Definition: OpHit.h:67
double fPE
Definition: OpHit.h:29
int OpChannel() const
Definition: OpHit.h:62
double fArea
Definition: OpHit.h:27