cut-flow versioning info in the event provenance More...
#include "PhysicsTools/SelectorUtils/interface/VersionedSelector.h"
Public Member Functions | |
const unsigned | bitMap () const |
vid::CutFlowResult | cutFlowResult () const |
const size_t | cutFlowSize () const |
const unsigned | howFarInCutFlow () const |
void | initialize (const edm::ParameterSet &) |
const unsigned char * | md55Raw () const |
const std::string & | md5String () const |
const std::string & | name () const |
bool | operator() (const T &ref, pat::strbitset &ret) final |
This provides the interface for base classes to select objects. More... | |
bool | operator() (const T &ref, edm::EventBase const &e, pat::strbitset &ret) final |
This provides an alternative signature that includes extra information. More... | |
bool | operator() (typename T::value_type const &t) |
bool | operator() (typename T::value_type const &t, edm::EventBase const &e) |
bool | operator() (T const &t) final |
This provides an alternative signature without the second ret. More... | |
bool | operator() (T const &t, edm::EventBase const &e) final |
This provides an alternative signature that includes extra information. More... | |
bool | operator== (const VersionedSelector &other) const |
void | setConsumes (edm::ConsumesCollector) |
VersionedSelector () | |
VersionedSelector (const edm::ParameterSet &conf) | |
Public Member Functions inherited from Selector< T > | |
void | clear (std::string const &s) |
Turn off a given selection cut. More... | |
void | clear (index_type const &i) |
bool | considerCut (std::string const &s) const |
consider the cut at index "s" More... | |
bool | considerCut (index_type const &i) const |
int | cut (index_type const &i, int val) const |
Access the int cut values at index "s". More... | |
double | cut (index_type const &i, double val) const |
Access the double cut values at index "s". More... | |
int | cut (std::string s, int val) const |
Access the int cut values at index "s". More... | |
double | cut (std::string s, double val) const |
Access the double cut values at index "s". More... | |
pat::strbitset | getBitTemplate () const |
Get an empty bitset with the proper names. More... | |
double | getPasses (std::string const &s) const |
Return the number of passing cases. More... | |
double | getPasses (index_type const &i) const |
bool | ignoreCut (std::string const &s) const |
ignore the cut at index "s" More... | |
bool | ignoreCut (index_type const &i) const |
bool | operator[] (std::string const &s) const |
bool | operator[] (index_type const &i) const |
void | passCut (pat::strbitset &ret, std::string const &s) |
Passing cuts. More... | |
void | passCut (pat::strbitset &ret, index_type const &i) |
void | print (std::ostream &out) const |
Print the cut flow. More... | |
void | printActiveCuts (std::ostream &out) const |
Print the cuts being considered. More... | |
virtual void | push_back (std::string const &s) |
This is the registration of an individual cut string. More... | |
virtual void | push_back (std::string const &s, int cut) |
This is the registration of an individual cut string, with an int cut value. More... | |
virtual void | push_back (std::string const &s, double cut) |
This is the registration of an individual cut string, with a double cut value. More... | |
Selector () | |
Constructor clears the bits. More... | |
void | set (std::string const &s, bool val=true) |
Set a given selection cut, on or off. More... | |
void | set (index_type const &i, bool val=true) |
void | set (std::string const &s, int cut, bool val=true) |
Set a given selection cut, on or off, and reset int cut value. More... | |
void | set (index_type const &i, int cut, bool val=true) |
void | set (std::string const &s, double cut, bool val=true) |
Set a given selection cut, on or off, and reset int cut value. More... | |
void | set (index_type const &i, double cut, bool val=true) |
void | setIgnored (pat::strbitset &ret) |
set ignored bits More... | |
void | setIgnoredCuts (std::vector< std::string > const &bitsToIgnore) |
set the bits to ignore from a vector More... | |
virtual | ~Selector () |
Protected Attributes | |
unsigned | bitmap_ |
std::vector< typename Selector< T >::index_type > | cut_indices_ |
std::vector< std::shared_ptr< candf::CandidateCut > > | cuts_ |
unsigned | howfar_ |
bool | initialized_ |
std::vector< bool > | needs_event_content_ |
std::vector< double > | values_ |
Protected Attributes inherited from Selector< T > | |
pat::strbitset | bits_ |
the bitset indexed by strings More... | |
cut_flow_map | cutFlow_ |
map of cut flows in "human" order More... | |
double_map | doubleCuts_ |
the double-value cut map More... | |
int_map | intCuts_ |
the int-value cut map More... | |
pat::strbitset | retInternal_ |
internal ret if users don't care about return bits More... | |
Static Private Member Functions | |
static void | validateParamsAreTracked (const edm::ParameterSet &conf) |
Private Attributes | |
unsigned char | id_md5_ [EVP_MAX_MD_SIZE] |
std::string | md5_string_ |
std::string | name_ |
Additional Inherited Members | |
Public Types inherited from Selector< T > | |
typedef std::pair< index_type, size_t > | cut_flow_item |
typedef std::vector< cut_flow_item > | cut_flow_map |
typedef T | data_type |
typedef std::map< index_type, double > | double_map |
typedef pat::strbitset::index_type | index_type |
typedef std::map< index_type, int > | int_map |
cut-flow versioning info in the event provenance
class template to implement versioning for IDs that's available in the event provenance or available by hash-code in the event record
Definition at line 46 of file VersionedSelector.h.
|
inline |
Definition at line 48 of file VersionedSelector.h.
|
inline |
Definition at line 50 of file VersionedSelector.h.
References edm::ParameterSet::dump(), EVP_MD_CTX_free, EVP_MD_CTX_new, Selector< T >::getBitTemplate(), edm::ParameterSet::getParameter(), mps_fire::i, VersionedSelector< T >::id_md5_, VersionedSelector< T >::initialize(), VersionedSelector< T >::md5_string_, VersionedSelector< T >::name_, cms::openssl_init(), Selector< T >::retInternal_, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, edm::ParameterSet::trackedPart(), and VersionedSelector< T >::validateParamsAreTracked().
|
inline |
vid::CutFlowResult VersionedSelector< T >::cutFlowResult | ( | ) | const |
Definition at line 254 of file VersionedSelector.h.
References heavyIonCSV_trainingSettings::idx, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 154 of file VersionedSelector.h.
References VersionedSelector< T >::cuts_.
|
inline |
void VersionedSelector< T >::initialize | ( | const edm::ParameterSet & | conf | ) |
Definition at line 200 of file VersionedSelector.h.
References CINT_GUARD, HLT_2022v15_cff::distance, Exception, get, edm::ParameterSet::getParameterSetVector(), Skims_PA_cff::name, push_back(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by VersionedSelector< T >::VersionedSelector().
|
inline |
|
inline |
Definition at line 146 of file VersionedSelector.h.
References VersionedSelector< T >::md5_string_.
Referenced by VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
Definition at line 148 of file VersionedSelector.h.
References VersionedSelector< T >::name_.
Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inlinefinalvirtual |
This provides the interface for base classes to select objects.
Implements Selector< T >.
Definition at line 77 of file VersionedSelector.h.
References VersionedSelector< T >::bitmap_, VersionedSelector< T >::cut_indices_, VersionedSelector< T >::cuts_, Exception, runEdmFileComparison::failed, VersionedSelector< T >::howfar_, mps_fire::i, Selector< T >::ignoreCut(), VersionedSelector< T >::initialized_, Selector< T >::passCut(), mps_fire::result, runTheMatrix::ret, Selector< T >::setIgnored(), groupFilesInBlocks::temp, relativeConstraints::value, and VersionedSelector< T >::values_.
Referenced by VersionedSelector< T >::operator()().
|
inlinefinalvirtual |
This provides an alternative signature that includes extra information.
Reimplemented from Selector< T >.
Definition at line 102 of file VersionedSelector.h.
References VersionedSelector< T >::cuts_, MillePedeFileConverter_cfg::e, CutApplicatorWithEventContentBase::getEventContent(), mps_fire::i, VersionedSelector< T >::needs_event_content_, VersionedSelector< T >::operator()(), and runTheMatrix::ret.
|
inline |
Definition at line 117 of file VersionedSelector.h.
References VersionedSelector< T >::operator()(), submitPVValidationJobs::t, and groupFilesInBlocks::temp.
|
inline |
Definition at line 122 of file VersionedSelector.h.
References MillePedeFileConverter_cfg::e, VersionedSelector< T >::operator()(), submitPVValidationJobs::t, and groupFilesInBlocks::temp.
|
inlinefinalvirtual |
This provides an alternative signature without the second ret.
Reimplemented from Selector< T >.
Definition at line 127 of file VersionedSelector.h.
References VersionedSelector< T >::operator()(), Selector< T >::retInternal_, pat::strbitset::set(), Selector< T >::setIgnored(), and submitPVValidationJobs::t.
|
inlinefinalvirtual |
This provides an alternative signature that includes extra information.
Reimplemented from Selector< T >.
Definition at line 134 of file VersionedSelector.h.
References MillePedeFileConverter_cfg::e, VersionedSelector< T >::operator()(), Selector< T >::retInternal_, pat::strbitset::set(), Selector< T >::setIgnored(), and submitPVValidationJobs::t.
|
inline |
Definition at line 142 of file VersionedSelector.h.
References VersionedSelector< T >::id_md5_, and trackingPlots::other.
void VersionedSelector< T >::setConsumes | ( | edm::ConsumesCollector | cc | ) |
Definition at line 271 of file VersionedSelector.h.
References gpuPixelDoublets::cc, Exception, mps_fire::i, Skims_PA_cff::name, and CutApplicatorWithEventContentBase::setConsumes().
|
inlinestaticprivate |
Definition at line 170 of file VersionedSelector.h.
References edm::ParameterSet::copyFrom(), edm::ParameterSet::dump(), Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameterNames(), AlCaHLTBitMon_QueryRunRegistry::string, edm::ParameterSet::trackedPart(), and Types::untracked.
Referenced by VersionedSelector< T >::VersionedSelector().
|
protected |
Definition at line 191 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::bitMap(), and VersionedSelector< T >::operator()().
|
protected |
Definition at line 190 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::operator()().
|
protected |
Definition at line 188 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::cutFlowSize(), and VersionedSelector< T >::operator()().
|
protected |
Definition at line 191 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::howFarInCutFlow(), and VersionedSelector< T >::operator()().
|
private |
Definition at line 195 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::md55Raw(), VersionedSelector< T >::operator==(), and VersionedSelector< T >::VersionedSelector().
|
protected |
Definition at line 187 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::operator()().
|
private |
Definition at line 196 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::md5String(), and VersionedSelector< T >::VersionedSelector().
|
private |
Definition at line 196 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::name(), and VersionedSelector< T >::VersionedSelector().
|
protected |
Definition at line 189 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::operator()().
|
protected |
Definition at line 192 of file VersionedSelector.h.
Referenced by VersionedSelector< T >::operator()().