All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
recob::OpHit Class Reference

#include <OpHit.h>

Public Member Functions

 OpHit ()
 
 OpHit (int opchannel, double peaktime, double peaktimeabs, double starttime, double risetime, unsigned short frame, double width, double area, double peakheight, double pe, double fasttototal)
 
 OpHit (int opchannel, double peaktime, double peaktimeabs, unsigned short frame, double width, double area, double peakheight, double pe, double fasttototal)
 
int OpChannel () const
 
double PeakTimeAbs () const
 
double PeakTime () const
 
double StartTime () const
 
double RiseTime () const
 
unsigned short Frame () const
 
double Width () const
 
double Area () const
 
double Amplitude () const
 
double PE () const
 
double FastToTotal () const
 
bool HasStartTime () const
 

Static Public Attributes

static constexpr double DefaultTime = std::numeric_limits<double>::max()
 

Private Attributes

int fOpChannel
 
unsigned short fFrame
 
double fPeakTime
 
double fPeakTimeAbs
 
double fStartTime
 
double fRiseTime
 
double fWidth
 
double fArea
 
double fAmplitude
 
double fPE
 
double fFastToTotal
 

Friends

bool operator< (const OpHit &a, const OpHit &b)
 

Detailed Description

hits are 2D representations of charge deposited in the tdc/wire plane hits are assumed to be made from deconvoluted, unipolar signals

Definition at line 18 of file OpHit.h.

Constructor & Destructor Documentation

recob::OpHit::OpHit ( )

Definition at line 15 of file OpHit.cxx.

16  : fOpChannel (-1)
17  , fFrame (0 )
18  , fPeakTime (0 )
19  , fPeakTimeAbs (0 )
22  , fWidth (0 )
23  , fArea (0 )
24  , fAmplitude (0.)
25  , fPE (0.)
26  , fFastToTotal (0.)
27  {
28 
29  }
double fAmplitude
Definition: OpHit.h:35
double fFastToTotal
Definition: OpHit.h:37
double fWidth
Definition: OpHit.h:33
unsigned short fFrame
Definition: OpHit.h:28
double fPeakTimeAbs
Definition: OpHit.h:30
double fStartTime
Definition: OpHit.h:31
static constexpr double DefaultTime
Definition: OpHit.h:21
int fOpChannel
Definition: OpHit.h:27
double fRiseTime
Definition: OpHit.h:32
double fPeakTime
Definition: OpHit.h:29
double fPE
Definition: OpHit.h:36
double fArea
Definition: OpHit.h:34
recob::OpHit::OpHit ( int  opchannel,
double  peaktime,
double  peaktimeabs,
double  starttime,
double  risetime,
unsigned short  frame,
double  width,
double  area,
double  peakheight,
double  pe,
double  fasttototal 
)

Definition at line 32 of file OpHit.cxx.

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  }
double fAmplitude
Definition: OpHit.h:35
double fFastToTotal
Definition: OpHit.h:37
double fWidth
Definition: OpHit.h:33
unsigned short fFrame
Definition: OpHit.h:28
double fPeakTimeAbs
Definition: OpHit.h:30
double fStartTime
Definition: OpHit.h:31
int fOpChannel
Definition: OpHit.h:27
double fRiseTime
Definition: OpHit.h:32
double fPeakTime
Definition: OpHit.h:29
double fPE
Definition: OpHit.h:36
double fArea
Definition: OpHit.h:34
recob::OpHit::OpHit ( int  opchannel,
double  peaktime,
double  peaktimeabs,
unsigned short  frame,
double  width,
double  area,
double  peakheight,
double  pe,
double  fasttototal 
)

Definition at line 59 of file OpHit.cxx.

68  : OpHit{
69  opchannel, peaktime, peaktimeabs,
70  DefaultTime, DefaultTime, frame,
71  width, area, amplitude, pe, fasttototal
72  }
73  {}
static constexpr double DefaultTime
Definition: OpHit.h:21

Member Function Documentation

double recob::OpHit::Amplitude ( ) const
inline

Definition at line 94 of file OpHit.h.

94 { return fAmplitude; }
double fAmplitude
Definition: OpHit.h:35
double recob::OpHit::Area ( ) const
inline

Definition at line 93 of file OpHit.h.

93 { return fArea; }
double fArea
Definition: OpHit.h:34
double recob::OpHit::FastToTotal ( ) const
inline

Definition at line 96 of file OpHit.h.

96 { return fFastToTotal; }
double fFastToTotal
Definition: OpHit.h:37
unsigned short recob::OpHit::Frame ( ) const
inline

Definition at line 87 of file OpHit.h.

87 { return fFrame; }
unsigned short fFrame
Definition: OpHit.h:28
bool recob::OpHit::HasStartTime ( ) const
inline

Definition at line 97 of file OpHit.h.

97 { return fStartTime != DefaultTime; }
double fStartTime
Definition: OpHit.h:31
static constexpr double DefaultTime
Definition: OpHit.h:21
int recob::OpHit::OpChannel ( ) const
inline

Definition at line 86 of file OpHit.h.

86 { return fOpChannel; }
int fOpChannel
Definition: OpHit.h:27
double recob::OpHit::PE ( ) const
inline

Definition at line 95 of file OpHit.h.

95 { return fPE; }
double fPE
Definition: OpHit.h:36
double recob::OpHit::PeakTime ( ) const
inline

Definition at line 88 of file OpHit.h.

88 { return fPeakTime; }
double fPeakTime
Definition: OpHit.h:29
double recob::OpHit::PeakTimeAbs ( ) const
inline

Definition at line 89 of file OpHit.h.

89 { return fPeakTimeAbs; }
double fPeakTimeAbs
Definition: OpHit.h:30
double recob::OpHit::RiseTime ( ) const
inline

Definition at line 91 of file OpHit.h.

91 { return fRiseTime; }
double fRiseTime
Definition: OpHit.h:32
double recob::OpHit::StartTime ( ) const
inline

Definition at line 90 of file OpHit.h.

90 { return fStartTime; }
double fStartTime
Definition: OpHit.h:31
double recob::OpHit::Width ( ) const
inline

Definition at line 92 of file OpHit.h.

92 { return fWidth; }
double fWidth
Definition: OpHit.h:33

Friends And Related Function Documentation

bool operator< ( const OpHit a,
const OpHit b 
)
friend

Definition at line 76 of file OpHit.cxx.

77  {
78  return a.PE() < b.PE();
79  }
process_name gaushit a

Member Data Documentation

constexpr double recob::OpHit::DefaultTime = std::numeric_limits<double>::max()
static

Definition at line 21 of file OpHit.h.

double recob::OpHit::fAmplitude
private

Definition at line 35 of file OpHit.h.

double recob::OpHit::fArea
private

Definition at line 34 of file OpHit.h.

double recob::OpHit::fFastToTotal
private

Definition at line 37 of file OpHit.h.

unsigned short recob::OpHit::fFrame
private

Definition at line 28 of file OpHit.h.

int recob::OpHit::fOpChannel
private

Definition at line 27 of file OpHit.h.

double recob::OpHit::fPE
private

Definition at line 36 of file OpHit.h.

double recob::OpHit::fPeakTime
private

Definition at line 29 of file OpHit.h.

double recob::OpHit::fPeakTimeAbs
private

Definition at line 30 of file OpHit.h.

double recob::OpHit::fRiseTime
private

Definition at line 32 of file OpHit.h.

double recob::OpHit::fStartTime
private

Definition at line 31 of file OpHit.h.

double recob::OpHit::fWidth
private

Definition at line 33 of file OpHit.h.


The documentation for this class was generated from the following files: