#include <PFCandidateBenchmarkAnalyzer.h>
Public Types | |
typedef dqm::legacy::DQMStore | DQMStore |
Public Types inherited from DQMEDAnalyzer | |
typedef dqm::reco::DQMStore | DQMStore |
typedef dqm::reco::MonitorElement | MonitorElement |
Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator > | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from Benchmark | |
typedef dqm::legacy::DQMStore | DQMStore |
enum | Mode { DEFAULT, DQMOFFLINE, VALIDATION } |
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
PFCandidateBenchmarkAnalyzer (const edm::ParameterSet ¶meterSet) | |
Public Member Functions inherited from BenchmarkAnalyzer | |
BenchmarkAnalyzer () | |
Constructors. More... | |
BenchmarkAnalyzer (const edm::ParameterSet &) | |
~BenchmarkAnalyzer () override | |
Destructor. More... | |
Public Member Functions inherited from DQMEDAnalyzer | |
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) final |
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
void | beginStream (edm::StreamID id) final |
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
DQMEDAnalyzer () | |
void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
void | endRun (edm::Run const &run, edm::EventSetup const &setup) final |
virtual bool | getCanSaveByLumi () |
Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator > | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Public Member Functions inherited from PFCandidateBenchmark | |
void | fill (const reco::PFCandidateCollection &pfCands) |
void | fillOne (const reco::PFCandidate &pfCand) |
fill histograms with a given particle More... | |
PFCandidateBenchmark (Mode mode) | |
void | setup (DQMStore::IBooker &b) |
book histograms More... | |
~PFCandidateBenchmark () override | |
Public Member Functions inherited from Benchmark | |
Benchmark (Mode mode=DEFAULT) | |
bool | isInRange (float pt, float eta, float phi) const |
virtual void | setDirectory (TDirectory *dir) |
void | setParameters (Mode mode) |
void | setRange (float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax) |
void | write () |
write to the TFile, in plain ROOT mode. No need to call this function in DQM mode More... | |
virtual | ~Benchmark () noexcept(false) |
Public Attributes | |
edm::EDGetTokenT< reco::PFCandidateCollection > | myColl_ |
Additional Inherited Members | |
Static Public Member Functions inherited from DQMEDAnalyzer | |
static void | globalEndJob (DQMEDAnalyzerGlobalCache const *) |
static void | globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context) |
static void | globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context) |
static std::unique_ptr< DQMEDAnalyzerGlobalCache > | initializeGlobalCache (edm::ParameterSet const &) |
Protected Member Functions inherited from DQMEDAnalyzer | |
uint64_t | meId () const |
Protected Member Functions inherited from Benchmark | |
TH1F * | book1D (DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax) |
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
TH2F * | book2D (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float *xbins, int nbinsy, float ymin, float ymax) |
book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
TH2F * | book2D (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax) |
book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
TProfile * | bookProfile (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float *xbins, float ymin, float ymax, const char *option) |
book a TProfile, either through IBooker or plain root More... | |
TProfile * | bookProfile (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float xmin, float xmax, float ymin, float ymax, const char *option) |
book a TProfile histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
Protected Attributes inherited from BenchmarkAnalyzer | |
std::string | benchmarkLabel_ |
benchmark label More... | |
std::string | eventInfoFolder_ |
edm::InputTag | inputLabel_ |
input collection More... | |
std::string | outputFile_ |
name of the output root file More... | |
std::string | subsystemname_ |
Protected Attributes inherited from DQMEDAnalyzer | |
edm::EDPutTokenT< DQMToken > | lumiToken_ |
edm::EDPutTokenT< DQMToken > | runToken_ |
unsigned int | streamId_ |
Protected Attributes inherited from PFCandidateBenchmark | |
TH1F * | ecalEnergy_ |
TH1F * | elementsInBlocksSize_ |
TH1F * | hcalEnergy_ |
TH1F * | mva_e_pi_ |
TH1F * | particleId_ |
Protected Attributes inherited from Benchmark | |
TDirectory * | dir_ |
float | etaMax_ |
float | etaMin_ |
Mode | mode_ |
float | phiMax_ |
float | phiMin_ |
float | ptMax_ |
float | ptMin_ |
Definition at line 11 of file PFCandidateBenchmarkAnalyzer.h.
Definition at line 13 of file PFCandidateBenchmarkAnalyzer.h.
PFCandidateBenchmarkAnalyzer::PFCandidateBenchmarkAnalyzer | ( | const edm::ParameterSet & | parameterSet | ) |
Definition at line 18 of file PFCandidateBenchmarkAnalyzer.cc.
References edm::ParameterSet::getParameter(), BenchmarkAnalyzer::inputLabel_, myColl_, edm::parameterSet(), and Benchmark::setRange().
|
overridevirtual |
Reimplemented from DQMEDAnalyzer.
Definition at line 37 of file PFCandidateBenchmarkAnalyzer.cc.
References universalConfigTemplate::collection, PFCandidateBenchmark::fill(), iEvent, and myColl_.
|
overridevirtual |
Reimplemented from BenchmarkAnalyzer.
Definition at line 30 of file PFCandidateBenchmarkAnalyzer.cc.
References BenchmarkAnalyzer::bookHistograms(), and PFCandidateBenchmark::setup().
edm::EDGetTokenT<reco::PFCandidateCollection> PFCandidateBenchmarkAnalyzer::myColl_ |
Definition at line 21 of file PFCandidateBenchmarkAnalyzer.h.
Referenced by analyze(), and PFCandidateBenchmarkAnalyzer().