LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
recob::OpFlash Class Reference

#include "OpFlash.h"

Public Member Functions

 OpFlash ()
 
 OpFlash (double time, double timewidth, double abstime, unsigned int frame, std::vector< double > PEperOpDet, bool InBeamFrame=0, int OnBeamTime=0, double FastToTotal=1, double yCenter=0, double yWidth=0, double zCenter=0, double zWidth=0, std::vector< double > WireCenters=std::vector< double >(0), std::vector< double > WireWidths=std::vector< double >(0))
 
double Time () const
 
double TimeWidth () const
 
double AbsTime () const
 
unsigned int Frame () const
 
double PE (unsigned int i) const
 
std::vector< double > const & PEs () const
 Returns a vector with a number of photoelectrons per channel. More...
 
double YCenter () const
 
double YWidth () const
 
double ZCenter () const
 
double ZWidth () const
 
bool InBeamFrame () const
 
int OnBeamTime () const
 
std::vector< double > WireCenters () const
 
std::vector< double > WireWidths () const
 
double TotalPE () const
 
double FastToTotal () const
 

Private Attributes

double fTime
 
double fTimeWidth
 
double fAbsTime
 
unsigned int fFrame
 
std::vector< double > fPEperOpDet
 
std::vector< double > fWireCenters
 
std::vector< double > fWireWidths
 
double fYCenter
 
double fYWidth
 
double fZCenter
 
double fZWidth
 
double fFastToTotal
 
bool fInBeamFrame
 
int fOnBeamTime
 

Friends

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

Detailed Description

Definition at line 18 of file OpFlash.h.

Constructor & Destructor Documentation

recob::OpFlash::OpFlash ( )

Definition at line 17 of file OpFlash.cxx.

18  : fTime( 0. )
19  {
20 
21  }
double fTime
Definition: OpFlash.h:24
recob::OpFlash::OpFlash ( double  time,
double  timewidth,
double  abstime,
unsigned int  frame,
std::vector< double >  PEperOpDet,
bool  InBeamFrame = 0,
int  OnBeamTime = 0,
double  FastToTotal = 1,
double  yCenter = 0,
double  yWidth = 0,
double  zCenter = 0,
double  zWidth = 0,
std::vector< double >  WireCenters = std::vector<double>(0),
std::vector< double >  WireWidths = std::vector<double>(0) 
)

Definition at line 24 of file OpFlash.cxx.

References fAbsTime, FastToTotal(), fFastToTotal, fFrame, fInBeamFrame, fOnBeamTime, fPEperOpDet, fTime, fTimeWidth, fWireCenters, fWireWidths, fYCenter, fYWidth, fZCenter, fZWidth, InBeamFrame(), WireCenters(), and WireWidths().

31  {
32  for (unsigned int i = 0; i < PEperOpDet.size(); ++i)
33  fPEperOpDet.push_back(PEperOpDet[i]);
34  fFrame = frame;
35  fAbsTime = abstime;
36  fTimeWidth = timewidth;
37  fTime = time;
38  fYCenter = yCenter;
39  fYWidth = yWidth;
40  fZCenter = zCenter;
41  fZWidth = zWidth;
46  fOnBeamTime = onBeamTime;
47  }
std::vector< double > fPEperOpDet
Definition: OpFlash.h:28
double fYCenter
Definition: OpFlash.h:31
double fTime
Definition: OpFlash.h:24
double FastToTotal() const
Definition: OpFlash.h:93
double fZCenter
Definition: OpFlash.h:33
double fZWidth
Definition: OpFlash.h:34
double fYWidth
Definition: OpFlash.h:32
unsigned int fFrame
Definition: OpFlash.h:27
std::vector< double > WireCenters() const
Definition: OpFlash.h:94
double fFastToTotal
Definition: OpFlash.h:35
double fAbsTime
Definition: OpFlash.h:26
std::vector< double > WireWidths() const
Definition: OpFlash.h:95
std::vector< double > fWireWidths
Definition: OpFlash.h:30
bool fInBeamFrame
Definition: OpFlash.h:36
int fOnBeamTime
Definition: OpFlash.h:37
std::vector< double > fWireCenters
Definition: OpFlash.h:29
double fTimeWidth
Definition: OpFlash.h:25
bool InBeamFrame() const
Definition: OpFlash.h:96

Member Function Documentation

double recob::OpFlash::AbsTime ( ) const
inline

Definition at line 85 of file OpFlash.h.

References fAbsTime.

Referenced by opdet::OpFlashAna::analyze().

85 { return fAbsTime; }
double fAbsTime
Definition: OpFlash.h:26
double recob::OpFlash::FastToTotal ( ) const
inline

Definition at line 93 of file OpFlash.h.

References fFastToTotal.

Referenced by opdet::OpFlashMCTruthAna::analyze(), and OpFlash().

93 { return fFastToTotal; }
double fFastToTotal
Definition: OpFlash.h:35
unsigned int recob::OpFlash::Frame ( ) const
inline

Definition at line 86 of file OpFlash.h.

References fFrame.

Referenced by opdet::OpFlashAna::analyze().

