CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TauPFSpecific.cc
Go to the documentation of this file.
2 
4 
6  // reference to PFJet from which PFTau was made
7  pfJetRef_(tau.jetRef()),
8  // Leading track/charged candidate
9  leadPFChargedHadrCand_(tau.leadPFChargedHadrCand()),
10  leadPFChargedHadrCandsignedSipt_(tau.leadPFChargedHadrCandsignedSipt()),
11  // Leading neutral candidate
12  leadPFNeutralCand_(tau.leadPFNeutralCand()),
13  // Leading charged or neutral candidate
14  leadPFCand_(tau.leadPFCand()),
15  // Signal cone
16  selectedSignalPFCands_(tau.signalPFCands()),
17  selectedSignalPFChargedHadrCands_(tau.signalPFChargedHadrCands()),
18  selectedSignalPFNeutrHadrCands_(tau.signalPFNeutrHadrCands()),
19  selectedSignalPFGammaCands_(tau.signalPFGammaCands()),
20  signalTauChargedHadronCandidates_(tau.signalTauChargedHadronCandidates()),
21  signalPiZeroCandidates_(tau.signalPiZeroCandidates()),
22  // Isolation cone
23  selectedIsolationPFCands_(tau.isolationPFCands()),
24  selectedIsolationPFChargedHadrCands_(tau.isolationPFChargedHadrCands()),
25  selectedIsolationPFNeutrHadrCands_(tau.isolationPFNeutrHadrCands()),
26  selectedIsolationPFGammaCands_(tau.isolationPFGammaCands()),
27  isolationTauChargedHadronCandidates_(tau.isolationTauChargedHadronCandidates()),
28  isolationPiZeroCandidates_(tau.isolationPiZeroCandidates()),
29  isolationPFChargedHadrCandsPtSum_(tau.isolationPFChargedHadrCandsPtSum()),
30  isolationPFGammaCandsEtSum_(tau.isolationPFGammaCandsEtSum()),
31  // Other useful variables
32  maximumHCALPFClusterEt_(tau.maximumHCALPFClusterEt()),
33  emFraction_(tau.emFraction()),
34  hcalTotOverPLead_(tau.hcalTotOverPLead()),
35  hcalMaxOverPLead_(tau.hcalMaxOverPLead()),
36  hcal3x3OverPLead_(tau.hcal3x3OverPLead()),
37  ecalStripSumEOverPLead_(tau.ecalStripSumEOverPLead()),
38  bremsRecoveryEOverPLead_(tau.bremsRecoveryEOverPLead()),
39  // Electron rejection variables
40  electronPreIDTrack_(tau.electronPreIDTrack()),
41  electronPreIDOutput_(tau.electronPreIDOutput()),
42  electronPreIDDecision_(tau.electronPreIDDecision()),
43  // Muon rejection variables
44  caloComp_(tau.caloComp()),
45  segComp_(tau.segComp()),
46  muonDecision_(tau.muonDecision())
47 {
48  if ( tau.jetRef().isAvailable() && tau.jetRef().isNonnull() ) { // CV: add protection to ease transition to new CMSSW 4_2_x RecoTauTags
49  reco::Jet::EtaPhiMoments etaPhiStatistics = tau.jetRef()->etaPhiStatistics();
50  etaetaMoment_ = etaPhiStatistics.etaEtaMoment;
51  phiphiMoment_ = etaPhiStatistics.phiPhiMoment;
52  etaphiMoment_ = etaPhiStatistics.etaPhiMoment;
53  }
54 }
bool isAvailable() const
Definition: Ref.h:614
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
const PFJetRef & jetRef() const
Definition: PFTau.cc:58
record to store eta-phi first and second moments
Definition: Jet.h:26
InputIterator leadPFCand(InputIterator begin, InputIterator end)