74 std::vector<reco::GenParticleRef> associatedGenParticles = patTau.
genParticleRefs();
75 for (std::vector<reco::GenParticleRef>::const_iterator it = associatedGenParticles.begin();
76 it != associatedGenParticles.end();
78 if (it->isAvailable()) {
80 if (genParticle->pdgId() == -15 || genParticle->pdgId() == +15)
81 return genParticle.
get();
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);
223 for (pat::TauCollection::const_iterator patTau =
patTaus->begin(); patTau !=
patTaus->end(); ++patTau) {
302 if (discrByIso > 0.5) {
310 if (discrByTaNC > 0.5) {
static const std::string kSharedResource
TH1 * hTauDiscrAgainstMuons_
~PatTauAnalyzer() override
std::string discrByLeadTrack_
double pt() const final
transverse momentum
TH1 * hTauNumIsoConeTracks_
const reco::GenParticle * getGenTau(const pat::Tau &patTau)
PatTauAnalyzer(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TH1 * hTauDiscrAgainstElectrons_
TH1 * hTauJetEnergyIsoPassed_
TH1 * hTauJetPtTaNCpassed_
#define DEFINE_FWK_MODULE(type)
TH1 * hTauJetEnergyTaNCpassed_
Analysis-level tau class.
TH1 * hTauJetPtIsoPassed_
TH1 * hTauNumSigConeTracks_
TH1 * hTauJetPhiTaNCpassed_
void analyze(const edm::Event &, const edm::EventSetup &) override
T const * get() const
Returns C++ pointer to the item.
edm::EDGetTokenT< pat::TauCollection > srcToken_
TH1 * hTauJetEtaIsoPassed_
TH1 * hTauJetPhiIsoPassed_
double phi() const final
momentum azimuthal angle
std::vector< reco::GenParticleRef > genParticleRefs() const
TH1 * hTauJetEtaTaNCpassed_
double energy() const final
energy
double eta() const final
momentum pseudorapidity