CMS 3D CMS Logo

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  // Variables specific to dynamic strip reconstruction
48  bendCorrMass_(tau.bendCorrMass()),
49  signalConeSize_(tau.signalConeSize())
50 {
51  if ( tau.jetRef().isAvailable() && tau.jetRef().isNonnull() ) { // CV: add protection to ease transition to new CMSSW 4_2_x RecoTauTags
52  reco::Jet::EtaPhiMoments etaPhiStatistics = tau.jetRef()->etaPhiStatistics();
53  etaetaMoment_ = etaPhiStatistics.etaEtaMoment;
54  phiphiMoment_ = etaPhiStatistics.phiPhiMoment;
55  etaphiMoment_ = etaPhiStatistics.etaPhiMoment;
56  }
57 }
bool isAvailable() const
Definition: Ref.h:576
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:252
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)