|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
void | beginJob () override |
|
void | endJob () override |
|
| PatTauAnalyzer (const edm::ParameterSet &) |
|
| ~PatTauAnalyzer () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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 const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
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) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
Definition at line 17 of file PatTauAnalyzer.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 215 of file PatTauAnalyzer.cc.
References discrByIso_, discrByLeadTrack_, discrByTaNC_, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), edm::Event::getByToken(), getGenTau(), hGenTauEnergy_, hGenTauEta_, hGenTauPhi_, hGenTauPt_, hNumTauJets_, hTauDiscrAgainstMuons_, hTauDiscrByIso_, hTauDiscrByTaNC_, hTauJetEnergy_, hTauJetEnergyIsoPassed_, hTauJetEnergyTaNCpassed_, hTauJetEtaIsoPassed_, hTauJetEtaTaNCpassed_, hTauJetPhiIsoPassed_, hTauJetPhiTaNCpassed_, hTauJetPt_, hTauJetPtIsoPassed_, hTauJetPtTaNCpassed_, hTauNumIsoConeTracks_, hTauNumSigConeTracks_, hemisphereProducer_cfi::patTaus, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), requireGenTauMatch_, and srcToken_.
223 for (pat::TauCollection::const_iterator patTau =
patTaus->begin(); patTau !=
patTaus->end(); ++patTau) {
302 if (discrByIso > 0.5) {
310 if (discrByTaNC > 0.5) {
TH1 * hTauDiscrAgainstMuons_
std::string discrByLeadTrack_
double pt() const final
transverse momentum
TH1 * hTauNumIsoConeTracks_
const reco::GenParticle * getGenTau(const pat::Tau &patTau)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TH1 * hTauJetEnergyIsoPassed_
TH1 * hTauJetPtTaNCpassed_
TH1 * hTauJetEnergyTaNCpassed_
TH1 * hTauJetPtIsoPassed_
TH1 * hTauNumSigConeTracks_
TH1 * hTauJetPhiTaNCpassed_
edm::EDGetTokenT< pat::TauCollection > srcToken_
TH1 * hTauJetEtaIsoPassed_
TH1 * hTauJetPhiIsoPassed_
double phi() const final
momentum azimuthal angle
TH1 * hTauJetEtaTaNCpassed_
double energy() const final
energy
double eta() const final
momentum pseudorapidity
void PatTauAnalyzer::beginJob |
( |
void |
| ) |
|
|
overridevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 149 of file PatTauAnalyzer.cc.
References compareTotals::fs, hGenTauEnergy_, hGenTauEta_, hGenTauPhi_, hGenTauPt_, hNumTauJets_, hTauDiscrAgainstElectrons_, hTauDiscrAgainstMuons_, hTauDiscrByIso_, hTauDiscrByTaNC_, hTauJetEnergy_, hTauJetEnergyIsoPassed_, hTauJetEnergyTaNCpassed_, hTauJetEtaIsoPassed_, hTauJetEtaTaNCpassed_, hTauJetPhiIsoPassed_, hTauJetPhiTaNCpassed_, hTauJetPt_, hTauJetPtIsoPassed_, hTauJetPtTaNCpassed_, hTauLeadTrackPt_, hTauNumIsoConeTracks_, hTauNumSigConeTracks_, and Pi.
155 hGenTauEnergy_ =
fs->make<TH1F>(
"GenTauEnergy",
"GenTauEnergy", 30, 0., 150.);
156 hGenTauPt_ =
fs->make<TH1F>(
"GenTauPt",
"GenTauPt", 30, 0., 150.);
157 hGenTauEta_ =
fs->make<TH1F>(
"GenTauEta",
"GenTauEta", 24, -3., +3.);
162 hTauJetEnergy_ =
fs->make<TH1F>(
"TauJetEnergy",
"TauJetEnergy", 30, 0., 150.);
163 hTauJetPt_ =
fs->make<TH1F>(
"TauJetPt",
"TauJetPt", 30, 0., 150.);
183 hNumTauJets_ =
fs->make<TH1F>(
"NumTauJets",
"NumTauJets", 10, -0.5, 9.5);
194 hTauDiscrByIso_ =
fs->make<TH1F>(
"TauDiscrByIso",
"TauDiscrByIso", 103, -0.015, 1.015);
195 hTauDiscrByTaNC_ =
fs->make<TH1F>(
"TauDiscrByTaNC",
"TauDiscrByTaNC", 103, -0.015, 1.015);
199 fs->make<TH1F>(
"TauDiscrAgainstElectrons",
"TauDiscrAgainstElectrons", 103, -0.015, 1.015);
TH1 * hTauDiscrAgainstMuons_
TH1 * hTauNumIsoConeTracks_
TH1 * hTauDiscrAgainstElectrons_
TH1 * hTauJetEnergyIsoPassed_
TH1 * hTauJetPtTaNCpassed_
TH1 * hTauJetEnergyTaNCpassed_
TH1 * hTauJetPtIsoPassed_
TH1 * hTauNumSigConeTracks_
TH1 * hTauJetPhiTaNCpassed_
TH1 * hTauJetEtaIsoPassed_
TH1 * hTauJetPhiIsoPassed_
TH1 * hTauJetEtaTaNCpassed_