|
| PatElectronAnalyzer (const edm::ParameterSet &) |
|
| ~PatElectronAnalyzer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
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 = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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) |
|
Definition at line 15 of file PatElectronAnalyzer.cc.
Definition at line 75 of file PatElectronAnalyzer.cc.
76 :
minPt_(
cfg.getParameter<
double>(
"minPt")),
78 mode_(
cfg.getParameter<
unsigned int>(
"mode")),
91 nr_ = fs->make<TH1I>(
"nr",
"nr", 10, 0, 10);
92 pt_ = fs->make<TH1F>(
"pt",
"pt", 20, 0., 100.);
93 eta_ = fs->make<TH1F>(
"eta",
"eta", 30, -3., 3.);
94 phi_ = fs->make<TH1F>(
"phi",
"phi", 35, -3.5, 3.5);
95 genPt_ = fs->make<TH1F>(
"genPt",
"pt", 20, 0., 100.);
96 genEta_ = fs->make<TH1F>(
"genEta",
"eta", 30, -3., 3.);
97 genPhi_ = fs->make<TH1F>(
"genPhi",
"phi", 35, -3.5, 3.5);
98 deltaR_ = fs->make<TH1F>(
"deltaR",
"log(dR)", 50, -5., 0.);
99 isoTag_ = fs->make<TH1F>(
"isoTag",
"iso", 50, 0., 10.);
100 invMass_ = fs->make<TH1F>(
"invMass",
"m", 100, 50., 150.);
101 deltaPhi_ = fs->make<TH1F>(
"deltaPhi",
"deltaPhi", 100, -3.5, 3.5);
References deltaPhi_, deltaR_, eta_, genEta_, genMatchMode_, genPhi_, genPt_, edm::ParameterSet::getParameter(), invMass_, isoTag_, maxDeltaM_, maxDeltaR_, maxTagIso_, nr_, phi_, pt_, and tagAndProbeMode_.
Implements edm::EDAnalyzer.
Definition at line 106 of file PatElectronAnalyzer.cc.
125 if (
part->status() == 1 &&
abs(
part->pdgId()) == 11) {
135 for (std::vector<pat::Electron>::const_iterator elec =
electrons->begin(); elec !=
electrons->end(); ++elec) {
136 if (elec->genLepton()) {
145 pt_->Fill(elec->pt());
146 eta_->Fill(elec->eta());
147 phi_->Fill(elec->phi());
161 for (std::vector<pat::Electron>::const_iterator elec =
electrons->begin(); elec !=
electrons->end(); ++elec) {
162 isoTag_->Fill(elec->trackIso());
163 if (elec->trackIso() <
maxTagIso_ && elec->electronID(
"eidTight") > 0.5) {
165 for (std::vector<pat::Electron>::const_iterator probe =
electrons->begin(); probe !=
electrons->end();
171 float zMass = (probe->p4() + elec->p4()).
mass();
183 pt_->Fill(probe->pt());
184 eta_->Fill(probe->eta());
185 phi_->Fill(probe->phi());
References funct::abs(), SiPixelRawToDigiRegional_cfi::deltaPhi, HLT_FULL_cff::DeltaPhi, deltaPhi_, electronAnalyzer_cfi::DeltaR, PbPb_ZMuSkimMuonDPG_cff::deltaR, deltaR_, electronID_, pwdgSkimBPark_cfi::electrons, electronSrcToken_, eta_, genEta_, genPhi_, genPt_, edm::Event::getByToken(), invMass_, isoTag_, EgHLTOffHistBins_cfi::mass, maxDeltaM_, maxDeltaR_, maxEta_, maxTagIso_, minPt_, mode_, nr_, ecalTrigSettings_cff::particles, particleSrcToken_, phi_, pt_, and HLTMuonOfflineAnalyzer_cfi::zMass.