CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PatTauAnalyzer Class Reference
Inheritance diagram for PatTauAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 
 PatTauAnalyzer (const edm::ParameterSet &)
 
 ~PatTauAnalyzer () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

std::string discrByIso_
 
std::string discrByLeadTrack_
 
std::string discrByTaNC_
 
TH1 * hGenTauEnergy_
 
TH1 * hGenTauEta_
 
TH1 * hGenTauPhi_
 
TH1 * hGenTauPt_
 
TH1 * hNumTauJets_
 
TH1 * hTauDiscrAgainstElectrons_
 
TH1 * hTauDiscrAgainstMuons_
 
TH1 * hTauDiscrByIso_
 
TH1 * hTauDiscrByTaNC_
 
TH1 * hTauJetEnergy_
 
TH1 * hTauJetEnergyIsoPassed_
 
TH1 * hTauJetEnergyTaNCpassed_
 
TH1 * hTauJetEta_
 
TH1 * hTauJetEtaIsoPassed_
 
TH1 * hTauJetEtaTaNCpassed_
 
TH1 * hTauJetPhi_
 
TH1 * hTauJetPhiIsoPassed_
 
TH1 * hTauJetPhiTaNCpassed_
 
TH1 * hTauJetPt_
 
TH1 * hTauJetPtIsoPassed_
 
TH1 * hTauJetPtTaNCpassed_
 
TH1 * hTauLeadTrackPt_
 
TH1 * hTauNumIsoConeTracks_
 
TH1 * hTauNumSigConeTracks_
 
bool requireGenTauMatch_
 
edm::InputTag src_
 
edm::EDGetTokenT< pat::TauCollectionsrcToken_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 17 of file PatTauAnalyzer.cc.

Constructor & Destructor Documentation

◆ PatTauAnalyzer()

PatTauAnalyzer::PatTauAnalyzer ( const edm::ParameterSet cfg)
explicit

Definition at line 88 of file PatTauAnalyzer.cc.

88  {
89  //std::cout << "<PatTauAnalyzer::PatTauAnalyzer>:" << std::endl;
90 
91  //--- read name of pat::Tau collection
92  src_ = cfg.getParameter<edm::InputTag>("src");
93  //std::cout << " src = " << src_ << std::endl;
94  srcToken_ = consumes<pat::TauCollection>(src_);
95 
96  //--- fill histograms for all tau-jet candidates or for "real" taus only ?
97  requireGenTauMatch_ = cfg.getParameter<bool>("requireGenTauMatch");
98  //std::cout << " requireGenTauMatch = " << requireGenTauMatch_ << std::endl;
99 
100  //--- read names of tau id. discriminators
101  discrByLeadTrack_ = cfg.getParameter<std::string>("discrByLeadTrack");
102  //std::cout << " discrByLeadTrack = " << discrByLeadTrack_ << std::endl;
103 
104  discrByIso_ = cfg.getParameter<std::string>("discrByIso");
105  //std::cout << " discrByIso = " << discrByIso_ << std::endl;
106 
107  discrByTaNC_ = cfg.getParameter<std::string>("discrByTaNC");
108  //std::cout << " discrByTaNC = " << discrByTaNC_ << std::endl;
109 }

References looper::cfg, discrByIso_, discrByLeadTrack_, discrByTaNC_, requireGenTauMatch_, src_, srcToken_, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~PatTauAnalyzer()

PatTauAnalyzer::~PatTauAnalyzer ( )
override

Definition at line 111 of file PatTauAnalyzer.cc.

