#include <RecoHI/CentralityBinProducer/src/CentralityBinProducer.cc>
Private Types | |
enum | VariableType { HFtowers = 0, HFtowersPlus = 1, HFtowersMinus = 2, HFtowersTrunc = 3, HFtowersPlusTrunc = 4, HFtowersMinusTrunc = 5, HFhits = 6, PixelHits = 7, PixelTracks = 8, Tracks = 9, EB = 10, EE = 11, ZDChitsPlus = 12, ZDChitsMinus = 13, Missing = 14 } |
Private Member Functions | |
void | beginRun (edm::Run const &run, const edm::EventSetup &iSetup) override |
void | produce (edm::Event &, const edm::EventSetup &) override |
Private Attributes | |
std::string | centralityLabel_ |
std::string | centralityMC_ |
std::string | centralityVariable_ |
edm::Handle< reco::Centrality > | chandle_ |
edm::ESHandle< CentralityTable > | inputDB_ |
unsigned int | pPbRunFlip_ |
unsigned int | prevRun_ |
edm::EDGetTokenT< reco::Centrality > | tag_ |
VariableType | varType_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from edm::ProducerBase | |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
declare what type of product will make and with which optional label More... | |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (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) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 46 of file CentralityBinProducer.cc.
|
private |
Enumerator | |
---|---|
HFtowers | |
HFtowersPlus | |
HFtowersMinus | |
HFtowersTrunc | |
HFtowersPlusTrunc | |
HFtowersMinusTrunc | |
HFhits | |
PixelHits | |
PixelTracks | |
Tracks | |
EB | |
EE | |
ZDChitsPlus | |
ZDChitsMinus | |
Missing |
Definition at line 47 of file CentralityBinProducer.cc.
|
explicit |
Definition at line 99 of file CentralityBinProducer.cc.
References centralityLabel_, centralityMC_, centralityVariable_, EB, EE, Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), HFhits, HFtowers, HFtowersMinus, HFtowersMinusTrunc, HFtowersPlus, HFtowersPlusTrunc, HFtowersTrunc, Missing, PixelHits, PixelTracks, pPbRunFlip_, AlCaHLTBitMon_QueryRunRegistry::string, tag_, Tracks, varType_, ZDChitsMinus, and ZDChitsPlus.
|
override |
Definition at line 150 of file CentralityBinProducer.cc.
|
overrideprivatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 222 of file CentralityBinProducer.cc.
References centralityLabel_, centralityVariable_, edm::EventSetup::get(), get, HFtowersMinus, HFtowersMinusTrunc, HFtowersPlus, HFtowersPlusTrunc, inputDB_, pPbRunFlip_, prevRun_, edm::RunBase::run(), varType_, ZDChitsMinus, and ZDChitsPlus.
|
overrideprivatevirtual |
Implements edm::EDProducer.
Definition at line 160 of file CentralityBinProducer.cc.
References newFWLiteAna::bin, centralityVariable_, chandle_, EB, EE, reco::Centrality::EtEBSum(), reco::Centrality::EtEESum(), reco::Centrality::EtHFhitSum(), reco::Centrality::EtHFtowerSum(), reco::Centrality::EtHFtowerSumMinus(), reco::Centrality::EtHFtowerSumPlus(), reco::Centrality::EtHFtruncated(), reco::Centrality::EtHFtruncatedMinus(), reco::Centrality::EtHFtruncatedPlus(), Exception, HFhits, HFtowers, HFtowersMinus, HFtowersMinusTrunc, HFtowersPlus, HFtowersPlusTrunc, HFtowersTrunc, mps_fire::i, iEvent, inputDB_, CentralityTable::m_table, reco::Centrality::multiplicityPixel(), reco::Centrality::NpixelTracks(), reco::Centrality::Ntracks(), PixelHits, PixelTracks, tag_, Tracks, varType_, ZDChitsMinus, ZDChitsPlus, reco::Centrality::zdcSumMinus(), and reco::Centrality::zdcSumPlus().
|
private |
Definition at line 80 of file CentralityBinProducer.cc.
Referenced by beginRun(), and CentralityBinProducer().
|
private |
Definition at line 81 of file CentralityBinProducer.cc.
Referenced by CentralityBinProducer().
|
private |
Definition at line 79 of file CentralityBinProducer.cc.
Referenced by beginRun(), CentralityBinProducer(), and produce().
|
private |
Definition at line 75 of file CentralityBinProducer.cc.
Referenced by produce().
|
private |
Definition at line 77 of file CentralityBinProducer.cc.
Referenced by beginRun(), and produce().
|
private |
Definition at line 85 of file CentralityBinProducer.cc.
Referenced by beginRun(), and CentralityBinProducer().
|
private |
Definition at line 82 of file CentralityBinProducer.cc.
Referenced by beginRun().
|
private |
Definition at line 76 of file CentralityBinProducer.cc.
Referenced by CentralityBinProducer(), and produce().
|
private |
Definition at line 84 of file CentralityBinProducer.cc.
Referenced by beginRun(), CentralityBinProducer(), and produce().