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 hGenTauPt_ = fs->
make<TH1F>(
"GenTauPt",
"GenTauPt", 30, 0., 150.);
162 hTauJetPt_ = fs->
make<TH1F>(
"TauJetPt",
"TauJetPt", 30, 0., 150.);
198 fs->
make<TH1F>(
"TauDiscrAgainstElectrons",
"TauDiscrAgainstElectrons", 103, -0.015, 1.015);
222 for (pat::TauCollection::const_iterator patTau = patTaus->begin(); patTau != patTaus->end(); ++patTau) {
301 if (discrByIso > 0.5) {
309 if (discrByTaNC > 0.5) {
TH1 * hTauDiscrAgainstMuons_
~PatTauAnalyzer() override
std::string discrByLeadTrack_
double pt() const final
transverse momentum
TH1 * hTauNumIsoConeTracks_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
const reco::GenParticle * getGenTau(const pat::Tau &patTau)
PatTauAnalyzer(const edm::ParameterSet &)
T * make(const Args &...args) const
make new ROOT object
std::vector< reco::GenParticleRef > genParticleRefs() const
TH1 * hTauDiscrAgainstElectrons_
TH1 * hTauJetEnergyIsoPassed_
TH1 * hTauJetPtTaNCpassed_
T const * get() const
Returns C++ pointer to the item.
TH1 * hTauJetEnergyTaNCpassed_
Analysis-level tau class.
TH1 * hTauJetPtIsoPassed_
TH1 * hTauNumSigConeTracks_
T getParameter(std::string const &) const
TH1 * hTauJetPhiTaNCpassed_
void analyze(const edm::Event &, const edm::EventSetup &) override
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