111  {
112  //std::cout << "<PatTauAnalyzer::~PatTauAnalyzer>:" << std::endl;
113 
114  //--- clean-up memory;
115  // delete all histograms
116  /*
117  deletion of histograms taken care of by TFileService;
118  do not delete them here (if the histograms are deleted here,
119  they will not appear in the ROOT file written by TFileService)
120 
121  delete hGenTauEnergy_;
122  delete hGenTauPt_;
123  delete hGenTauEta_;
124  delete hGenTauPhi_;
125  delete hTauJetEnergy_;
126  delete hTauJetPt_;
127  delete hTauJetEta_;
128  delete hTauJetPhi_;
129  delete hNumTauJets_;
130  delete hTauLeadTrackPt_;
131  delete hTauNumSigConeTracks_;
132  delete hTauNumIsoConeTracks_;
133  delete hTauDiscrByIso_;
134  delete hTauDiscrByTaNC_;
135  delete hTauDiscrAgainstElectrons_;
136  delete hTauDiscrAgainstMuons_;
137  delete hTauJetEnergyIsoPassed_;
138  delete hTauJetPtIsoPassed_;
139  delete hTauJetEtaIsoPassed_;
140  delete hTauJetPhiIsoPassed_;
141  delete hTauJetEnergyTaNCpassed_;
142  delete hTauJetPtTaNCpassed_;
143  delete hTauJetEtaTaNCpassed_;
144  delete hTauJetPhiTaNCpassed_;
145  */
146 }

Member Function Documentation

◆ analyze()

