Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
edm::Handle< edm::ThinnedAssociation > | getAssociation (edm::Event const &event) const |
edm::Handle< ThingCollection > | getParent (edm::Event const &event) const |
std::tuple< edm::Handle< ThingCollection >, edm::RefProd< ThingCollection > > | getThinned (edm::Event const &event) const |
edm::Handle< TrackOfThingsCollection > | getTrackCollection (edm::Event const &event) const |
void | incrementExpectedValue (std::vector< int >::const_iterator &iter) const |
template<typename RefT > | |
void | testRefToParent (RefT const &ref, std::string_view refName, int const expectedValue, int const eventOffset) const |
template<typename RefT > | |
void | testRefToThinned (RefT const &ref, std::string_view refName, int const expectedValue, int const eventOffset, edm::ProductID const thinnedCollectionID) const |
void | testVectors (TrackOfThings const &track, edm::RefProd< ThingCollection > const &thinnedRefProd, edm::EDProductGetter const &productGetter, int const eventOffset) const |
Private Attributes | |
bool | associationShouldBeDropped_ |
edm::EDGetTokenT< edm::ThinnedAssociation > | associationToken_ |
std::vector< unsigned int > | expectedIndexesIntoParent_ |
std::vector< int > | expectedParentContent_ |
std::vector< int > | expectedThinnedContent_ |
std::vector< int > | expectedValues_ |
int | parentSlimmedValueFactor_ |
edm::EDGetTokenT< ThingCollection > | parentToken_ |
bool | parentWasDropped_ |
int | refSlimmedValueFactor_ |
bool | refToParentIsAvailable_ |
bool | thinnedIsAlias_ |
int | thinnedSlimmedValueFactor_ |
edm::EDGetTokenT< ThingCollection > | thinnedToken_ |
bool | thinnedWasDropped_ |
edm::EDGetTokenT< TrackOfThingsCollection > | trackToken_ |
Additional Inherited Members | |
Public Types inherited from edm::global::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 21 of file ThinningTestAnalyzer.cc.
|
explicit |
Definition at line 74 of file ThinningTestAnalyzer.cc.
References associationShouldBeDropped_, associationToken_, submitPVResolutionJobs::count, expectedIndexesIntoParent_, expectedParentContent_, expectedThinnedContent_, expectedValues_, mps_fire::i, parentSlimmedValueFactor_, parentToken_, parentWasDropped_, muonDTDigis_cfi::pset, refSlimmedValueFactor_, refToParentIsAvailable_, runTheMatrix::ret, thinnedIsAlias_, thinnedSlimmedValueFactor_, thinnedToken_, thinnedWasDropped_, and trackToken_.
|
overridevirtual |
Implements edm::global::EDAnalyzerBase.
Definition at line 136 of file ThinningTestAnalyzer.cc.
References associationShouldBeDropped_, Exception, expectedValues_, getAssociation(), getParent(), getThinned(), getTrackCollection(), incrementExpectedValue(), parentWasDropped_, testRefToParent(), testRefToThinned(), testVectors(), edm::thinnedRefFrom(), thinnedWasDropped_, HLT_2023v12_cff::track, and JetHT_cfg::trackCollection.
|
static |
Definition at line 108 of file ThinningTestAnalyzer.cc.
References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.
|
private |
Definition at line 251 of file ThinningTestAnalyzer.cc.
References associationShouldBeDropped_, associationToken_, Exception, and expectedIndexesIntoParent_.
Referenced by analyze().
|
private |
Definition at line 189 of file ThinningTestAnalyzer.cc.
References Exception, expectedParentContent_, mps_fire::i, parentSlimmedValueFactor_, parentToken_, and parentWasDropped_.
Referenced by analyze().
|
private |
Definition at line 218 of file ThinningTestAnalyzer.cc.
References Exception, expectedThinnedContent_, thinnedSlimmedValueFactor_, thinnedToken_, thinnedWasDropped_, and mkLumiAveragedPlots::tuple.
Referenced by analyze().
|
private |
Definition at line 273 of file ThinningTestAnalyzer.cc.
References Exception, JetHT_cfg::trackCollection, and trackToken_.
Referenced by analyze().
|
private |
Definition at line 425 of file ThinningTestAnalyzer.cc.
References expectedValues_.
Referenced by analyze().
|
private |
Definition at line 282 of file ThinningTestAnalyzer.cc.
References Exception, or, refSlimmedValueFactor_, and refToParentIsAvailable_.
Referenced by analyze().
|
private |
Definition at line 309 of file ThinningTestAnalyzer.cc.
References Exception, and thinnedSlimmedValueFactor_.
Referenced by analyze().
|
private |
Definition at line 346 of file ThinningTestAnalyzer.cc.
References Exception, expectedValues_, dqmdumpme::k, edm::refcoreimpl::productGetter(), refSlimmedValueFactor_, refToParentIsAvailable_, edm::thinnedRefFrom(), thinnedSlimmedValueFactor_, thinnedWasDropped_, and HLT_2023v12_cff::track.
Referenced by analyze().
|
private |
Definition at line 67 of file ThinningTestAnalyzer.cc.
Referenced by analyze(), getAssociation(), and ThinningTestAnalyzer().
|
private |
Definition at line 57 of file ThinningTestAnalyzer.cc.
Referenced by getAssociation(), and ThinningTestAnalyzer().
|
private |
Definition at line 66 of file ThinningTestAnalyzer.cc.
Referenced by getAssociation(), and ThinningTestAnalyzer().
|
private |
Definition at line 61 of file ThinningTestAnalyzer.cc.
Referenced by getParent(), and ThinningTestAnalyzer().
|
private |
Definition at line 65 of file ThinningTestAnalyzer.cc.
Referenced by getThinned(), and ThinningTestAnalyzer().
|
private |
Definition at line 68 of file ThinningTestAnalyzer.cc.
Referenced by analyze(), incrementExpectedValue(), testVectors(), and ThinningTestAnalyzer().
|
private |
Definition at line 69 of file ThinningTestAnalyzer.cc.
Referenced by getParent(), and ThinningTestAnalyzer().
|
private |
Definition at line 55 of file ThinningTestAnalyzer.cc.
Referenced by getParent(), and ThinningTestAnalyzer().
|
private |
Definition at line 60 of file ThinningTestAnalyzer.cc.
Referenced by analyze(), getParent(), and ThinningTestAnalyzer().
|
private |
Definition at line 71 of file ThinningTestAnalyzer.cc.
Referenced by testRefToParent(), testVectors(), and ThinningTestAnalyzer().
|
private |
Definition at line 64 of file ThinningTestAnalyzer.cc.
Referenced by testRefToParent(), testVectors(), and ThinningTestAnalyzer().
|
private |
Definition at line 63 of file ThinningTestAnalyzer.cc.
Referenced by ThinningTestAnalyzer().
|
private |
Definition at line 70 of file ThinningTestAnalyzer.cc.
Referenced by getThinned(), testRefToThinned(), testVectors(), and ThinningTestAnalyzer().
|
private |
Definition at line 56 of file ThinningTestAnalyzer.cc.
Referenced by getThinned(), and ThinningTestAnalyzer().
|
private |
Definition at line 62 of file ThinningTestAnalyzer.cc.
Referenced by analyze(), getThinned(), testVectors(), and ThinningTestAnalyzer().
|
private |
Definition at line 58 of file ThinningTestAnalyzer.cc.
Referenced by getTrackCollection(), and ThinningTestAnalyzer().