86 { return fFrame; }
unsigned int fFrame
Definition: OpFlash.h:27
bool recob::OpFlash::InBeamFrame ( ) const
inline

Definition at line 96 of file OpFlash.h.

References fInBeamFrame.

Referenced by opdet::OpFlashAna::analyze(), and OpFlash().

96 { return fInBeamFrame; }
bool fInBeamFrame
Definition: OpFlash.h:36
int recob::OpFlash::OnBeamTime ( ) const
inline
double recob::OpFlash::PE ( unsigned int  i) const
inline
std::vector< double > const & recob::OpFlash::PEs ( ) const
inline

Returns a vector with a number of photoelectrons per channel.

Definition at line 88 of file OpFlash.h.

References fPEperOpDet.

88 { return fPEperOpDet; }
std::vector< double > fPEperOpDet
Definition: OpFlash.h:28
double recob::OpFlash::TimeWidth ( ) const
inline

Definition at line 84 of file OpFlash.h.

References fTimeWidth.

84 { return fTimeWidth; }
double fTimeWidth
Definition: OpFlash.h:25
double recob::OpFlash::TotalPE ( ) const

Definition at line 56 of file OpFlash.cxx.

References fPEperOpDet.

Referenced by opdet::OpFlashMCTruthAna::analyze(), opdet::OpFlashAna::analyze(), cosmic::BeamFlashTrackMatchTaggerAlg::CheckCompatibility(), cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties(), cosmic::BeamFlashTrackMatchTaggerAlg::PrintHypothesisFlashComparison(), and opdet::TrackTimeAssoc::produce().

57  {
58  double theTotalPE=0;
59  for(size_t i=0; i!=fPEperOpDet.size(); ++i)
60  theTotalPE+=fPEperOpDet.at(i);
61  return theTotalPE;
62  }
std::vector< double > fPEperOpDet
Definition: OpFlash.h:28
std::vector< double > recob::OpFlash::WireCenters ( ) const
inline

Definition at line 94 of file OpFlash.h.

References fWireCenters.

Referenced by opdet::OpFlashMCTruthAna::analyze(), and OpFlash().

94 { return fWireCenters; }
std::vector< double > fWireCenters
Definition: OpFlash.h:29
std::vector< double > recob::OpFlash::WireWidths ( ) const
inline

Definition at line 95 of file OpFlash.h.

References fWireWidths.

Referenced by opdet::OpFlashMCTruthAna::analyze(), and OpFlash().

95 { return fWireWidths; }
std::vector< double > fWireWidths
Definition: OpFlash.h:30
double recob::OpFlash::YCenter ( ) const
inline
double recob::OpFlash::YWidth ( ) const
inline
double recob::OpFlash::ZCenter ( ) const
inline
double recob::OpFlash::ZWidth ( ) const
inline

Friends And Related Function Documentation

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

Definition at line 50 of file OpFlash.cxx.

51  {
52  return a.Time() < b.Time();
53  }

Member Data Documentation

double recob::OpFlash::fAbsTime
private

Definition at line 26 of file OpFlash.h.

Referenced by AbsTime(), and OpFlash().

double recob::OpFlash::fFastToTotal
private

Definition at line 35 of file OpFlash.h.

Referenced by FastToTotal(), and OpFlash().

unsigned int recob::OpFlash::fFrame
private

Definition at line 27 of file OpFlash.h.

Referenced by Frame(), and OpFlash().

bool recob::OpFlash::fInBeamFrame
private

Definition at line 36 of file OpFlash.h.

Referenced by InBeamFrame(), and OpFlash().

int recob::OpFlash::fOnBeamTime
private

Definition at line 37 of file OpFlash.h.

Referenced by OnBeamTime(), and OpFlash().

std::vector< double > recob::OpFlash::fPEperOpDet
private

Definition at line 28 of file OpFlash.h.

Referenced by OpFlash(), PEs(), and TotalPE().

double recob::OpFlash::fTime
private

Definition at line 24 of file OpFlash.h.

Referenced by OpFlash(), and Time().

double recob::OpFlash::fTimeWidth
private

Definition at line 25 of file OpFlash.h.

Referenced by OpFlash(), and TimeWidth().

std::vector< double > recob::OpFlash::fWireCenters
private

Definition at line 29 of file OpFlash.h.

Referenced by OpFlash(), and WireCenters().

std::vector< double > recob::OpFlash::fWireWidths
private

Definition at line 30 of file OpFlash.h.

Referenced by OpFlash(), and WireWidths().

double recob::OpFlash::fYCenter
private

Definition at line 31 of file OpFlash.h.

Referenced by OpFlash(), and YCenter().

double recob::OpFlash::fYWidth
private

Definition at line 32 of file OpFlash.h.

Referenced by OpFlash(), and YWidth().

double recob::OpFlash::fZCenter
private

Definition at line 33 of file OpFlash.h.

Referenced by OpFlash(), and ZCenter().

double recob::OpFlash::fZWidth
private

Definition at line 34 of file OpFlash.h.

Referenced by OpFlash(), and ZWidth().


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