Namespaces | |
factory | |
Functions | |
std::ostream & | operator<< (std::ostream &out, SharedWaveformBaseline::Params_t const ¶ms) |
void | writeHistogram (std::vector< double > const &binned) |
void | checkOnBeamFlash (std::vector< recob::OpFlash > const &FlashVector) |
void | RunFlashFinder (std::vector< recob::OpHit > const &HitVector, std::vector< recob::OpFlash > &FlashVector, std::vector< std::vector< int >> &AssocList, double const BinWidth, geo::GeometryCore const &geom, float const FlashThreshold, float const WidthTolerance, detinfo::DetectorClocksData const &ClocksData, float const TrigCoinc) |
unsigned int | GetAccumIndex (double const PeakTime, double const MinTime, double const BinWidth, double const BinOffset) |
void | FillAccumulator (unsigned int const &AccumIndex, unsigned int const &HitIndex, double const PE, float const FlashThreshold, std::vector< double > &Binned, std::vector< std::vector< int >> &Contributors, std::vector< int > &FlashesInAccumulator) |
void | FillFlashesBySizeMap (std::vector< int > const &FlashesInAccumulator, std::vector< double > const &BinnedPE, int const &Accumulator, std::map< double, std::map< int, std::vector< int >>, std::greater< double >> &FlashesBySize) |
void | FillHitsThisFlash (std::vector< std::vector< int >> const &Contributors, int const &Bin, std::vector< int > const &HitClaimedByFlash, std::vector< int > &HitsThisFlash) |
void | ClaimHits (std::vector< recob::OpHit > const &HitVector, std::vector< int > const &HitsThisFlash, float const FlashThreshold, std::vector< std::vector< int >> &HitsPerFlash, std::vector< int > &HitClaimedByFlash) |
void | AssignHitsToFlash (std::vector< int > const &FlashesInAccumulator1, std::vector< int > const &FlashesInAccumulator2, std::vector< double > const &Binned1, std::vector< double > const &Binned2, std::vector< std::vector< int >> const &Contributors1, std::vector< std::vector< int >> const &Contributors2, std::vector< recob::OpHit > const &HitVector, std::vector< std::vector< int >> &HitsPerFlash, float const FlashThreshold) |
void | FindSeedHit (std::map< double, std::vector< int >, std::greater< double >> const &HitsBySize, std::vector< bool > &HitsUsed, std::vector< recob::OpHit > const &HitVector, std::vector< int > &HitsThisRefinedFlash, double &PEAccumulated, double &FlashMaxTime, double &FlashMinTime) |
void | AddHitToFlash (int const &HitID, std::vector< bool > &HitsUsed, recob::OpHit const ¤tHit, double const WidthTolerance, std::vector< int > &HitsThisRefinedFlash, double &PEAccumulated, double &FlashMaxTime, double &FlashMinTime) |
void | CheckAndStoreFlash (std::vector< std::vector< int >> &RefinedHitsPerFlash, std::vector< int > const &HitsThisRefinedFlash, double const PEAccumulated, float const FlashThreshold, std::vector< bool > &HitsUsed) |
void | RefineHitsInFlash (std::vector< int > const &HitsThisFlash, std::vector< recob::OpHit > const &HitVector, std::vector< std::vector< int >> &RefinedHitsPerFlash, float const WidthTolerance, float const FlashThreshold) |
void | AddHitContribution (recob::OpHit const ¤tHit, double &MaxTime, double &MinTime, double &AveTime, double &FastToTotal, double &AveAbsTime, double &TotalPE, std::vector< double > &PEs) |
void | GetHitGeometryInfo (recob::OpHit const ¤tHit, geo::GeometryCore const &geom, std::vector< double > &sumw, std::vector< double > &sumw2, double &sumy, double &sumy2, double &sumz, double &sumz2) |
double | CalculateWidth (double const sum, double const sum_squared, double const weights_sum) |
void | ConstructFlash (std::vector< int > const &HitsPerFlashVec, std::vector< recob::OpHit > const &HitVector, std::vector< recob::OpFlash > &FlashVector, geo::GeometryCore const &geom, detinfo::DetectorClocksData const &ClocksData, float const TrigCoinc) |
double | GetLikelihoodLateLight (double const iPE, double const iTime, double const iWidth, double const jPE, double const jTime, double const jWidth) |
void | MarkFlashesForRemoval (std::vector< recob::OpFlash > const &FlashVector, size_t const BeginFlash, std::vector< bool > &MarkedForRemoval) |
void | RemoveFlashesFromVectors (std::vector< bool > const &MarkedForRemoval, std::vector< recob::OpFlash > &FlashVector, size_t const BeginFlash, std::vector< std::vector< int >> &RefinedHitsPerFlash) |
void | RemoveLateLight (std::vector< recob::OpFlash > &FlashVector, std::vector< std::vector< int >> &RefinedHitsPerFlash) |
template<typename T , typename Compare > | |
std::vector< int > | sort_permutation (std::vector< T > const &vec, int offset, Compare compare) |
template<typename T > | |
void | apply_permutation (std::vector< T > &vec, std::vector< int > const &p) |
void | RunHitFinder (std::vector< raw::OpDetWaveform > const &opDetWaveformVector, std::vector< recob::OpHit > &hitVector, pmtana::PulseRecoManager const &pulseRecoMgr, pmtana::PMTPulseRecoBase const &threshAlg, geo::GeometryCore const &geometry, float hitThreshold, detinfo::DetectorClocksData const &clocksData, calib::IPhotonCalibrator const &calibrator, bool use_start_time) |
void | ConstructHit (float hitThreshold, int channel, double timeStamp, pmtana::pulse_param const &pulse, std::vector< recob::OpHit > &hitVector, detinfo::DetectorClocksData const &clocksData, calib::IPhotonCalibrator const &calibrator, bool use_start_time) |
void | StartopDetDigitizerWorkers (unsigned n_workers, opDetDigitizerWorker::Semaphore &sem_start) |
void | WaitopDetDigitizerWorkers (unsigned n_workers, opDetDigitizerWorker::Semaphore &sem_finish) |
void | opDetDigitizerWorkerThread (const opDetDigitizerWorker &worker, detinfo::DetectorClocksData const &clockData, opDetDigitizerWorker::Semaphore &sem_start, opDetDigitizerWorker::Semaphore &sem_finish, bool ApplyTriggerLocations, bool *finished) |
void | AddTriggerLocation (std::vector< std::array< raw::TimeStamp_t, 2 >> &triggers, std::array< raw::TimeStamp_t, 2 > range) |
void | AddTriggerPrimitive (std::vector< TriggerPrimitive > &triggers, TriggerPrimitive trigger) |
void | AddTriggerPrimitiveFinish (std::vector< TriggerPrimitive > &triggers, TriggerPrimitive trigger) |
Variables | |
createEngine | this |
createEngine | fFlatRandom {fEngine} |
Title: FlashHypothesis Class Author: Wes Ketchum (wketc) hum@ lanl. gov
Description: Class that represents a flash hypothesis (PEs per opdet) and its error
Title: FlashUtilities Class Author: Wes Ketchum (wketc) hum@ lanl. gov
Description: Class that contains utility functions for flash and flash hypotheses: — compare a flash hypothesis to a truth or reco vector — get an extent of a flash (central point, width) These classes should operate using simple objects, and will need other classes/functions to fill those vectors properly.
Title: OpFlash Algorithims Authors, editors: Ben Jones, MIT Wes Ketchum wketc Gleb Sinev hum@ lanl. govgleb. Alex Himmel sine v@duk e.ed uahimm el@f nal.g ov
Description: These are the algorithms used by OpFlashFinder to produce flashes.
Title: OpHit Algorithims Authors, editors: Ben Jones, MIT Wes Ketchum wketc Gleb Sinev hum@ lanl. govgleb. Alex Himmel sine v@duk e.ed uahimm Kevin Wood el@f nal.g ovkevin .woo d@sto nybr ook.e du
Description: These are the algorithms used by OpHitFinder to produce optical hits.
Interface class for OpDeconvolution tool
Interface class for PMTGainFluctuations1Dynode tool
void opdet::AddHitContribution | ( | recob::OpHit const & | currentHit, |
double & | MaxTime, | ||
double & | MinTime, | ||
double & | AveTime, | ||
double & | FastToTotal, | ||
double & | AveAbsTime, | ||
double & | TotalPE, | ||
std::vector< double > & | PEs | ||
) |
Definition at line 456 of file OpFlashAlg.cxx.
void opdet::AddHitToFlash | ( | int const & | HitID, |
std::vector< bool > & | HitsUsed, | ||
recob::OpHit const & | currentHit, | ||
double const | WidthTolerance, | ||
std::vector< int > & | HitsThisRefinedFlash, | ||
double & | PEAccumulated, | ||
double & | FlashMaxTime, | ||
double & | FlashMinTime | ||
) |
Definition at line 331 of file OpFlashAlg.cxx.
void opdet::AddTriggerLocation | ( | std::vector< std::array< raw::TimeStamp_t, 2 >> & | triggers, |
std::array< raw::TimeStamp_t, 2 > | range | ||
) |
Definition at line 30 of file opDetSBNDTriggerAlg.cc.
void opdet::AddTriggerPrimitive | ( | std::vector< TriggerPrimitive > & | triggers, |
TriggerPrimitive | trigger | ||
) |
Definition at line 38 of file opDetSBNDTriggerAlg.cc.
void opdet::AddTriggerPrimitiveFinish | ( | std::vector< TriggerPrimitive > & | triggers, |
TriggerPrimitive | trigger | ||
) |
Definition at line 47 of file opDetSBNDTriggerAlg.cc.
void opdet::apply_permutation | ( | std::vector< T > & | vec, |
std::vector< int > const & | p | ||
) |
Definition at line 704 of file OpFlashAlg.cxx.
void opdet::AssignHitsToFlash | ( | std::vector< int > const & | FlashesInAccumulator1, |
std::vector< int > const & | FlashesInAccumulator2, | ||
std::vector< double > const & | Binned1, | ||
std::vector< double > const & | Binned2, | ||
std::vector< std::vector< int >> const & | Contributors1, | ||
std::vector< std::vector< int >> const & | Contributors2, | ||
std::vector< recob::OpHit > const & | HitVector, | ||
std::vector< std::vector< int >> & | HitsPerFlash, | ||
float const | FlashThreshold | ||
) |
Definition at line 250 of file OpFlashAlg.cxx.
double opdet::CalculateWidth | ( | double const | sum, |
double const | sum_squared, | ||
double const | weights_sum | ||
) |
Definition at line 515 of file OpFlashAlg.cxx.
void opdet::CheckAndStoreFlash | ( | std::vector< std::vector< int >> & | RefinedHitsPerFlash, |
std::vector< int > const & | HitsThisRefinedFlash, | ||
double const | PEAccumulated, | ||
float const | FlashThreshold, | ||
std::vector< bool > & | HitsUsed | ||
) |
Definition at line 359 of file OpFlashAlg.cxx.
void opdet::checkOnBeamFlash | ( | std::vector< recob::OpFlash > const & | FlashVector | ) |
Definition at line 54 of file OpFlashAlg.cxx.
void opdet::ClaimHits | ( | std::vector< recob::OpHit > const & | HitVector, |
std::vector< int > const & | HitsThisFlash, | ||
float const | FlashThreshold, | ||
std::vector< std::vector< int >> & | HitsPerFlash, | ||
std::vector< int > & | HitClaimedByFlash | ||
) |
Definition at line 227 of file OpFlashAlg.cxx.
void opdet::ConstructFlash | ( | std::vector< int > const & | HitsPerFlashVec, |
std::vector< recob::OpHit > const & | HitVector, | ||
std::vector< recob::OpFlash > & | FlashVector, | ||
geo::GeometryCore const & | geom, | ||
detinfo::DetectorClocksData const & | ClocksData, | ||
float const | TrigCoinc | ||
) |
Definition at line 525 of file OpFlashAlg.cxx.
void opdet::ConstructHit | ( | float | hitThreshold, |
int | channel, | ||
double | timeStamp, | ||
pmtana::pulse_param const & | pulse, | ||
std::vector< recob::OpHit > & | hitVector, | ||
detinfo::DetectorClocksData const & | clocksData, | ||
calib::IPhotonCalibrator const & | calibrator, | ||
bool | use_start_time | ||
) |
Definition at line 65 of file OpHitAlg.cxx.
void opdet::FillAccumulator | ( | unsigned int const & | AccumIndex, |
unsigned int const & | HitIndex, | ||
double const | PE, | ||
float const | FlashThreshold, | ||
std::vector< double > & | Binned, | ||
std::vector< std::vector< int >> & | Contributors, | ||
std::vector< int > & | FlashesInAccumulator | ||
) |
Definition at line 182 of file OpFlashAlg.cxx.
void opdet::FillFlashesBySizeMap | ( | std::vector< int > const & | FlashesInAccumulator, |
std::vector< double > const & | BinnedPE, | ||
int const & | Accumulator, | ||
std::map< double, std::map< int, std::vector< int >>, std::greater< double >> & | FlashesBySize | ||
) |
Definition at line 202 of file OpFlashAlg.cxx.
void opdet::FillHitsThisFlash | ( | std::vector< std::vector< int >> const & | Contributors, |
int const & | Bin, | ||
std::vector< int > const & | HitClaimedByFlash, | ||
std::vector< int > & | HitsThisFlash | ||
) |
Definition at line 214 of file OpFlashAlg.cxx.
void opdet::FindSeedHit | ( | std::map< double, std::vector< int >, std::greater< double >> const & | HitsBySize, |
std::vector< bool > & | HitsUsed, | ||
std::vector< recob::OpHit > const & | HitVector, | ||
std::vector< int > & | HitsThisRefinedFlash, | ||
double & | PEAccumulated, | ||
double & | FlashMaxTime, | ||
double & | FlashMinTime | ||
) |
Definition at line 301 of file OpFlashAlg.cxx.
unsigned int opdet::GetAccumIndex | ( | double const | PeakTime, |
double const | MinTime, | ||
double const | BinWidth, | ||
double const | BinOffset | ||
) |
Definition at line 172 of file OpFlashAlg.cxx.
void opdet::GetHitGeometryInfo | ( | recob::OpHit const & | currentHit, |
geo::GeometryCore const & | geom, | ||
std::vector< double > & | sumw, | ||
std::vector< double > & | sumw2, | ||
double & | sumy, | ||
double & | sumy2, | ||
double & | sumz, | ||
double & | sumz2 | ||
) |
Definition at line 483 of file OpFlashAlg.cxx.
double opdet::GetLikelihoodLateLight | ( | double const | iPE, |
double const | iTime, | ||
double const | iWidth, | ||
double const | jPE, | ||
double const | jTime, | ||
double const | jWidth | ||
) |
Definition at line 605 of file OpFlashAlg.cxx.
void opdet::MarkFlashesForRemoval | ( | std::vector< recob::OpFlash > const & | FlashVector, |
size_t const | BeginFlash, | ||
std::vector< bool > & | MarkedForRemoval | ||
) |
Definition at line 623 of file OpFlashAlg.cxx.
void opdet::opDetDigitizerWorkerThread | ( | const opDetDigitizerWorker & | worker, |
detinfo::DetectorClocksData const & | clockData, | ||
opDetDigitizerWorker::Semaphore & | sem_start, | ||
opDetDigitizerWorker::Semaphore & | sem_finish, | ||
bool | ApplyTriggerLocations, | ||
bool * | finished | ||
) |
Definition at line 21 of file opDetDigitizerWorker.cc.
|
inline |
Definition at line 123 of file SharedWaveformBaseline.h.
void opdet::RefineHitsInFlash | ( | std::vector< int > const & | HitsThisFlash, |
std::vector< recob::OpHit > const & | HitVector, | ||
std::vector< std::vector< int >> & | RefinedHitsPerFlash, | ||
float const | WidthTolerance, | ||
float const | FlashThreshold | ||
) |
Definition at line 384 of file OpFlashAlg.cxx.
void opdet::RemoveFlashesFromVectors | ( | std::vector< bool > const & | MarkedForRemoval, |
std::vector< recob::OpFlash > & | FlashVector, | ||
size_t const | BeginFlash, | ||
std::vector< std::vector< int >> & | RefinedHitsPerFlash | ||
) |
Definition at line 651 of file OpFlashAlg.cxx.
void opdet::RemoveLateLight | ( | std::vector< recob::OpFlash > & | FlashVector, |
std::vector< std::vector< int >> & | RefinedHitsPerFlash | ||
) |
Definition at line 665 of file OpFlashAlg.cxx.
void opdet::RunFlashFinder | ( | std::vector< recob::OpHit > const & | HitVector, |
std::vector< recob::OpFlash > & | FlashVector, | ||
std::vector< std::vector< int >> & | AssocList, | ||
double const | BinWidth, | ||
geo::GeometryCore const & | geom, | ||
float const | FlashThreshold, | ||
float const | WidthTolerance, | ||
detinfo::DetectorClocksData const & | ClocksData, | ||
float const | TrigCoinc | ||
) |
Definition at line 63 of file OpFlashAlg.cxx.
void opdet::RunHitFinder | ( | std::vector< raw::OpDetWaveform > const & | opDetWaveformVector, |
std::vector< recob::OpHit > & | hitVector, | ||
pmtana::PulseRecoManager const & | pulseRecoMgr, | ||
pmtana::PMTPulseRecoBase const & | threshAlg, | ||
geo::GeometryCore const & | geometry, | ||
float | hitThreshold, | ||
detinfo::DetectorClocksData const & | clocksData, | ||
calib::IPhotonCalibrator const & | calibrator, | ||
bool | use_start_time | ||
) |
Definition at line 30 of file OpHitAlg.cxx.
std::vector< int > opdet::sort_permutation | ( | std::vector< T > const & | vec, |
int | offset, | ||
Compare | compare | ||
) |
Definition at line 691 of file OpFlashAlg.cxx.
void opdet::StartopDetDigitizerWorkers | ( | unsigned | n_workers, |
opDetDigitizerWorker::Semaphore & | sem_start | ||
) |
Definition at line 49 of file opDetDigitizerWorker.cc.
void opdet::WaitopDetDigitizerWorkers | ( | unsigned | n_workers, |
opDetDigitizerWorker::Semaphore & | sem_finish | ||
) |
Definition at line 55 of file opDetDigitizerWorker.cc.
void opdet::writeHistogram | ( | std::vector< double > const & | binned | ) |
Definition at line 35 of file OpFlashAlg.cxx.
createEngine opdet::fFlatRandom {fEngine} |
Definition at line 85 of file OpMCDigi_module.cc.
createEngine opdet::this |
Definition at line 84 of file OpMCDigi_module.cc.