#include <HistoAnalyzer.h>
Public Member Functions | |
HistoAnalyzer (const edm::ParameterSet &) | |
constructor from parameter set More... | |
~HistoAnalyzer () | |
destructor More... | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Protected Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
process an event More... | |
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 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) |
Private Attributes | |
edm::EDGetTokenT< C > | srcToken_ |
label of the collection to be read in More... | |
bool | usingWeights_ |
Do we weight events? More... | |
std::vector< ExpressionHisto < typename C::value_type > * > | vhistograms |
vector of the histograms More... | |
edm::EDGetTokenT< double > | weightsToken_ |
label of the weight collection (can be null for weights = 1) More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Creates histograms defined in config file
Template parameters:
Definition at line 22 of file HistoAnalyzer.h.
HistoAnalyzer< C >::HistoAnalyzer | ( | const edm::ParameterSet & | par | ) |
constructor from parameter set
Definition at line 45 of file HistoAnalyzer.h.
References end, estimatePileup::hist, bookConverter::histograms, ExpressionHisto< T >::initialize(), TFileService::tFileDirectory(), and HistoAnalyzer< C >::vhistograms.
HistoAnalyzer< C >::~HistoAnalyzer | ( | ) |
destructor
Definition at line 67 of file HistoAnalyzer.h.
References end.
|
overrideprotectedvirtual |
process an event
Implements edm::EDAnalyzer.
Definition at line 79 of file HistoAnalyzer.h.
References coll, HTMLExport::elem(), end, edm::Event::getByToken(), i, and histoStyle::weight.
|
private |
label of the collection to be read in
Definition at line 35 of file HistoAnalyzer.h.
|
private |
Do we weight events?
Definition at line 37 of file HistoAnalyzer.h.
|
private |
vector of the histograms
Definition at line 41 of file HistoAnalyzer.h.
Referenced by HistoAnalyzer< C >::HistoAnalyzer().
|
private |
label of the weight collection (can be null for weights = 1)
Definition at line 39 of file HistoAnalyzer.h.