CMS 3D CMS Logo

PFTau.cc
Go to the documentation of this file.
1 #include <memory>
2 
6 
7 //using namespace std;
8 namespace reco {
9 
15  emFraction_ = NAN;
16  hcalTotOverPLead_ = NAN;
17  hcalMaxOverPLead_ = NAN;
18  hcal3x3OverPLead_ = NAN;
23  caloComp_ = NAN;
24  segComp_ = NAN;
25  muonDecision_ = NAN;
26  decayMode_ = kNull;
27  bendCorrMass_ = 0.;
28  signalConeSize_ = 0.;
29  }
30 
36 
37  emFraction_ = NAN;
38  hcalTotOverPLead_ = NAN;
39  hcalMaxOverPLead_ = NAN;
40  hcal3x3OverPLead_ = NAN;
45 
46  caloComp_ = NAN;
47  segComp_ = NAN;
48  muonDecision_ = NAN;
49  decayMode_ = kNull;
50  bendCorrMass_ = 0.;
51  signalConeSize_ = 0.;
52  }
53 
54  PFTau* PFTau::clone() const { return new PFTau(*this); }
55 
56  // Constituent getters and setters
57  const JetBaseRef& PFTau::jetRef() const { return jetRef_; }
58  void PFTau::setjetRef(const JetBaseRef& x) { jetRef_ = x; }
59 
61 
63 
66  const CandidatePtr& PFTau::leadCand() const { return leadCand_; }
67 
69  void PFTau::setleadNeutralCand(const CandidatePtr& myLead) { leadNeutralCand_ = myLead; }
70  void PFTau::setleadCand(const CandidatePtr& myLead) { leadCand_ = myLead; }
71 
74 
75  const std::vector<CandidatePtr>& PFTau::signalCands() const { return selectedSignalCands_; }
76  void PFTau::setsignalCands(const std::vector<CandidatePtr>& myParts) { selectedSignalCands_ = myParts; }
77  const std::vector<CandidatePtr>& PFTau::signalChargedHadrCands() const { return selectedSignalChargedHadrCands_; }
78  void PFTau::setsignalChargedHadrCands(const std::vector<CandidatePtr>& myParts) {
80  }
81  const std::vector<CandidatePtr>& PFTau::signalNeutrHadrCands() const { return selectedSignalNeutrHadrCands_; }
82  void PFTau::setsignalNeutrHadrCands(const std::vector<CandidatePtr>& myParts) {
84  }
85  const std::vector<CandidatePtr>& PFTau::signalGammaCands() const { return selectedSignalGammaCands_; }
86  void PFTau::setsignalGammaCands(const std::vector<CandidatePtr>& myParts) { selectedSignalGammaCands_ = myParts; }
87 
88  const std::vector<CandidatePtr>& PFTau::isolationCands() const { return selectedIsolationCands_; }
89  void PFTau::setisolationCands(const std::vector<CandidatePtr>& myParts) { selectedIsolationCands_ = myParts; }
90  const std::vector<CandidatePtr>& PFTau::isolationChargedHadrCands() const {
92  }
93  void PFTau::setisolationChargedHadrCands(const std::vector<CandidatePtr>& myParts) {
95  }
96  const std::vector<CandidatePtr>& PFTau::isolationNeutrHadrCands() const { return selectedIsolationNeutrHadrCands_; }
97  void PFTau::setisolationNeutrHadrCands(const std::vector<CandidatePtr>& myParts) {
99  }
100  const std::vector<CandidatePtr>& PFTau::isolationGammaCands() const { return selectedIsolationGammaCands_; }
101  void PFTau::setisolationGammaCands(const std::vector<CandidatePtr>& myParts) {
103  }
104 
105  namespace {
106  template <typename T, typename U>
107  void setCache(const T& iFrom, const edm::AtomicPtrCache<U>& oCache) {
108  if (not oCache.isSet()) {
109  // Fill them from the refs
110  auto temp = std::make_unique<U>();
111  temp->reserve(iFrom.size());
112  for (auto const& ref : iFrom) {
113  temp->push_back(*ref);
114  }
115  oCache.set(std::move(temp));
116  }
117  }
118 
119  template <typename T>
120  T& makeCacheIfNeeded(edm::AtomicPtrCache<T>& oCache) {
121  if (not oCache.isSet()) {
122  oCache.set(std::move(std::make_unique<T>()));
123  }
124  return *oCache;
125  }
126 
127  template <typename T>
128  void copyToCache(T&& iFrom, edm::AtomicPtrCache<T>& oCache) {
129  oCache.reset();
130  oCache.set(std::make_unique<T>(std::move(iFrom)));
131  }
132 
133  std::unique_ptr<reco::PFCandidatePtr> convertToPFPtr(const reco::CandidatePtr& ptr) {
134  if (ptr.isNonnull()) {
135  const reco::PFCandidate* pf_cand = dynamic_cast<const reco::PFCandidate*>(&*ptr);
136  if (pf_cand != nullptr) {
137  return std::make_unique<reco::PFCandidatePtr>(ptr);
138  } else
139  throw cms::Exception("Type Mismatch")
140  << "This PFTau was not made from PFCandidates, but it is being tried to access a PFCandidate.\n";
141  }
142  return std::make_unique<reco::PFCandidatePtr>();
143  }
144 
145  std::unique_ptr<std::vector<reco::PFCandidatePtr> > convertToPFPtrs(const std::vector<reco::CandidatePtr>& cands) {
146  std::unique_ptr<std::vector<reco::PFCandidatePtr> > newSignalPFCands{new std::vector<reco::PFCandidatePtr>{}};
147  bool isPF = false;
148  for (auto& cand : cands) {
149  // Check for first Candidate if it is a PFCandidate; if yes, skip for the rest
150  if (!isPF) {
151  const reco::PFCandidate* pf_cand = dynamic_cast<const reco::PFCandidate*>(&*cand);
152  if (pf_cand != nullptr) {
153  isPF = true;
154  newSignalPFCands->reserve(cands.size());
155  } else
156  throw cms::Exception("Type Mismatch")
157  << "This PFTau was not made from PFCandidates, but it is being tried to access PFCandidates.\n";
158  }
159  const auto& newPtr = edm::Ptr<reco::PFCandidate>(cand);
160  newSignalPFCands->push_back(newPtr);
161  }
162  return newSignalPFCands;
163  }
164  } // namespace
165 
167  if (!leadPFChargedHadrCand_.isSet())
168  leadPFChargedHadrCand_.set(convertToPFPtr(leadChargedHadrCand_));
169  return *leadPFChargedHadrCand_;
170  }
171 
173  if (!leadPFNeutralCand_.isSet())
174  leadPFNeutralCand_.set(convertToPFPtr(leadNeutralCand_));
175  return *leadPFNeutralCand_;
176  }
177 
179  if (!leadPFCand_.isSet())
180  leadPFCand_.set(convertToPFPtr(leadCand_));
181  return *leadPFCand_;
182  }
183 
184  const std::vector<reco::PFCandidatePtr>& PFTau::signalPFCands() const {
185  if (!selectedTransientSignalPFCands_.isSet()) {
187  }
189  }
190 
191  const std::vector<reco::PFCandidatePtr>& PFTau::signalPFChargedHadrCands() const {
194  }
196  }
197 
198  const std::vector<reco::PFCandidatePtr>& PFTau::signalPFNeutrHadrCands() const {
201  }
203  }
204 
205  const std::vector<reco::PFCandidatePtr>& PFTau::signalPFGammaCands() const {
208  }
210  }
211 
212  const std::vector<reco::PFCandidatePtr>& PFTau::isolationPFCands() const {
213  if (!selectedTransientIsolationPFCands_.isSet()) {
215  }
217  }
218 
219  const std::vector<reco::PFCandidatePtr>& PFTau::isolationPFChargedHadrCands() const {
222  }
224  }
225 
226  const std::vector<reco::PFCandidatePtr>& PFTau::isolationPFNeutrHadrCands() const {
229  }
231  }
232 
233  const std::vector<reco::PFCandidatePtr>& PFTau::isolationPFGammaCands() const {
236  }
238  }
239 
240  // PiZero and decay mode information
241  const std::vector<RecoTauPiZero>& PFTau::signalPiZeroCandidates() const {
242  // Check if the signal pi zeros are already filled
244  return *signalPiZeroCandidates_;
245  }
246 
247  std::vector<RecoTauPiZero>& PFTau::signalPiZeroCandidatesRestricted() {
248  // Check if the signal pi zeros are already filled
249  return makeCacheIfNeeded(signalPiZeroCandidates_);
250  }
251 
252  void PFTau::setsignalPiZeroCandidates(std::vector<RecoTauPiZero> cands) {
253  copyToCache(std::move(cands), signalPiZeroCandidates_);
254  }
255 
258  }
259 
260  const std::vector<RecoTauPiZero>& PFTau::isolationPiZeroCandidates() const {
261  // Check if the signal pi zeros are already filled
264  }
265 
266  std::vector<RecoTauPiZero>& PFTau::isolationPiZeroCandidatesRestricted() {
267  // Check if the signal pi zeros are already filled
268  return makeCacheIfNeeded(isolationPiZeroCandidates_);
269  }
270 
273  }
274 
275  void PFTau::setisolationPiZeroCandidates(std::vector<RecoTauPiZero> cands) {
276  copyToCache(std::move(cands), signalPiZeroCandidates_);
277  }
278 
279  // Tau Charged Hadron information
283  } else {
284  return PFRecoTauChargedHadronRef();
285  }
286  }
287 
288  const std::vector<PFRecoTauChargedHadron>& PFTau::signalTauChargedHadronCandidates() const {
289  // Check if the signal tau charged hadrons are already filled
292  }
293 
294  std::vector<PFRecoTauChargedHadron>& PFTau::signalTauChargedHadronCandidatesRestricted() {
295  // Check if the signal tau charged hadrons are already filled
296  return makeCacheIfNeeded(signalTauChargedHadronCandidates_);
297  }
298 
299  void PFTau::setSignalTauChargedHadronCandidates(std::vector<PFRecoTauChargedHadron> cands) {
301  }
302 
305  }
306 
307  const std::vector<PFRecoTauChargedHadron>& PFTau::isolationTauChargedHadronCandidates() const {
308  // Check if the isolation tau charged hadrons are already filled
311  }
312 
313  std::vector<PFRecoTauChargedHadron>& PFTau::isolationTauChargedHadronCandidatesRestricted() {
314  // Check if the isolation tau charged hadrons are already filled
315  return makeCacheIfNeeded(isolationTauChargedHadronCandidates_);
316  }
317 
318  void PFTau::setIsolationTauChargedHadronCandidates(std::vector<PFRecoTauChargedHadron> cands) {
320  }
321 
324  }
325 
327 
329 
330  // Setting information about the isolation region
333 
336 
339 
340  // Electron variables
341  float PFTau::emFraction() const { return emFraction_; }
342  float PFTau::hcalTotOverPLead() const { return hcalTotOverPLead_; }
343  float PFTau::hcalMaxOverPLead() const { return hcalMaxOverPLead_; }
344  float PFTau::hcal3x3OverPLead() const { return hcal3x3OverPLead_; }
350 
351  void PFTau::setemFraction(const float& x) { emFraction_ = x; }
352  void PFTau::sethcalTotOverPLead(const float& x) { hcalTotOverPLead_ = x; }
353  void PFTau::sethcalMaxOverPLead(const float& x) { hcalMaxOverPLead_ = x; }
354  void PFTau::sethcal3x3OverPLead(const float& x) { hcal3x3OverPLead_ = x; }
360 
361  // Muon variables
362  bool PFTau::hasMuonReference() const { // check if muon ref exists
364  return false;
365  else if (leadChargedHadrCand_.isNonnull()) {
366  const reco::PFCandidate* pf_cand = dynamic_cast<const reco::PFCandidate*>(&*leadChargedHadrCand_);
367  if (pf_cand) {
368  reco::MuonRef muonRef = pf_cand->muonRef();
369  if (muonRef.isNull())
370  return false;
371  else if (muonRef.isNonnull())
372  return true;
373  }
374  }
375  return false;
376  }
377 
378  float PFTau::caloComp() const { return caloComp_; }
379  float PFTau::segComp() const { return segComp_; }
380  bool PFTau::muonDecision() const { return muonDecision_; }
381  void PFTau::setCaloComp(const float& x) { caloComp_ = x; }
382  void PFTau::setSegComp(const float& x) { segComp_ = x; }
383  void PFTau::setMuonDecision(const bool& x) { muonDecision_ = x; }
384 
386  if (i != 0)
387  return CandidatePtr();
388  return jetRef().castTo<CandidatePtr>();
389  }
390 
391  bool PFTau::overlap(const Candidate& theCand) const {
392  const RecoCandidate* theRecoCand = dynamic_cast<const RecoCandidate*>(&theCand);
393  return (theRecoCand != nullptr && (checkOverlap(track(), theRecoCand->track())));
394  }
395 
396  void PFTau::dump(std::ostream& out) const {
397  if (!out)
398  return;
399 
400  if (pfTauTagInfoRef().isNonnull()) {
401  out << "Its TauTagInfo constituents :" << std::endl;
402  out << "# Tracks " << pfTauTagInfoRef()->Tracks().size() << std::endl;
403  out << "# PF charged hadr. cand's " << pfTauTagInfoRef()->PFChargedHadrCands().size() << std::endl;
404  out << "# PF neutral hadr. cand's " << pfTauTagInfoRef()->PFNeutrHadrCands().size() << std::endl;
405  out << "# PF gamma cand's " << pfTauTagInfoRef()->PFGammaCands().size() << std::endl;
406  }
407  out << "in detail :" << std::endl;
408 
409  out << "Pt of the PFTau " << pt() << std::endl;
410  const CandidatePtr& theLeadCand = leadChargedHadrCand();
411  if (!theLeadCand) {
412  out << "No Lead Cand " << std::endl;
413  } else {
414  out << "Lead Cand PDG Id " << (*theLeadCand).pdgId() << std::endl;
415  out << "Lead Cand Pt " << (*theLeadCand).pt() << std::endl;
416  out << "Lead Cand Charge " << (*theLeadCand).charge() << std::endl;
417  out << "Inner point position (x,y,z) of the PFTau (" << vx() << "," << vy() << "," << vz() << ")" << std::endl;
418  out << "Charge of the PFTau " << charge() << std::endl;
419  out << "Et of the highest Et HCAL PFCluster " << maximumHCALPFClusterEt() << std::endl;
420  out << "Number of SignalChargedHadrCands = " << signalChargedHadrCands().size() << std::endl;
421  out << "Number of SignalGammaCands = " << signalGammaCands().size() << std::endl;
422  out << "Number of IsolationChargedHadrCands = " << isolationChargedHadrCands().size() << std::endl;
423  out << "Number of IsolationGammaCands = " << isolationGammaCands().size() << std::endl;
424  out << "Sum of Pt of charged hadr. PFCandidates in isolation annulus around Lead PF = "
425  << isolationPFChargedHadrCandsPtSum() << std::endl;
426  out << "Sum of Et of gamma PFCandidates in other isolation annulus around Lead PF = "
427  << isolationPFGammaCandsEtSum() << std::endl;
428  }
429  // return out;
430  }
431 
432  std::ostream& operator<<(std::ostream& out, const reco::PFTau& tau) {
433  if (!out)
434  return out;
435 
436  out << std::setprecision(3) << "PFTau "
437  << " charge: " << tau.charge() << " "
438  << " pt:" << tau.pt() << " "
439  << " eta:" << tau.eta() << " "
440  << " phi:" << tau.phi() << " "
441  << " mass:" << tau.mass() << " "
442  << " dm: " << tau.decayMode() << " " << tau.signalCands().size() << "," << tau.signalChargedHadrCands().size()
443  << "," << tau.signalGammaCands().size() << "," << tau.signalPiZeroCandidates().size() << ","
444  << tau.signalNeutrHadrCands().size() << " "
445 
446  << tau.isolationCands().size() << "," << tau.isolationChargedHadrCands().size() << ","
447  << tau.isolationGammaCands().size() << "," << tau.isolationPiZeroCandidates().size() << ","
448  << tau.isolationNeutrHadrCands().size();
449 
450  return out;
451  }
452 
453 } // namespace reco
reco::PFTau::setbremsRecoveryEOverPLead
void setbremsRecoveryEOverPLead(const float &)
Definition: PFTau.cc:356
reco::PFTau::PFTauTagInfoRef_
PFTauTagInfoRef PFTauTagInfoRef_
Definition: PFTau.h:264
reco::PFTau::hcalTotOverPLead
float hcalTotOverPLead() const
Definition: PFTau.cc:342
reco::PFTau::caloComp
float caloComp() const
Definition: PFTau.cc:378
reco::PFTau::sethcalTotOverPLead
void sethcalTotOverPLead(const float &)
Definition: PFTau.cc:352
reco::PFTau::setisolationCands
void setisolationCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:89
reco::PFTau::signalPFCands
const std::vector< reco::PFCandidatePtr > & signalPFCands() const
Definition: PFTau.cc:184
reco::PFTau::signalPFGammaCands
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands() const
Definition: PFTau.cc:205
reco::PFTau::kNull
Definition: PFTau.h:39
reco::PFTau::leadCand
const CandidatePtr & leadCand() const
Definition: PFTau.cc:66
reco::PFTau::selectedSignalNeutrHadrCands_
std::vector< reco::CandidatePtr > selectedSignalNeutrHadrCands_
Definition: PFTau.h:273
reco::PFTau::muonDecision_
bool muonDecision_
Definition: PFTau.h:234
mps_fire.i
i
Definition: mps_fire.py:428
reco::PFTau::setSignalTauChargedHadronCandidates
void setSignalTauChargedHadronCandidates(std::vector< PFRecoTauChargedHadron >)
Definition: PFTau.cc:299
reco::PFTau::signalCands
const std::vector< reco::CandidatePtr > & signalCands() const
Candidates in signal region.
Definition: PFTau.cc:75
reco::PFTau::isolationPFNeutrHadrCands
const std::vector< reco::PFCandidatePtr > & isolationPFNeutrHadrCands() const
Definition: PFTau.cc:226
reco::PFTau::leadPFNeutralCand
const PFCandidatePtr leadPFNeutralCand() const
Definition: PFTau.cc:172
MessageLogger.h
reco::PFTau::selectedIsolationNeutrHadrCands_
std::vector< reco::CandidatePtr > selectedIsolationNeutrHadrCands_
Definition: PFTau.h:279
reco::PFTau::setIsolationTauChargedHadronCandidatesRefs
void setIsolationTauChargedHadronCandidatesRefs(PFRecoTauChargedHadronRefVector)
Definition: PFTau.cc:322
reco::PFTau::hasMuonReference
bool hasMuonReference() const
Definition: PFTau.cc:362
reco::PFTau::selectedTransientIsolationPFGammaCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientIsolationPFGammaCands_
Definition: PFTau.h:295
reco::PFTau::setIsolationPiZeroCandidatesRefs
void setIsolationPiZeroCandidatesRefs(RecoTauPiZeroRefVector)
Definition: PFTau.cc:271
reco::PFRecoTauChargedHadronRef
edm::Ref< PFRecoTauChargedHadronCollection > PFRecoTauChargedHadronRef
presistent reference to a PFRecoTauChargedHadron
Definition: PFRecoTauChargedHadronFwd.h:16
reco::PFTau::clone
PFTau * clone() const override
returns a clone of the Candidate object
Definition: PFTau.cc:54
reco::PFTau::setCaloComp
void setCaloComp(const float &)
Definition: PFTau.cc:381
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
reco::PFTau::setIsolationTauChargedHadronCandidates
void setIsolationTauChargedHadronCandidates(std::vector< PFRecoTauChargedHadron >)
Definition: PFTau.cc:318
reco::PFTau::maximumHCALPFClusterEt_
float maximumHCALPFClusterEt_
Definition: PFTau.h:242
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition: Ref.h:235
reco::PFTau::selectedTransientSignalPFNeutrHadrCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientSignalPFNeutrHadrCands_
Definition: PFTau.h:289
reco::PFTau::isolationPiZeroCandidatesRestricted
std::vector< RecoTauPiZero > & isolationPiZeroCandidatesRestricted()
Definition: PFTau.cc:266
reco::PFTau::selectedTransientSignalPFGammaCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientSignalPFGammaCands_
Definition: PFTau.h:290
reco::PFTau::pfTauTagInfoRef
const PFTauTagInfoRef & pfTauTagInfoRef() const
Definition: PFTau.cc:60
reco::PFTau::leadChargedHadrCand_
reco::CandidatePtr leadChargedHadrCand_
Definition: PFTau.h:265
reco::PFTau::setelectronPreIDTrack
void setelectronPreIDTrack(const reco::TrackRef &)
Definition: PFTau.cc:357
reco::PFTau::isolationTauChargedHadronCandidates_
edm::AtomicPtrCache< std::vector< reco::PFRecoTauChargedHadron > > isolationTauChargedHadronCandidates_
Definition: PFTau.h:309
reco::PFTau::setelectronPreIDDecision
void setelectronPreIDDecision(const bool &)
Definition: PFTau.cc:359
reco::PFTau::dump
void dump(std::ostream &out=std::cout) const
prints information on this PFTau
Definition: PFTau.cc:396
reco::PFTau::signalPFNeutrHadrCands
const std::vector< reco::PFCandidatePtr > & signalPFNeutrHadrCands() const
Definition: PFTau.cc:198
reco::PFTau::segComp
float segComp() const
Definition: PFTau.cc:379
reco::PFTau::isolationCands
const std::vector< reco::CandidatePtr > & isolationCands() const
Candidates in isolation region.
Definition: PFTau.cc:88
edm::AtomicPtrCache::reset
void reset()
unsets the value and deletes the memory
Definition: AtomicPtrCache.h:137
reco::PFTau::leadPFCand
const PFCandidatePtr leadPFCand() const
Definition: PFTau.cc:178
reco::PFTau::selectedIsolationGammaCands_
std::vector< reco::CandidatePtr > selectedIsolationGammaCands_
Definition: PFTau.h:280
reco::LeafCandidate::vz
double vz() const override
z coordinate of vertex position
Definition: LeafCandidate.h:171
reco::PFTau::setelectronPreIDOutput
void setelectronPreIDOutput(const float &)
Definition: PFTau.cc:358
reco::Candidate::Charge
int Charge
electric charge type
Definition: Candidate.h:34
reco::PFTau::signalChargedHadrCands
const std::vector< reco::CandidatePtr > & signalChargedHadrCands() const
Charged hadrons in signal region.
Definition: PFTau.cc:77
reco::PFTau::maximumHCALPFClusterEt
float maximumHCALPFClusterEt() const
Et of the highest Et HCAL PFCluster.
Definition: PFTau.cc:337
reco::LeafCandidate::vx
double vx() const override
x coordinate of vertex position
Definition: LeafCandidate.h:167
reco::PFTau
Definition: PFTau.h:36
reco::PFTau::signalTauChargedHadronCandidatesRestricted
std::vector< PFRecoTauChargedHadron > & signalTauChargedHadronCandidatesRestricted()
Definition: PFTau.cc:294
reco::PFTau::sethcalMaxOverPLead
void sethcalMaxOverPLead(const float &)
Definition: PFTau.cc:353
reco::PFTau::signalPFChargedHadrCands
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands() const
Definition: PFTau.cc:191
reco::PFTau::ecalStripSumEOverPLead_
float ecalStripSumEOverPLead_
Definition: PFTau.h:249
edm::RefVector< RecoTauPiZeroCollection >
reco::PFTau::isolationTauChargedHadronCandidatesRestricted
std::vector< PFRecoTauChargedHadron > & isolationTauChargedHadronCandidatesRestricted()
Definition: PFTau.cc:313
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::PFTau::hcal3x3OverPLead_
float hcal3x3OverPLead_
Definition: PFTau.h:248
reco::PFTau::hcal3x3OverPLead
float hcal3x3OverPLead() const
Definition: PFTau.cc:344
reco::PFTau::hcalMaxOverPLead
float hcalMaxOverPLead() const
Definition: PFTau.cc:343
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
reco::PFTau::electronPreIDDecision
bool electronPreIDDecision() const
Definition: PFTau.cc:349
reco::PFTau::emFraction
float emFraction() const
Definition: PFTau.cc:341
reco::PFTau::leadPFChargedHadrCandsignedSipt
float leadPFChargedHadrCandsignedSipt() const
Definition: PFTau.cc:72
reco::PFTau::isolationPFGammaCandsEtSum_
float isolationPFGammaCandsEtSum_
Definition: PFTau.h:241
reco::PFTau::signalTauChargedHadronCandidates
const std::vector< PFRecoTauChargedHadron > & signalTauChargedHadronCandidates() const
Retrieve the association of signal region PF candidates into candidate PFRecoTauChargedHadrons.
Definition: PFTau.cc:288
reco::RecoCandidate::track
virtual reco::TrackRef track() const
reference to a Track
Definition: RecoCandidate.cc:13
edm::Ref< PFTauTagInfoCollection >
edm::AtomicPtrCache::isSet
bool isSet() const
Definition: AtomicPtrCache.h:122
reco::PFTau::leadPFChargedHadrCandsignedSipt_
float leadPFChargedHadrCandsignedSipt_
Definition: PFTau.h:238
reco::PFTau::setisolationPFChargedHadrCandsPtSum
void setisolationPFChargedHadrCandsPtSum(const float &)
Definition: PFTau.cc:332
edm::AtomicPtrCache::set
bool set(std::unique_ptr< T > iNewValue) const
Definition: AtomicPtrCache.h:127
reco::PFTau::selectedSignalCands_
std::vector< reco::CandidatePtr > selectedSignalCands_
Definition: PFTau.h:271
reco::PFTau::setsignalChargedHadrCands
void setsignalChargedHadrCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:78
reco::PFTau::isolationPiZeroCandidates
const std::vector< RecoTauPiZero > & isolationPiZeroCandidates() const
Retrieve the association of isolation region gamma candidates into candidate PiZeros.
Definition: PFTau.cc:260
reco::PFTau::isolationPFChargedHadrCandsPtSum_
float isolationPFChargedHadrCandsPtSum_
Definition: PFTau.h:240
reco::PFCandidate::muonRef
reco::MuonRef muonRef() const
Definition: PFCandidate.cc:421
reco::PFTau::signalPiZeroCandidates
const std::vector< RecoTauPiZero > & signalPiZeroCandidates() const
Retrieve the association of signal region gamma candidates into candidate PiZeros.
Definition: PFTau.cc:241
edm::RefVector::empty
bool empty() const
Is the RefVector empty.
Definition: RefVector.h:99
reco::PFTau::setsignalGammaCands
void setsignalGammaCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:86
reco::PFTau::electronPreIDTrack
reco::TrackRef electronPreIDTrack() const
Definition: PFTau.cc:347
reco::BaseTau
Definition: BaseTau.h:18
reco::PFTau::signalPiZeroCandidatesRestricted
std::vector< RecoTauPiZero > & signalPiZeroCandidatesRestricted()
Definition: PFTau.cc:247
reco::PFTau::leadPFNeutralCand_
edm::AtomicPtrCache< reco::PFCandidatePtr > leadPFNeutralCand_
Definition: PFTau.h:284
reco::PFTau::jetRef_
reco::JetBaseRef jetRef_
Definition: PFTau.h:263
reco::PFTau::setisolationNeutrHadrCands
void setisolationNeutrHadrCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:97
reco::PFTau::signalPiZeroCandidatesRefs_
RecoTauPiZeroRefVector signalPiZeroCandidatesRefs_
Definition: PFTau.h:297
reco::PFTau::setisolationPFGammaCandsEtSum
void setisolationPFGammaCandsEtSum(const float &)
Definition: PFTau.cc:335
reco::PFTau::setisolationGammaCands
void setisolationGammaCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:101
reco::PFTau::hcalMaxOverPLead_
float hcalMaxOverPLead_
Definition: PFTau.h:247
reco::PFTau::selectedIsolationChargedHadrCands_
std::vector< reco::CandidatePtr > selectedIsolationChargedHadrCands_
Definition: PFTau.h:278
reco::PFTau::isolationPiZeroCandidatesRefs_
RecoTauPiZeroRefVector isolationPiZeroCandidatesRefs_
Definition: PFTau.h:298
reco::PFTau::leadChargedHadrCand
const CandidatePtr & leadChargedHadrCand() const
Definition: PFTau.cc:64
reco::PFTau::selectedTransientSignalPFChargedHadrCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientSignalPFChargedHadrCands_
Definition: PFTau.h:288
reco::PFTau::setleadCand
void setleadCand(const CandidatePtr &)
Definition: PFTau.cc:70
reco::PFTau::setleadNeutralCand
void setleadNeutralCand(const CandidatePtr &)
Definition: PFTau.cc:69
reco::PFTau::sethcal3x3OverPLead
void sethcal3x3OverPLead(const float &)
Definition: PFTau.cc:354
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15205
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
reco::PFTau::PFTau
PFTau()
Definition: PFTau.cc:10
reco::PFTau::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: PFTau.cc:391
edm::AtomicPtrCache
Definition: AtomicPtrCache.h:38
reco::PFTau::leadPFCand_
edm::AtomicPtrCache< reco::PFCandidatePtr > leadPFCand_
Definition: PFTau.h:285
reco::PFTau::emFraction_
float emFraction_
Definition: PFTau.h:245
reco::PFTau::selectedTransientSignalPFCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientSignalPFCands_
Definition: PFTau.h:287
reco::PFTau::muonDecision
bool muonDecision() const
Definition: PFTau.cc:380
reco::PFTau::selectedIsolationCands_
std::vector< reco::CandidatePtr > selectedIsolationCands_
Definition: PFTau.h:277
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
reco::PFTau::setecalStripSumEOverPLead
void setecalStripSumEOverPLead(const float &)
Definition: PFTau.cc:355
reco::PFTau::setSignalPiZeroCandidatesRefs
void setSignalPiZeroCandidatesRefs(RecoTauPiZeroRefVector)
Definition: PFTau.cc:256
reco::PFTau::setDecayMode
void setDecayMode(const hadronicDecayMode &)
Definition: PFTau.cc:328
reco::PFTau::selectedTransientIsolationPFCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientIsolationPFCands_
Definition: PFTau.h:292
cand
Definition: decayParser.h:32
reco::PFTau::setleadChargedHadrCand
void setleadChargedHadrCand(const CandidatePtr &)
Definition: PFTau.cc:68
RefToPtr.h
reco::PFTau::bendCorrMass_
float bendCorrMass_
Definition: PFTau.h:259
reco::PFTau::isolationPFChargedHadrCandsPtSum
float isolationPFChargedHadrCandsPtSum() const
Definition: PFTau.cc:331
reco::PFTau::signalTauChargedHadronCandidates_
edm::AtomicPtrCache< std::vector< reco::PFRecoTauChargedHadron > > signalTauChargedHadronCandidates_
Definition: PFTau.h:308
reco::PFTau::isolationPiZeroCandidates_
edm::AtomicPtrCache< std::vector< reco::RecoTauPiZero > > isolationPiZeroCandidates_
Definition: PFTau.h:305
p4
double p4[4]
Definition: TauolaWrapper.h:92
reco::PFTau::signalPiZeroCandidates_
edm::AtomicPtrCache< std::vector< reco::RecoTauPiZero > > signalPiZeroCandidates_
Definition: PFTau.h:304
reco::PFTau::setsignalNeutrHadrCands
void setsignalNeutrHadrCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:82
reco::operator<<
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:66
symbols.dm
dm
Definition: symbols.py:66
reco::PFTau::leadNeutralCand_
reco::CandidatePtr leadNeutralCand_
Definition: PFTau.h:266
reco::LeafCandidate::charge
int charge() const final
electric charge
Definition: LeafCandidate.h:106
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
reco::PFTau::setSegComp
void setSegComp(const float &)
Definition: PFTau.cc:382
edm::RefToBase::castTo
REF castTo() const
Definition: RefToBase.h:257
reco::PFTau::leadPFChargedHadrCand_
edm::AtomicPtrCache< reco::PFCandidatePtr > leadPFChargedHadrCand_
Definition: PFTau.h:283
reco::PFTau::setpfTauTagInfoRef
void setpfTauTagInfoRef(const PFTauTagInfoRef)
Definition: PFTau.cc:62
reco::RecoCandidate
Definition: RecoCandidate.h:20
reco::PFTau::selectedSignalGammaCands_
std::vector< reco::CandidatePtr > selectedSignalGammaCands_
Definition: PFTau.h:274
reco::PFTau::electronPreIDTrack_
reco::TrackRef electronPreIDTrack_
Definition: PFTau.h:268
edm::Ptr< Candidate >
reco::Candidate
Definition: Candidate.h:27
reco::PFTau::leadCand_
reco::CandidatePtr leadCand_
Definition: PFTau.h:267
reco::PFTau::setemFraction
void setemFraction(const float &)
Definition: PFTau.cc:351
reco::PFTau::signalNeutrHadrCands
const std::vector< reco::CandidatePtr > & signalNeutrHadrCands() const
Neutral hadrons in signal region.
Definition: PFTau.cc:81
reco::PFTau::electronPreIDOutput_
float electronPreIDOutput_
Definition: PFTau.h:251
reco::PFTau::isolationTauChargedHadronCandidatesRefs_
PFRecoTauChargedHadronRefVector isolationTauChargedHadronCandidatesRefs_
Definition: PFTau.h:301
reco::PFTau::leadPFChargedHadrCand
const PFCandidatePtr leadPFChargedHadrCand() const
Getters for different PFCandidates for PFTaus made from PFCandidates.
Definition: PFTau.cc:166
reco::PFTau::setMuonDecision
void setMuonDecision(const bool &)
Definition: PFTau.cc:383
eostools.move
def move(src, dest)
Definition: eostools.py:511
reco::PFTau::leadTauChargedHadronCandidate
PFRecoTauChargedHadronRef leadTauChargedHadronCandidate() const
Definition: PFTau.cc:280
reco::PFTau::setsignalCands
void setsignalCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:76
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:18
reco::PFTau::selectedTransientIsolationPFChargedHadrCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientIsolationPFChargedHadrCands_
Definition: PFTau.h:293
reco::PFTau::hcalTotOverPLead_
float hcalTotOverPLead_
Definition: PFTau.h:246
reco::PFTau::electronPreIDOutput
float electronPreIDOutput() const
Definition: PFTau.cc:348
reco::PFTau::bremsRecoveryEOverPLead
float bremsRecoveryEOverPLead() const
Definition: PFTau.cc:346
reco::PFTau::selectedTransientIsolationPFNeutrHadrCands_
edm::AtomicPtrCache< std::vector< reco::PFCandidatePtr > > selectedTransientIsolationPFNeutrHadrCands_
Definition: PFTau.h:294
reco::PFTau::setjetRef
void setjetRef(const JetBaseRef &)
Definition: PFTau.cc:58
T
long double T
Definition: Basic3DVectorLD.h:48
reco::PFTau::setsignalPiZeroCandidates
void setsignalPiZeroCandidates(std::vector< RecoTauPiZero >)
Definition: PFTau.cc:252
Exception
Definition: hltDiff.cc:246
reco::PFTau::caloComp_
float caloComp_
Definition: PFTau.h:254
reco::PFTau::isolationNeutrHadrCands
const std::vector< reco::CandidatePtr > & isolationNeutrHadrCands() const
Definition: PFTau.cc:96
reco::PFTau::isolationPFCands
const std::vector< reco::PFCandidatePtr > & isolationPFCands() const
Definition: PFTau.cc:212
reco::PFTau::hadronicDecayMode
hadronicDecayMode
Definition: PFTau.h:38
PFTau.h
reco::PFTau::leadNeutralCand
const CandidatePtr & leadNeutralCand() const
Definition: PFTau.cc:65
edm::Ptr::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ptr.h:146
reco::PFTau::selectedSignalChargedHadrCands_
std::vector< reco::CandidatePtr > selectedSignalChargedHadrCands_
Definition: PFTau.h:272
edm::RefToBase< Jet >
reco::PFTau::signalConeSize_
float signalConeSize_
Definition: PFTau.h:261
reco::PFTau::isolationPFGammaCandsEtSum
float isolationPFGammaCandsEtSum() const
Definition: PFTau.cc:334
reco::PFTau::electronPreIDDecision_
bool electronPreIDDecision_
Definition: PFTau.h:235
reco::PFTau::decayMode
hadronicDecayMode decayMode() const
Definition: PFTau.cc:326
reco::PFTau::bremsRecoveryEOverPLead_
float bremsRecoveryEOverPLead_
Definition: PFTau.h:250
reco::PFTau::setmaximumHCALPFClusterEt
void setmaximumHCALPFClusterEt(const float &)
Definition: PFTau.cc:338
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
reco::PFTau::setisolationPiZeroCandidates
void setisolationPiZeroCandidates(std::vector< RecoTauPiZero >)
Definition: PFTau.cc:275
reco::PFTau::isolationPFChargedHadrCands
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands() const
Definition: PFTau.cc:219
reco::CandidatePtr
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
reco::PFTau::sourceCandidatePtr
CandidatePtr sourceCandidatePtr(size_type i) const override
Definition: PFTau.cc:385
reco::PFTau::setisolationChargedHadrCands
void setisolationChargedHadrCands(const std::vector< reco::CandidatePtr > &)
Definition: PFTau.cc:93
reco::PFTau::decayMode_
hadronicDecayMode decayMode_
Definition: PFTau.h:257
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::PFTau::ecalStripSumEOverPLead
float ecalStripSumEOverPLead() const
Definition: PFTau.cc:345
reco::PFTau::setSignalTauChargedHadronCandidatesRefs
void setSignalTauChargedHadronCandidatesRefs(PFRecoTauChargedHadronRefVector)
Definition: PFTau.cc:303
reco::PFTau::isolationTauChargedHadronCandidates
const std::vector< PFRecoTauChargedHadron > & isolationTauChargedHadronCandidates() const
Retrieve the association of isolation region PF candidates into candidate PFRecoTauChargedHadron.
Definition: PFTau.cc:307
reco::PFTau::isolationChargedHadrCands
const std::vector< reco::CandidatePtr > & isolationChargedHadrCands() const
Charged candidates in isolation region.
Definition: PFTau.cc:90
reco::PFTau::setleadPFChargedHadrCandsignedSipt
void setleadPFChargedHadrCandsignedSipt(const float &)
Definition: PFTau.cc:73
reco::PFTau::isolationGammaCands
const std::vector< reco::CandidatePtr > & isolationGammaCands() const
Gamma candidates in isolation region.
Definition: PFTau.cc:100
edm::Ptr::isNull
bool isNull() const
Checks for null.
Definition: Ptr.h:142
reco::PFTau::segComp_
float segComp_
Definition: PFTau.h:255
reco::Candidate::size_type
size_t size_type
Definition: Candidate.h:29
reco::LeafCandidate::vy
double vy() const override
y coordinate of vertex position
Definition: LeafCandidate.h:169
reco::PFTau::isolationPFGammaCands
const std::vector< reco::PFCandidatePtr > & isolationPFGammaCands() const
Definition: PFTau.cc:233
reco::PFTau::jetRef
const JetBaseRef & jetRef() const
Definition: PFTau.cc:57
reco::PFTau::signalGammaCands
const std::vector< reco::CandidatePtr > & signalGammaCands() const
Gamma candidates in signal region.
Definition: PFTau.cc:85
reco::PFTau::signalTauChargedHadronCandidatesRefs_
PFRecoTauChargedHadronRefVector signalTauChargedHadronCandidatesRefs_
Definition: PFTau.h:300