LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 19 of file OpHit.h.

Constructor & Destructor Documentation

recob::OpHit::OpHit ( )

Definition at line 17 of file OpHit.cxx.

18  : fOpChannel(-1)
19  , fFrame(0)
20  , fPeakTime(0)
21  , fPeakTimeAbs(0)
24  , fWidth(0)
25  , fArea(0)
26  , fAmplitude(0.)
27  , fPE(0.)
28  , fFastToTotal(0.)
29  {}
double fAmplitude
Definition: OpHit.h:34
double fFastToTotal
Definition: OpHit.h:36
double fWidth
Definition: OpHit.h:32
unsigned short fFrame
Definition: OpHit.h:27
double fPeakTimeAbs
Definition: OpHit.h:29
double fStartTime
Definition: OpHit.h:30
static constexpr double DefaultTime
Definition: OpHit.h:21
int fOpChannel
Definition: OpHit.h:26
double fRiseTime
Definition: OpHit.h:31
double fPeakTime
Definition: OpHit.h:28
double fPE
Definition: OpHit.h:35
double fArea
Definition: OpHit.h:33
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  {}
double fAmplitude
Definition: OpHit.h:34
double fFastToTotal
Definition: OpHit.h:36
double fWidth
Definition: OpHit.h:32
unsigned short fFrame
Definition: OpHit.h:27
double fPeakTimeAbs
Definition: OpHit.h:29
double fStartTime
Definition: OpHit.h:30
int fOpChannel
Definition: OpHit.h:26
double fRiseTime
Definition: OpHit.h:31
double fPeakTime
Definition: OpHit.h:28
double fPE
Definition: OpHit.h:35
double fArea
Definition: OpHit.h:33
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 57 of file OpHit.cxx.

References DefaultTime.

66  : OpHit{opchannel,
67  peaktime,
68  peaktimeabs,
71  frame,
72  width,
73  area,
74  amplitude,
75  pe,
76  fasttototal}
77  {}
static constexpr double DefaultTime
Definition: OpHit.h:21

Member Function Documentation

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

Definition at line 118 of file OpHit.h.

References fAmplitude.

Referenced by recob::operator<<().

119 {
120  return fAmplitude;
121 }
double fAmplitude
Definition: OpHit.h:34
double recob::OpHit::FastToTotal ( ) const
inline

Definition at line 126 of file OpHit.h.

References fFastToTotal.

Referenced by opdet::AddHitContribution(), and recob::operator<<().

127 {
128  return fFastToTotal;
129 }
double fFastToTotal
Definition: OpHit.h:36
unsigned short recob::OpHit::Frame ( ) const
inline

Definition at line 90 of file OpHit.h.

References fFrame.

91 {
92  return fFrame;
93 }
unsigned short fFrame
Definition: OpHit.h:27
bool recob::OpHit::HasStartTime ( ) const
inline

Definition at line 130 of file OpHit.h.

References DefaultTime, and fStartTime.

Referenced by recob::operator<<().

131 {
132  return fStartTime != DefaultTime;
133 }
double fStartTime
Definition: OpHit.h:30
static constexpr double DefaultTime
Definition: OpHit.h:21
double recob::OpHit::PE ( ) const
inline
double recob::OpHit::PeakTimeAbs ( ) const
inline

Definition at line 98 of file OpHit.h.

References fPeakTimeAbs.

Referenced by opdet::AddHitContribution(), and recob::operator<<().

99 {
100  return fPeakTimeAbs;
101 }
double fPeakTimeAbs
Definition: OpHit.h:29
double recob::OpHit::RiseTime ( ) const
inline

Definition at line 106 of file OpHit.h.

References fRiseTime.

Referenced by recob::operator<<().

107 {
108  return fRiseTime;
109 }
double fRiseTime
Definition: OpHit.h:31
double recob::OpHit::StartTime ( ) const
inline

Definition at line 102 of file OpHit.h.

References fStartTime.

Referenced by recob::operator<<().

103 {
104  return fStartTime;
105 }
double fStartTime
Definition: OpHit.h:30

Friends And Related Function Documentation

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

Definition at line 80 of file OpHit.cxx.

81  {
82  return a.PE() < b.PE();
83  }

Member Data Documentation

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

Definition at line 21 of file OpHit.h.

Referenced by HasStartTime(), recob::operator<<(), and OpHit().

double recob::OpHit::fAmplitude
private

Definition at line 34 of file OpHit.h.

Referenced by Amplitude().

double recob::OpHit::fArea
private

Definition at line 33 of file OpHit.h.

Referenced by Area().

double recob::OpHit::fFastToTotal
private

Definition at line 36 of file OpHit.h.

Referenced by FastToTotal().

unsigned short recob::OpHit::fFrame
private

Definition at line 27 of file OpHit.h.

Referenced by Frame().

int recob::OpHit::fOpChannel
private

Definition at line 26 of file OpHit.h.

Referenced by OpChannel().

double recob::OpHit::fPE
private

Definition at line 35 of file OpHit.h.

Referenced by PE().

double recob::OpHit::fPeakTime
private

Definition at line 28 of file OpHit.h.

Referenced by PeakTime().

double recob::OpHit::fPeakTimeAbs
private

Definition at line 29 of file OpHit.h.

Referenced by PeakTimeAbs().

double recob::OpHit::fRiseTime
private

Definition at line 31 of file OpHit.h.

Referenced by RiseTime().

double recob::OpHit::fStartTime
private

Definition at line 30 of file OpHit.h.

Referenced by HasStartTime(), and StartTime().

double recob::OpHit::fWidth
private

Definition at line 32 of file OpHit.h.

Referenced by Width().


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