void PatTauAnalyzer::analyze ( const edm::Event evt,
const edm::EventSetup es 
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 214 of file PatTauAnalyzer.cc.

214  {
215  //std::cout << "<PatTauAnalyzer::analyze>:" << std::endl;
216 
219 
220  hNumTauJets_->Fill(patTaus->size());
221 
222  for (pat::TauCollection::const_iterator patTau = patTaus->begin(); patTau != patTaus->end(); ++patTau) {
223  //--- skip fake taus in case configuration parameters set to do so...
224  const reco::GenParticle* genTau = getGenTau(*patTau);
225  if (requireGenTauMatch_ && !genTau)
226  continue;
227 
228  //--- fill generator level histograms
229  if (genTau) {
230  hGenTauEnergy_->Fill(genTau->energy());
231  hGenTauPt_->Fill(genTau->pt());
232  hGenTauEta_->Fill(genTau->eta());
233  hGenTauPhi_->Fill(genTau->phi());
234  }
235 
236  //--- fill reconstruction level histograms
237  // for Pt of highest Pt track within signal cone tau-jet...
238  hTauJetEnergy_->Fill(patTau->energy());
239  hTauJetPt_->Fill(patTau->pt());
240  //
241  // TO-DO:
242  // 1.) fill histograms
243  // hTauJetEta_ and hTauJetPhi_
244  // with the pseudo-rapidity and azimuthal angle
245  // of the tau-jet candidate respectively
246  // hTauJetEta_->...
247  // hTauJetPhi_->...
248  //
249  // 2.) fill histogram
250  // hTauLeadTrackPt_
251  // with the transverse momentum of the highest Pt ("leading") track within the tau-jet
252  //
253  // NOTE:
254  // 1.) please have a look at
255  // http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/DataFormats/Candidate/interface/Particle.h?revision=1.28&view=markup
256  // to find the methods for accessing eta and phi of the tau-jet
257  //
258  // 2.) please have a look at
259  // http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/DataFormats/PatCandidates/interface/Tau.h?revision=1.25&view=markup
260  // to find the method for accessing the leading track
261  //
262  // 3.) the method pat::Tau::leadTrack returns a reference (reco::TrackRef) to a reco::Track object
263  // this reference can be null (in case no high Pt track has been reconstructed within the tau-jet),
264  // so a check if the leadTrack exists is needed before dereferencing the reco::TrackRef via operator->
265  //
266  // if ( patTau->leadTrack().isAvailable() ) hTauLeadTrackPt_->Fill(patTau->leadTrack()->pt());
267 
268  //... for total number of tracks within signal/isolation cones
269  hTauNumSigConeTracks_->Fill(patTau->signalTracks().size());
270  hTauNumIsoConeTracks_->Fill(patTau->isolationTracks().size());
271 
272  //... for values of tau id. discriminators based on track isolation cut/
273  // neural network-based tau id.
274  // (combine with requirement of at least one "leading" track of Pt > 5. GeV
275  // within the signal cone of the tau-jet)
276  float discrByIso = (patTau->tauID(discrByLeadTrack_.data()) > 0.5) ? patTau->tauID(discrByIso_.data()) : 0.;
277  hTauDiscrByIso_->Fill(discrByIso);
278  float discrByTaNC = (patTau->tauID(discrByLeadTrack_.data()) > 0.5) ? patTau->tauID(discrByTaNC_.data()) : 0.;
279  hTauDiscrByTaNC_->Fill(discrByTaNC);
280 
281  //... for values of tau id. discriminators against (unidentified) electrons and muons
282  //
283  // TO-DO: fill histogram
284  // hTauDiscrAgainstElectrons_
285  // with the value of the discriminatorAgainstElectronsLoose
286  //
287  // NOTE:
288  // 1.) please have a look at
289  // http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/DataFormats/PatCandidates/interface/Tau.h?revision=1.25&view=markup
290  // to find the method for accessing the tau id. information
291  //
292  // 2.) please have a look at
293  // http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/PhysicsTools/PatAlgos/python/tools/tauTools.py?revision=1.43&view=markup
294  // and convince yourself that the string "againstElectronLoose" needs to be passed as argument
295  // of the pat::Tau::tauID method
296  //
297  // hTauDiscrAgainstElectrons_->Fill...
298  hTauDiscrAgainstMuons_->Fill(patTau->tauID("againstMuonLoose"));
299 
300  //... for Energy, Pt, Eta, Phi of tau-jets passing the discriminatorByIsolation selection
301  if (discrByIso > 0.5) {
302  hTauJetEnergyIsoPassed_->Fill(patTau->energy());
303  hTauJetPtIsoPassed_->Fill(patTau->pt());
304  hTauJetEtaIsoPassed_->Fill(patTau->eta());
305  hTauJetPhiIsoPassed_->Fill(patTau->phi());
306  }
307 
308  //... for Energy, Pt, Eta, Phi of tau-jets passing the discriminatorByTaNC ("Tau Neural Classifier") selection
309  if (discrByTaNC > 0.5) {
310  hTauJetEnergyTaNCpassed_->Fill(patTau->energy());
311  hTauJetPtTaNCpassed_->Fill(patTau->pt());
312  hTauJetEtaTaNCpassed_->Fill(patTau->eta());
313  hTauJetPhiTaNCpassed_->Fill(patTau->phi());
314  }
315  }
316 }

References discrByIso_, discrByLeadTrack_, discrByTaNC_, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), edm::Event::getByToken(), getGenTau(), hGenTauEnergy_, hGenTauEta_, hGenTauPhi_, hGenTauPt_, hNumTauJets_, hTauDiscrAgainstMuons_, hTauDiscrByIso_, hTauDiscrByTaNC_, hTauJetEnergy_, hTauJetEnergyIsoPassed_, hTauJetEnergyTaNCpassed_, hTauJetEtaIsoPassed_, hTauJetEtaTaNCpassed_, hTauJetPhiIsoPassed_, hTauJetPhiTaNCpassed_, hTauJetPt_, hTauJetPtIsoPassed_, hTauJetPtTaNCpassed_, hTauNumIsoConeTracks_, hTauNumSigConeTracks_, hemisphereProducer_cfi::patTaus, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), requireGenTauMatch_, and srcToken_.

◆ beginJob()

void PatTauAnalyzer::beginJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 148 of file PatTauAnalyzer.cc.

