LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "OpFlash.h"
Public Member Functions | |
OpFlash ()=default | |
OpFlash (double time, double timewidth, double abstime, unsigned int frame, std::vector< double > PEperOpDet, bool InBeamFrame, int OnBeamTime, double FastToTotal, double xCenter, double xWidth, double yCenter, double yWidth, double zCenter, double zWidth, std::vector< double > WireCenters=std::vector< double >(0), std::vector< double > WireWidths=std::vector< double >(0)) | |
Constructor: all data members directly initialized. More... | |
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)) | |
Constructor: all data members directly initialized except x coordinate. More... | |
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... | |
bool | hasXCenter () const |
Returns whether the estimated center on x direction is available. More... | |
double | XCenter () const |
Returns the estimated center on x direction (. More... | |
double | XWidth () const |
double | YCenter () const |
double | YWidth () const |
double | ZCenter () const |
double | ZWidth () const |
bool | InBeamFrame () const |
int | OnBeamTime () const |
std::vector< double > const & | WireCenters () const |
std::vector< double > const & | WireWidths () const |
double | TotalPE () const |
double | FastToTotal () const |
Static Public Attributes | |
static constexpr double | NoCenter = std::numeric_limits<double>::max() |
Special value used for absence of center location information. More... | |
Private Attributes | |
double | fTime {0.0} |
Time on trigger time scale [us]. More... | |
double | fTimeWidth |
Width of the flash in time [us]. More... | |
double | fAbsTime |
Time by PMT readout clock. More... | |
unsigned int | fFrame |
Frame number. More... | |
std::vector< double > | fPEperOpDet |
Number of PE on each PMT. More... | |
std::vector< double > | fWireCenters |
Geometric center in each view. More... | |
std::vector< double > | fWireWidths |
Geometric width in each view. More... | |
double | fXCenter {NoCenter} |
Estimated center in x [cm]. More... | |
double | fXWidth {NoCenter} |
Estimated width in x [cm]. More... | |
double | fYCenter |
Geometric center in y [cm]. More... | |
double | fYWidth |
Geometric width in y [cm]. More... | |
double | fZCenter |
Geometric center in z [cm]. More... | |
double | fZWidth |
Geometric width in z [cm]. More... | |
double | fFastToTotal |
Fast to total light ratio. More... | |
bool | fInBeamFrame |
Is this in the beam frame? More... | |
int | fOnBeamTime |
Is this in time with beam? More... | |
|
default |
recob::OpFlash::OpFlash | ( | double | time, |
double | timewidth, | ||
double | abstime, | ||
unsigned int | frame, | ||
std::vector< double > | PEperOpDet, | ||
bool | InBeamFrame, | ||
int | OnBeamTime, | ||
double | FastToTotal, | ||
double | xCenter, | ||
double | xWidth, | ||
double | yCenter, | ||
double | yWidth, | ||
double | zCenter, | ||
double | zWidth, | ||
std::vector< double > | WireCenters = std::vector<double>(0) , |
||
std::vector< double > | WireWidths = std::vector<double>(0) |
||
) |
Constructor: all data members directly initialized.
Definition at line 20 of file OpFlash.cxx.
References fAbsTime, FastToTotal(), fFastToTotal, fFrame, fInBeamFrame, fOnBeamTime, fPEperOpDet, fTimeWidth, fWireCenters, fWireWidths, fXCenter, fXWidth, fYCenter, fYWidth, fZCenter, fZWidth, InBeamFrame(), WireCenters(), and WireWidths().
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) |
||
) |
Constructor: all data members directly initialized except x coordinate.
Definition at line 55 of file OpFlash.cxx.
References FastToTotal(), InBeamFrame(), and NoCenter.
|
inline |
Definition at line 126 of file OpFlash.h.
References fAbsTime.
Referenced by opdet::OpFlashAna::analyze(), and recob::operator<<().
|
inline |
Definition at line 170 of file OpFlash.h.
References fFastToTotal.
Referenced by opdet::OpFlashMCTruthAna::analyze(), recob::operator<<(), and OpFlash().
|
inline |
Definition at line 130 of file OpFlash.h.
References fFrame.
Referenced by opdet::OpFlashAna::analyze().
|
inline |
Returns whether the estimated center on x direction is available.
Definition at line 142 of file OpFlash.h.
References fXCenter, and NoCenter.
Referenced by recob::operator<<().
|
inline |
Definition at line 182 of file OpFlash.h.
References fInBeamFrame.
Referenced by opdet::OpFlashAna::analyze(), recob::operator<<(), and OpFlash().
|
inline |
Definition at line 186 of file OpFlash.h.
References fOnBeamTime.
Referenced by opdet::OpFlashAna::analyze(), recob::operator<<(), cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties(), and cosmic::BeamFlashTrackMatchTaggerAlg::RunHypothesisComparison().
|
inline |
Definition at line 134 of file OpFlash.h.
Referenced by opdet::OpFlashAna::analyze(), cosmic::BeamFlashTrackMatchTaggerAlg::CheckCompatibility(), recob::operator<<(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintHypothesisFlashComparison().
|
inline |
Returns a vector with a number of photoelectrons per channel.
Definition at line 138 of file OpFlash.h.
References fPEperOpDet.
Referenced by recob::operator<<().
|
inline |
Definition at line 118 of file OpFlash.h.
References fTime.
Referenced by opdet::OpFlashMCTruthAna::analyze(), opdet::OpFlashAna::analyze(), opreco::OpticalRecoAna::match_flashes_to_particles(), recob::OpFlashSortByTime::operator()(), recob::operator<(), recob::operator<<(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties().
|
inline |
Definition at line 122 of file OpFlash.h.
References fTimeWidth.
Referenced by recob::operator<<().
double recob::OpFlash::TotalPE | ( | ) | const |
Definition at line 94 of file OpFlash.cxx.
References fPEperOpDet.
Referenced by opdet::OpFlashMCTruthAna::analyze(), opdet::OpFlashAna::analyze(), cosmic::BeamFlashTrackMatchTaggerAlg::CheckCompatibility(), recob::operator<<(), calib::IPhotonCalibrator::PE(), cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintHypothesisFlashComparison().
|
inline |
Definition at line 174 of file OpFlash.h.
References fWireCenters.
Referenced by opdet::OpFlashMCTruthAna::analyze(), recob::operator<<(), and OpFlash().
|
inline |
Definition at line 178 of file OpFlash.h.
References fWireWidths.
Referenced by opdet::OpFlashMCTruthAna::analyze(), recob::operator<<(), and OpFlash().
|
inline |
Returns the estimated center on x direction (.
hasXCenter()
). Definition at line 146 of file OpFlash.h.
References fXCenter.
Referenced by recob::operator<<().
|
inline |
|
inline |
Definition at line 154 of file OpFlash.h.
References fYCenter.
Referenced by opdet::OpFlashMCTruthAna::analyze(), opdet::OpFlashAna::analyze(), recob::operator<<(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties().
|
inline |
Definition at line 158 of file OpFlash.h.
References fYWidth.
Referenced by opdet::OpFlashMCTruthAna::analyze(), opdet::OpFlashAna::analyze(), recob::operator<<(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties().
|
inline |
Definition at line 162 of file OpFlash.h.
References fZCenter.
Referenced by opdet::OpFlashMCTruthAna::analyze(), opdet::OpFlashAna::analyze(), recob::operator<<(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties().
|
inline |
Definition at line 166 of file OpFlash.h.
References fZWidth.
Referenced by opdet::OpFlashMCTruthAna::analyze(), opdet::OpFlashAna::analyze(), recob::operator<<(), and cosmic::BeamFlashTrackMatchTaggerAlg::PrintFlashProperties().
|
private |
|
private |
Fast to total light ratio.
Definition at line 41 of file OpFlash.h.
Referenced by FastToTotal(), and OpFlash().
|
private |
|
private |
Is this in the beam frame?
Definition at line 42 of file OpFlash.h.
Referenced by InBeamFrame(), and OpFlash().
|
private |
Is this in time with beam?
Definition at line 43 of file OpFlash.h.
Referenced by OnBeamTime(), and OpFlash().
|
private |
|
private |
|
private |
Width of the flash in time [us].
Definition at line 29 of file OpFlash.h.
Referenced by OpFlash(), and TimeWidth().
|
private |
Geometric center in each view.
Definition at line 33 of file OpFlash.h.
Referenced by OpFlash(), and WireCenters().
|
private |
Geometric width in each view.
Definition at line 34 of file OpFlash.h.
Referenced by OpFlash(), and WireWidths().
|
private |
Estimated center in x [cm].
Definition at line 35 of file OpFlash.h.
Referenced by hasXCenter(), OpFlash(), and XCenter().
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
Special value used for absence of center location information.
Definition at line 23 of file OpFlash.h.
Referenced by hasXCenter(), and OpFlash().