#include <ObjectCounter.h>
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
event processing More... | |
Private Attributes | |
unsigned long | n2Sum_ |
unsigned long | n_ |
partial statistics More... | |
unsigned long | nSum_ |
edm::EDGetTokenT< C > | srcToken_ |
label of source collection More... | |
bool | verbose_ |
verbosity flag More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
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<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) |
Counts the number of objects in a collection and prints a summary report at the end of a job.
Template parameters:
Definition at line 26 of file ObjectCounter.h.
|
explicit |
constructor from parameter set
Definition at line 45 of file ObjectCounter.h.
|
overrideprivatevirtual |
event processing
Definition at line 68 of file ObjectCounter.h.
References MessageLogger_cfi::cerr, edm::Event::getByToken(), h, edm::HandleBase::isValid(), gen::n, ObjectCounter< C >::n2Sum_, ObjectCounter< C >::n_, ObjectCounter< C >::nSum_, and ObjectCounter< C >::srcToken_.
|
virtual |
end-of-job processing
Reimplemented from edm::EDAnalyzer.
Definition at line 52 of file ObjectCounter.h.
References gather_cfg::cout, triggerObjects_cff::id, gen::n, ObjectCounter< C >::n2Sum_, ObjectCounter< C >::n_, ObjectCounter< C >::nSum_, alignCSCRings::s, mathSSE::sqrt(), ObjectCounter< C >::srcToken_, and ObjectCounter< C >::verbose_.
Referenced by o2olib.O2ORunMgr::executeJob().
|
private |
Definition at line 41 of file ObjectCounter.h.
Referenced by ObjectCounter< C >::analyze(), and ObjectCounter< C >::endJob().
|
private |
partial statistics
Definition at line 41 of file ObjectCounter.h.
Referenced by ObjectCounter< C >::analyze(), and ObjectCounter< C >::endJob().
|
private |
Definition at line 41 of file ObjectCounter.h.
Referenced by ObjectCounter< C >::analyze(), and ObjectCounter< C >::endJob().
|
private |
label of source collection
Definition at line 37 of file ObjectCounter.h.
Referenced by ObjectCounter< C >::analyze(), and ObjectCounter< C >::endJob().
|
private |
verbosity flag
Definition at line 39 of file ObjectCounter.h.
Referenced by ObjectCounter< C >::endJob().