148  {
149  //--- retrieve handle to auxiliary service
150  // used for storing histograms into ROOT file
152 
153  //--- book generator level histograms
154  hGenTauEnergy_ = fs->make<TH1F>("GenTauEnergy", "GenTauEnergy", 30, 0., 150.);
155  hGenTauPt_ = fs->make<TH1F>("GenTauPt", "GenTauPt", 30, 0., 150.);
156  hGenTauEta_ = fs->make<TH1F>("GenTauEta", "GenTauEta", 24, -3., +3.);
157  hGenTauPhi_ = fs->make<TH1F>("GenTauPhi", "GenTauPhi", 18, -TMath::Pi(), +TMath::Pi());
158 
159  //--- book reconstruction level histograms
160  // for tau-jet Energy, Pt, Eta, Phi
161  hTauJetEnergy_ = fs->make<TH1F>("TauJetEnergy", "TauJetEnergy", 30, 0., 150.);
162  hTauJetPt_ = fs->make<TH1F>("TauJetPt", "TauJetPt", 30, 0., 150.);
163  //
164  // TO-DO: add histograms for eta and phi of the tau-jet candidate
165  //
166  // NOTE:
167  // 1.) please use
168  // "TauJetEta" and "TauJetPhi"
169  // for the names of the histograms and choose the exact same binning
170  // as is used for the histograms
171  // "TauJetEtaIsoPassed" and "TauJetPhiIsoPassed"
172  // below
173  //
174  // 2.) please check the histograms
175  // hTauJetEta_ and hTauJetPt_
176  // have already been defined in PatTauAnalyzer.h
177  //
178  //hTauJetEta_ =...
179  //hTauJetPt_ =...
180 
181  //... for number of tau-jet candidates
182  hNumTauJets_ = fs->make<TH1F>("NumTauJets", "NumTauJets", 10, -0.5, 9.5);
183 
184  //... for Pt of highest Pt track within signal cone tau-jet...
185  hTauLeadTrackPt_ = fs->make<TH1F>("TauLeadTrackPt", "TauLeadTrackPt", 40, 0., 100.);
186 
187  //... for total number of tracks within signal/isolation cones
188  hTauNumSigConeTracks_ = fs->make<TH1F>("TauNumSigConeTracks", "TauNumSigConeTracks", 10, -0.5, 9.5);
189  hTauNumIsoConeTracks_ = fs->make<TH1F>("TauNumIsoConeTracks", "TauNumIsoConeTracks", 20, -0.5, 19.5);
190 
191  //... for values of tau id. discriminators based on track isolation cut/
192  // neural network-based tau id.
193  hTauDiscrByIso_ = fs->make<TH1F>("TauDiscrByIso", "TauDiscrByIso", 103, -0.015, 1.015);
194  hTauDiscrByTaNC_ = fs->make<TH1F>("TauDiscrByTaNC", "TauDiscrByTaNC", 103, -0.015, 1.015);
195 
196  //... for values of tau id. discriminators against (unidentified) electrons and muons
198  fs->make<TH1F>("TauDiscrAgainstElectrons", "TauDiscrAgainstElectrons", 103, -0.015, 1.015);
199  hTauDiscrAgainstMuons_ = fs->make<TH1F>("TauDiscrAgainstMuons", "TauDiscrAgainstMuons", 103, -0.015, 1.015);
200 
201  //... for Energy, Pt, Eta, Phi of tau-jets passing the discriminatorByIsolation selection
202  hTauJetEnergyIsoPassed_ = fs->make<TH1F>("TauJetEnergyIsoPassed", "TauJetEnergyIsoPassed", 30, 0., 150.);
203  hTauJetPtIsoPassed_ = fs->make<TH1F>("TauJetPtIsoPassed", "TauJetPtIsoPassed", 30, 0., 150.);
204  hTauJetEtaIsoPassed_ = fs->make<TH1F>("TauJetEtaIsoPassed", "TauJetEtaIsoPassed", 24, -3., +3.);
205  hTauJetPhiIsoPassed_ = fs->make<TH1F>("TauJetPhiIsoPassed", "TauJetPhiIsoPassed", 18, -TMath::Pi(), +TMath::Pi());
206 
207  //... for Energy, Pt, Eta, Phi of tau-jets passing the discriminatorByTaNC ("Tau Neural Classifier") selection
208  hTauJetEnergyTaNCpassed_ = fs->make<TH1F>("TauJetEnergyTaNCpassed", "TauJetEnergyTaNCpassed", 30, 0., 150.);
209  hTauJetPtTaNCpassed_ = fs->make<TH1F>("TauJetPtTaNCpassed", "TauJetPtTaNCpassed", 30, 0., 150.);
210  hTauJetEtaTaNCpassed_ = fs->make<TH1F>("TauJetEtaTaNCpassed", "TauJetEtaTaNCpassed", 24, -3., +3.);
211  hTauJetPhiTaNCpassed_ = fs->make<TH1F>("TauJetPhiTaNCpassed", "TauJetPhiTaNCpassed", 18, -TMath::Pi(), +TMath::Pi());
212 }

