12 std::vector<reco::GenParticleRef> associatedGenParticles = patTau.
genParticleRefs();
13 for ( std::vector<reco::GenParticleRef>::const_iterator it = associatedGenParticles.begin();
14 it != associatedGenParticles.end(); ++it ) {
15 if ( it->isAvailable() ) {
17 if ( genParticle->pdgId() == -15 || genParticle->pdgId() == +15 )
return genParticle.
get();
101 hTauJetPt_ = fs->
make<TH1F>(
"TauJetPt",
"TauJetPt", 30, 0., 150.);
161 for ( pat::TauCollection::const_iterator patTau = patTaus->begin();
162 patTau != patTaus->end(); ++patTau ) {
241 if ( discrByIso > 0.5 ) {
249 if ( discrByTaNC > 0.5 ) {
TH1 * hTauDiscrAgainstMuons_
T getParameter(std::string const &) const
virtual double pt() const final
transverse momentum
std::string discrByLeadTrack_
virtual double eta() const final
momentum pseudorapidity
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
void analyze(const edm::Event &, const edm::EventSetup &)
std::vector< reco::GenParticleRef > genParticleRefs() const
TH1 * hTauDiscrAgainstElectrons_
TH1 * hTauJetEnergyIsoPassed_
virtual double phi() const final
momentum azimuthal angle
virtual double energy() const final
energy
TH1 * hTauJetPtTaNCpassed_
T const * get() const
Returns C++ pointer to the item.
TH1 * hTauJetEnergyTaNCpassed_
Analysis-level tau class.
TH1 * hTauJetPtIsoPassed_
TH1 * hTauNumSigConeTracks_
TH1 * hTauJetPhiTaNCpassed_
edm::EDGetTokenT< pat::TauCollection > srcToken_
TH1 * hTauJetEtaIsoPassed_
TH1 * hTauJetPhiIsoPassed_
TH1 * hTauJetEtaTaNCpassed_