Go to the documentation of this file.
11 std::vector<reco::GenParticleRef> associatedGenParticles = patTau.
genParticleRefs();
12 for (std::vector<reco::GenParticleRef>::const_iterator it = associatedGenParticles.begin();
13 it != associatedGenParticles.end();
15 if (it->isAvailable()) {
17 if (genParticle->pdgId() == -15 || genParticle->pdgId() == +15)
18 return genParticle.
get();
135 fs->
make<TH1F>(
"TauDiscrAgainstElectrons",
"TauDiscrAgainstElectrons", 103, -0.015, 1.015);
159 for (pat::TauCollection::const_iterator patTau =
patTaus->begin(); patTau !=
patTaus->end(); ++patTau) {
238 if (discrByIso > 0.5) {
246 if (discrByTaNC > 0.5) {
TH1 * hTauNumSigConeTracks_
Analysis-level tau class.
T const * get() const
Returns C++ pointer to the item.
double pt() const final
transverse momentum
~PatTauAnalyzer() override
TH1 * hTauJetPhiIsoPassed_
#define DEFINE_FWK_MODULE(type)
std::vector< reco::GenParticleRef > genParticleRefs() const
TH1 * hTauJetEnergyIsoPassed_
const reco::GenParticle * getGenTau(const pat::Tau &patTau)
TH1 * hTauJetEtaTaNCpassed_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TH1 * hTauJetPhiTaNCpassed_
TH1 * hTauNumIsoConeTracks_
edm::EDGetTokenT< pat::TauCollection > srcToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
double eta() const final
momentum pseudorapidity
TH1 * hTauJetEnergyTaNCpassed_
TH1 * hTauDiscrAgainstElectrons_
double phi() const final
momentum azimuthal angle
TH1 * hTauJetPtIsoPassed_
TH1 * hTauDiscrAgainstMuons_
double energy() const final
energy
PatTauAnalyzer(const edm::ParameterSet &)
TH1 * hTauJetEtaIsoPassed_
T * make(const Args &... args) const
make new ROOT object
TH1 * hTauJetPtTaNCpassed_
std::string discrByLeadTrack_