References hGenTauEnergy_, hGenTauEta_, hGenTauPhi_, hGenTauPt_, hNumTauJets_, hTauDiscrAgainstElectrons_, hTauDiscrAgainstMuons_, hTauDiscrByIso_, hTauDiscrByTaNC_, hTauJetEnergy_, hTauJetEnergyIsoPassed_, hTauJetEnergyTaNCpassed_, hTauJetEtaIsoPassed_, hTauJetEtaTaNCpassed_, hTauJetPhiIsoPassed_, hTauJetPhiTaNCpassed_, hTauJetPt_, hTauJetPtIsoPassed_, hTauJetPtTaNCpassed_, hTauLeadTrackPt_, hTauNumIsoConeTracks_, hTauNumSigConeTracks_, TFileService::make(), and Pi.

◆ endJob()

void PatTauAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 318 of file PatTauAnalyzer.cc.

318  {
319  //--- nothing to be done yet...
320 }

Member Data Documentation

◆ discrByIso_

std::string PatTauAnalyzer::discrByIso_
private

Definition at line 35 of file PatTauAnalyzer.cc.

Referenced by analyze(), and PatTauAnalyzer().

◆ discrByLeadTrack_

std::string PatTauAnalyzer::discrByLeadTrack_
private

Definition at line 34 of file PatTauAnalyzer.cc.

Referenced by analyze(), and PatTauAnalyzer().

◆ discrByTaNC_

std::string PatTauAnalyzer::discrByTaNC_
private

Definition at line 36 of file PatTauAnalyzer.cc.

Referenced by analyze(), and PatTauAnalyzer().

◆ hGenTauEnergy_

TH1* PatTauAnalyzer::hGenTauEnergy_
private

Definition at line 39 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hGenTauEta_

TH1* PatTauAnalyzer::hGenTauEta_
private

Definition at line 41 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hGenTauPhi_

TH1* PatTauAnalyzer::hGenTauPhi_
private

Definition at line 42 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hGenTauPt_

TH1* PatTauAnalyzer::hGenTauPt_
private

Definition at line 40 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hNumTauJets_

TH1* PatTauAnalyzer::hNumTauJets_
private

Definition at line 50 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauDiscrAgainstElectrons_

TH1* PatTauAnalyzer::hTauDiscrAgainstElectrons_
private

Definition at line 59 of file PatTauAnalyzer.cc.

Referenced by beginJob().

◆ hTauDiscrAgainstMuons_

TH1* PatTauAnalyzer::hTauDiscrAgainstMuons_
private

Definition at line 60 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauDiscrByIso_

TH1* PatTauAnalyzer::hTauDiscrByIso_
private

Definition at line 57 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauDiscrByTaNC_

TH1* PatTauAnalyzer::hTauDiscrByTaNC_
private

Definition at line 58 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetEnergy_

TH1* PatTauAnalyzer::hTauJetEnergy_
private

