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
std::string discrByLeadTrack_
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 &)
double pt() const final
transverse momentum
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_
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_
double phi() const final
momentum azimuthal angle
TH1 * hTauJetEtaTaNCpassed_