#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-02-25/CAFAna/Core/ExposureSource.h"
Classes | |
struct | CutDetails |
Public Member Functions | |
~ExposureSource () | |
void | AddSink (const Cut &cut, IExposureSink *s) |
void | HandleSpill (const caf::SRSpillProxy *spill) override |
void | Finalize () |
POT/livetime is not filled into sinks until this is called! More... | |
void | ReportExposures (double denom=0) const |
Protected Attributes | |
std::vector< std::pair< Cut, CutDetails > > | fCuts |
bool | fFinalized = false |
Definition at line 15 of file ExposureSource.h.
ana::ExposureSource::~ExposureSource | ( | ) |
Definition at line 13 of file ExposureSource.cxx.
References om::cout, allTimeWatchdog::endl, fCuts, and fFinalized.
void ana::ExposureSource::AddSink | ( | const Cut & | cut, |
IExposureSink * | s | ||
) |
Definition at line 22 of file ExposureSource.cxx.
References ana::assert(), fCuts, fFinalized, ana::_Cut< T >::ID(), it, and make_pair().
Referenced by ana::SpectrumLoaderBase::AddReweightableSpectrum(), and ana::SpectrumLoaderBase::AddSpectrum().
void ana::ExposureSource::Finalize | ( | ) |
POT/livetime is not filled into sinks until this is called!
Definition at line 79 of file ExposureSource.cxx.
References om::cout, allTimeWatchdog::endl, fCuts, fFinalized, ana::IExposureSink::HandleLivetime(), ana::IExposureSink::HandlePOT(), and it.
Referenced by ana::SpectrumLoader::Go().
|
overridevirtual |
Implements ana::ISpillSink.
Definition at line 41 of file ExposureSource.cxx.
References ana::assert(), om::cout, cut, caf::Proxy< caf::SRSpill >::det, allTimeWatchdog::endl, fCuts, fFinalized, caf::Proxy< caf::SRSpill >::ismc, it, caf::kFARDET, livetime, ana::_Cut< T >::Livetime(), ana::_Cut< T >::POT(), pot, and caf::Proxy< caf::SRSpill >::spillpot.
Referenced by ana::SpectrumLoader::AccumulateExposures().
void ana::ExposureSource::ReportExposures | ( | double | denom = 0 | ) | const |
Definition at line 104 of file ExposureSource.cxx.
References om::cout, allTimeWatchdog::endl, fCuts, it, ana::POTPlusPercent(), and pots.
Referenced by ana::SpectrumLoader::Go().
|
protected |
Definition at line 39 of file ExposureSource.h.
Referenced by AddSink(), Finalize(), HandleSpill(), ReportExposures(), and ~ExposureSource().
|
protected |
Definition at line 41 of file ExposureSource.h.
Referenced by AddSink(), Finalize(), HandleSpill(), and ~ExposureSource().