Definition at line 45 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetEnergyIsoPassed_

TH1* PatTauAnalyzer::hTauJetEnergyIsoPassed_
private

Definition at line 62 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetEnergyTaNCpassed_

TH1* PatTauAnalyzer::hTauJetEnergyTaNCpassed_
private

Definition at line 67 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetEta_

TH1* PatTauAnalyzer::hTauJetEta_
private

Definition at line 47 of file PatTauAnalyzer.cc.

◆ hTauJetEtaIsoPassed_

TH1* PatTauAnalyzer::hTauJetEtaIsoPassed_
private

Definition at line 64 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetEtaTaNCpassed_

TH1* PatTauAnalyzer::hTauJetEtaTaNCpassed_
private

Definition at line 69 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetPhi_

TH1* PatTauAnalyzer::hTauJetPhi_
private

Definition at line 48 of file PatTauAnalyzer.cc.

◆ hTauJetPhiIsoPassed_

TH1* PatTauAnalyzer::hTauJetPhiIsoPassed_
private

Definition at line 65 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetPhiTaNCpassed_

TH1* PatTauAnalyzer::hTauJetPhiTaNCpassed_
private

Definition at line 70 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetPt_

TH1* PatTauAnalyzer::hTauJetPt_
private

Definition at line 46 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetPtIsoPassed_

TH1* PatTauAnalyzer::hTauJetPtIsoPassed_
private

Definition at line 63 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauJetPtTaNCpassed_

TH1* PatTauAnalyzer::hTauJetPtTaNCpassed_
private

Definition at line 68 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauLeadTrackPt_

TH1* PatTauAnalyzer::hTauLeadTrackPt_
private

Definition at line 52 of file PatTauAnalyzer.cc.

Referenced by beginJob().

◆ hTauNumIsoConeTracks_

TH1* PatTauAnalyzer::hTauNumIsoConeTracks_
private

Definition at line 55 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ hTauNumSigConeTracks_

TH1* PatTauAnalyzer::hTauNumSigConeTracks_
private

Definition at line 54 of file PatTauAnalyzer.cc.

Referenced by analyze(), and beginJob().

◆ requireGenTauMatch_

bool PatTauAnalyzer::requireGenTauMatch_
private

Definition at line 32 of file PatTauAnalyzer.cc.

Referenced by analyze(), and PatTauAnalyzer().

◆ src_

edm::InputTag PatTauAnalyzer::src_
private

Definition at line 29 of file PatTauAnalyzer.cc.

Referenced by PatTauAnalyzer().

◆ srcToken_

edm::EDGetTokenT<pat::TauCollection> PatTauAnalyzer::srcToken_
private

Definition at line 30 of file PatTauAnalyzer.cc.

Referenced by analyze(), and PatTauAnalyzer().

