Template for Cut and SpillCut. More...
#include "/cvmfs/nova.opensciencegrid.org/externals/cafanacore/v01.12/src/CAFAna/Core/Cut.h"
Public Types | |
typedef bool( | CutFunc_t) (const T *sr) |
The type of the function part of a cut. More... | |
Public Member Functions | |
_Cut (const std::function< CutFunc_t > &func, const std::function< ExposureFunc_t > &liveFunc=0, const std::function< ExposureFunc_t > &potFunc=0) | |
std::function can wrap a real function, function object, or lambda More... | |
_Cut (const _Cut< T > &c) | |
_Cut & | operator= (const _Cut< T > &c) |
~_Cut () | |
bool | operator() (const T *sr) const |
Allows a cut to be called with bool result = myCut(sr) syntax. More... | |
double | Livetime (const caf::SRSpillProxy *spill) const |
Provide a Livetime function if your cut is a timing cut etc. More... | |
double | POT (const caf::SRSpillProxy *spill) const |
Could be useful for cuts on specific batches? More... | |
_Cut< T > | operator&& (const _Cut< T > &c) const |
_Cut< T > | operator|| (const _Cut< T > &b) const |
_Cut< T > | operator! () const |
int | ID () const |
Cuts with the same definition will have the same ID. More... | |
Static Public Member Functions | |
static int | MaxID () |
Protected Member Functions | |
operator bool () const | |
_Cut (const std::function< CutFunc_t > &fun, const std::function< ExposureFunc_t > &liveFunc, const std::function< ExposureFunc_t > &potFunc, int id) | |
Protected Attributes | |
std::function< CutFunc_t > | fFunc |
std::function< ExposureFunc_t > | fLiveFunc |
std::function< ExposureFunc_t > | fPOTFunc |
int | fID |
Static Protected Attributes | |
static int | fgNextID = 0 |
The next ID that hasn't yet been assigned. More... | |
Template for Cut and SpillCut.
ana::_Cut< T >::_Cut | ( | const std::function< CutFunc_t > & | func, |
const std::function< ExposureFunc_t > & | liveFunc = 0 , |
||
const std::function< ExposureFunc_t > & | potFunc = 0 |
||
) |
std::function can wrap a real function, function object, or lambda
Definition at line 12 of file Cut.cxx.
References ana::DepMan< T >::RegisterConstruction().
Referenced by ana::_Cut< caf::SRProxy >::MaxID().
Definition at line 39 of file Cut.cxx.
References ana::_Cut< T >::fFunc, ana::_Cut< T >::fID, ana::_Cut< T >::fLiveFunc, ana::_Cut< T >::fPOTFunc, ana::_Cut< T >::operator=(), ana::DepMan< T >::RegisterConstruction(), and ana::DepMan< T >::RegisterDependency().
Definition at line 33 of file Cut.cxx.
References ana::DepMan< T >::RegisterDestruction().
|
protected |
Cuts with the same definition will have the same ID.
Definition at line 55 of file Cut.h.
Referenced by ana::ExposureSource::AddSink(), ana::SpectrumLoaderBase::GetSinkSCW(), ana::_Cut< T >::operator!(), ana::_Cut< T >::operator&&(), ana::CompareByID::operator()(), ana::_preview::_RecordSource< T >::operator[](), and ana::_Cut< T >::operator||().
|
inline |
Provide a Livetime function if your cut is a timing cut etc.
Definition at line 39 of file Cut.h.
Referenced by ana::ExposureSource::HandleSpill().
Definition at line 170 of file Cut.cxx.
References a, ana::_Cut< T >::fgNextID, ana::_Cut< T >::ID(), PandAna.Demos.tute_pid_validation::ids, ana::_Cut< T >::operator()(), sr, and T.
Referenced by ana::_Cut< caf::SRProxy >::POT().
Definition at line 129 of file Cut.cxx.
References a, b, ana::CombineExposures(), ana::_Cut< T >::fgNextID, ana::_Cut< T >::fLiveFunc, ana::_Cut< T >::fPOTFunc, ana::_Cut< T >::ID(), PandAna.Demos.tute_pid_validation::ids, findDuplicateFiles::key, ana::_Cut< T >::operator()(), ana::_Cut< T >::operator||(), sr, and T.
Referenced by ana::CombineExposures(), and ana::_Cut< caf::SRProxy >::POT().
Allows a cut to be called with bool result = myCut(sr) syntax.
Definition at line 33 of file Cut.h.
Referenced by ana::CombineExposures(), ana::_Cut< T >::operator!(), ana::_Cut< T >::operator&&(), and ana::_Cut< T >::operator||().
Definition at line 62 of file Cut.cxx.
References ana::_Cut< T >::fFunc, ana::_Cut< T >::fID, ana::_Cut< T >::fLiveFunc, ana::_Cut< T >::fPOTFunc, ana::DepMan< T >::RegisterConstruction(), and ana::DepMan< T >::RegisterDependency().
Referenced by ana::_Cut< T >::_Cut().
Definition at line 151 of file Cut.cxx.
References a, b, ana::CombineExposures(), ana::_Cut< T >::fgNextID, ana::_Cut< T >::fLiveFunc, ana::_Cut< T >::fPOTFunc, ana::_Cut< T >::ID(), PandAna.Demos.tute_pid_validation::ids, findDuplicateFiles::key, ana::_Cut< T >::operator()(), sr, and T.
Referenced by ana::_Cut< T >::operator&&(), and ana::_Cut< caf::SRProxy >::POT().
|
inline |
Could be useful for cuts on specific batches?
Definition at line 45 of file Cut.h.
Referenced by ana::ExposureSource::HandleSpill().
Definition at line 80 of file Cut.h.
Referenced by ana::_Cut< T >::_Cut(), ana::_Cut< caf::SRProxy >::operator()(), and ana::_Cut< T >::operator=().
The next ID that hasn't yet been assigned.
Definition at line 85 of file Cut.h.
Referenced by ana::_Cut< caf::SRProxy >::MaxID(), ana::_Cut< T >::operator!(), ana::_Cut< T >::operator&&(), and ana::_Cut< T >::operator||().
Definition at line 83 of file Cut.h.
Referenced by ana::_Cut< T >::_Cut(), ana::_Cut< caf::SRProxy >::ID(), and ana::_Cut< T >::operator=().
|
protected |
Definition at line 81 of file Cut.h.
Referenced by ana::_Cut< T >::_Cut(), ana::_Cut< caf::SRProxy >::Livetime(), ana::_Cut< T >::operator&&(), ana::_Cut< T >::operator=(), and ana::_Cut< T >::operator||().
|
protected |
Definition at line 81 of file Cut.h.
Referenced by ana::_Cut< T >::_Cut(), ana::_Cut< T >::operator&&(), ana::_Cut< T >::operator=(), ana::_Cut< T >::operator||(), and ana::_Cut< caf::SRProxy >::POT().