Public Member Functions | |
std::optional< edmtest::Thing > | choose (unsigned int iIndex, edmtest::Thing const &iItem) const |
void | preChoose (edm::Handle< edmtest::ThingCollection > tc, edm::Event const &event, edm::EventSetup const &es) |
void | reset () |
SlimmingThingSelector (edm::ParameterSet const &pset, edm::ConsumesCollector &&cc) | |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &desc) |
Private Attributes | |
unsigned int const | expectedCollectionSize_ |
std::set< unsigned int > | keysToSave_ |
unsigned int const | offsetToThinnedKey_ |
unsigned int const | offsetToValue_ |
edm::ESGetToken< edmtest::WhatsIt, GadgetRcd > const | setupToken_ |
int const | slimmedValueFactor_ |
edm::EDGetTokenT< TrackOfThingsCollection > const | trackToken_ |
Definition at line 24 of file SlimmingThingProducer.cc.
edmtest::SlimmingThingSelector::SlimmingThingSelector | ( | edm::ParameterSet const & | pset, |
edm::ConsumesCollector && | cc | ||
) |
Definition at line 46 of file SlimmingThingProducer.cc.
std::optional< edmtest::Thing > edmtest::SlimmingThingSelector::choose | ( | unsigned int | iIndex, |
edmtest::Thing const & | iItem | ||
) | const |
Definition at line 83 of file SlimmingThingProducer.cc.
References filterCSVwithJSON::copy, Exception, keysToSave_, offsetToValue_, and slimmedValueFactor_.
|
static |
Definition at line 54 of file SlimmingThingProducer.cc.
References submitPVResolutionJobs::desc.
void edmtest::SlimmingThingSelector::preChoose | ( | edm::Handle< edmtest::ThingCollection > | tc, |
edm::Event const & | event, | ||
edm::EventSetup const & | es | ||
) |
Definition at line 62 of file SlimmingThingProducer.cc.
References Exception, expectedCollectionSize_, edm::EventSetup::getHandle(), edm::ESHandleBase::isValid(), keysToSave_, offsetToThinnedKey_, setupToken_, HLT_2024v13_cff::track, and trackToken_.
|
inline |
Definition at line 34 of file SlimmingThingProducer.cc.
References keysToSave_.
|
private |
Definition at line 42 of file SlimmingThingProducer.cc.
Referenced by preChoose().
|
private |
Definition at line 39 of file SlimmingThingProducer.cc.
Referenced by choose(), preChoose(), and reset().
|
private |
Definition at line 40 of file SlimmingThingProducer.cc.
Referenced by preChoose().
|
private |
Definition at line 41 of file SlimmingThingProducer.cc.
Referenced by choose().
|
private |
Definition at line 38 of file SlimmingThingProducer.cc.
Referenced by preChoose().
|
private |
Definition at line 43 of file SlimmingThingProducer.cc.
Referenced by choose().
|
private |
Definition at line 37 of file SlimmingThingProducer.cc.
Referenced by preChoose().