PatTauAnalyzer::hTauLeadTrackPt_
TH1 * hTauLeadTrackPt_
Definition: PatTauAnalyzer.cc:52
hemisphereProducer_cfi.patTaus
patTaus
Definition: hemisphereProducer_cfi.py:8
PatTauAnalyzer::hGenTauEnergy_
TH1 * hGenTauEnergy_
Definition: PatTauAnalyzer.cc:39
PatTauAnalyzer::hTauJetEnergy_
TH1 * hTauJetEnergy_
Definition: PatTauAnalyzer.cc:45
PatTauAnalyzer::hTauNumSigConeTracks_
TH1 * hTauNumSigConeTracks_
Definition: PatTauAnalyzer.cc:54
reco::GenParticle
Definition: GenParticle.h:21
PatTauAnalyzer::hGenTauEta_
TH1 * hGenTauEta_
Definition: PatTauAnalyzer.cc:41
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
edm::Handle
Definition: AssociativeIterator.h:50
PatTauAnalyzer::hTauDiscrByIso_
TH1 * hTauDiscrByIso_
Definition: PatTauAnalyzer.cc:57
PatTauAnalyzer::hNumTauJets_
TH1 * hNumTauJets_
Definition: PatTauAnalyzer.cc:50
PatTauAnalyzer::hGenTauPhi_
TH1 * hGenTauPhi_
Definition: PatTauAnalyzer.cc:42
PatTauAnalyzer::hTauJetPhiIsoPassed_
TH1 * hTauJetPhiIsoPassed_
Definition: PatTauAnalyzer.cc:65
PatTauAnalyzer::hTauDiscrByTaNC_
TH1 * hTauDiscrByTaNC_
Definition: PatTauAnalyzer.cc:58
PatTauAnalyzer::src_
edm::InputTag src_
Definition: PatTauAnalyzer.cc:29
PatTauAnalyzer::discrByTaNC_
std::string discrByTaNC_
Definition: PatTauAnalyzer.cc:36
PatTauAnalyzer::hTauJetEnergyIsoPassed_
TH1 * hTauJetEnergyIsoPassed_
Definition: PatTauAnalyzer.cc:62
getGenTau
const reco::GenParticle * getGenTau(const pat::Tau &patTau)
Definition: PatTauAnalyzer.cc:73
PatTauAnalyzer::hTauJetEtaTaNCpassed_
TH1 * hTauJetEtaTaNCpassed_
Definition: PatTauAnalyzer.cc:69
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
PatTauAnalyzer::hTauJetPhiTaNCpassed_
TH1 * hTauJetPhiTaNCpassed_
Definition: PatTauAnalyzer.cc:70
PatTauAnalyzer::hTauNumIsoConeTracks_
TH1 * hTauNumIsoConeTracks_
Definition: PatTauAnalyzer.cc:55
PatTauAnalyzer::srcToken_
edm::EDGetTokenT< pat::TauCollection > srcToken_
Definition: PatTauAnalyzer.cc:30
PatTauAnalyzer::requireGenTauMatch_
bool requireGenTauMatch_
Definition: PatTauAnalyzer.cc:32
PatTauAnalyzer::discrByIso_
std::string discrByIso_
Definition: PatTauAnalyzer.cc:35
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
edm::Service< TFileService >
PatTauAnalyzer::hTauJetEnergyTaNCpassed_
TH1 * hTauJetEnergyTaNCpassed_
Definition: PatTauAnalyzer.cc:67
TFileService::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PatTauAnalyzer::hGenTauPt_
TH1 * hGenTauPt_
Definition: PatTauAnalyzer.cc:40
looper.cfg
cfg
Definition: looper.py:296
PatTauAnalyzer::hTauDiscrAgainstElectrons_
TH1 * hTauDiscrAgainstElectrons_
Definition: PatTauAnalyzer.cc:59
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
PatTauAnalyzer::hTauJetPtIsoPassed_
TH1 * hTauJetPtIsoPassed_
Definition: PatTauAnalyzer.cc:63
PatTauAnalyzer::hTauJetPt_
TH1 * hTauJetPt_
Definition: PatTauAnalyzer.cc:46
PatTauAnalyzer::hTauDiscrAgainstMuons_
TH1 * hTauDiscrAgainstMuons_
Definition: PatTauAnalyzer.cc:60
reco::LeafCandidate::energy
double energy() const final
energy
Definition: LeafCandidate.h:125
Pi
const double Pi
Definition: CosmicMuonParameters.h:18
PatTauAnalyzer::hTauJetEtaIsoPassed_
TH1 * hTauJetEtaIsoPassed_
Definition: PatTauAnalyzer.cc:64
edm::InputTag
Definition: InputTag.h:15
PatTauAnalyzer::hTauJetPtTaNCpassed_
TH1 * hTauJetPtTaNCpassed_
Definition: PatTauAnalyzer.cc:68
PatTauAnalyzer::discrByLeadTrack_
std::string discrByLeadTrack_
Definition: PatTauAnalyzer.cc:34