CMS 3D CMS Logo

Typedefs | Functions
reco::tau::disc Namespace Reference

Typedefs

typedef const PFTauTau
 
typedef std::vector< double > VDouble
 

Functions

double AbsEta (Tau tau)
 
double AbsJetEta (Tau tau)
 
VDouble ChargedOutlierAngle (Tau)
 
VDouble ChargedOutlierPt (Tau)
 
double ChargedOutlierSumPt (Tau)
 
VDouble Dalitz (Tau)
 
VDouble Dalitz2 (Tau tau)
 
double DecayMode (Tau tau)
 
double EMFraction (Tau tau)
 
double Eta (Tau tau)
 
VDouble FilteredObjectPt (Tau)
 
VDouble GammaOccupancy (Tau)
 
VDouble GammaPt (Tau)
 
double ImpactParameterSignificance (Tau tau)
 
VDouble InvariantMass (Tau)
 
double InvariantMassOfSignal (Tau tau)
 
VDouble InvariantMassOfSignalWithFiltered (Tau)
 
double IsolationChargedAveragePtFraction (Tau tau)
 
double IsolationChargedPtFraction (Tau tau)
 
double IsolationChargedSumHard (Tau tau)
 
double IsolationChargedSumHardRelative (Tau tau)
 
double IsolationChargedSumSoft (Tau tau)
 
double IsolationChargedSumSoftRelative (Tau tau)
 
double IsolationECALPtFraction (Tau tau)
 
double IsolationECALSumHard (Tau tau)
 
double IsolationECALSumHardRelative (Tau tau)
 
double IsolationECALSumSoft (Tau tau)
 
double IsolationECALSumSoftRelative (Tau tau)
 
double IsolationNeutralHadronPtFraction (Tau tau)
 
double JetEta (Tau tau)
 
double JetPt (Tau tau)
 
double JetTauDR (Tau tau)
 
double JetWidth (Tau tau)
 
CandidatePtr mainTrack (const PFTau &tau)
 
CandidatePtr mainTrack (Tau tau)
 
double MainTrackAngle (Tau)
 
double MainTrackEta (Tau)
 
double MainTrackPt (Tau)
 
double MainTrackPtFraction (Tau tau)
 
double Mass (Tau tau)
 
VDouble NeutralOutlierAngle (Tau)
 
VDouble NeutralOutlierPt (Tau)
 
double NeutralOutlierSumPt (Tau)
 
std::vector< CandidatePtrnotMainTrack (Tau tau)
 
double OpeningAngle3D (Tau tau)
 
double OpeningDeltaR (Tau tau)
 
VDouble OutlierAngle (Tau)
 
VDouble OutlierMass (Tau)
 
double OutlierN (Tau)
 
double OutlierNCharged (Tau)
 
VDouble OutlierPt (Tau)
 
double OutlierSumPt (Tau)
 
VDouble PiZeroAngle (Tau)
 
VDouble PiZeroEta (Tau)
 
VDouble PiZeroPt (Tau)
 
double Pt (Tau tau)
 
double ScaledEtaJetCollimation (Tau tau)
 
double ScaledOpeningDeltaR (Tau tau)
 
double ScaledPhiJetCollimation (Tau tau)
 
double SignalPtFraction (Tau tau)
 
VDouble TrackAngle (Tau)
 
VDouble TrackEta (Tau)
 
VDouble TrackPt (Tau)
 

Typedef Documentation

typedef const PFTau& reco::tau::disc::Tau

Definition at line 24 of file RecoTauDiscriminantFunctions.h.

typedef std::vector<double> reco::tau::disc::VDouble

Definition at line 25 of file RecoTauDiscriminantFunctions.h.

Function Documentation

double reco::tau::disc::AbsEta ( Tau  tau)

Definition at line 63 of file RecoTauDiscriminantFunctions.cc.

References funct::abs(), and reco::LeafCandidate::eta().

63 { return std::abs(tau.eta()); }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double reco::tau::disc::AbsJetEta ( Tau  tau)

Definition at line 80 of file RecoTauDiscriminantFunctions.cc.

References funct::abs(), and reco::PFTau::jetRef().

80  {
81  return std::abs(tau.jetRef()->eta());
82 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
VDouble reco::tau::disc::ChargedOutlierAngle ( Tau  tau)

Definition at line 356 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationChargedHadrCands(), and reco::LeafCandidate::p4().

356  {
357  return extract(tau.isolationChargedHadrCands(), DeltaRToAxis(tau.p4()));
358 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::ChargedOutlierPt ( Tau  tau)

Definition at line 352 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationChargedHadrCands(), and reco::Candidate::pt().

352  {
353  return extract(tau.isolationChargedHadrCands(), std::mem_fn(&Candidate::pt));
354 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::ChargedOutlierSumPt ( Tau  tau)

Definition at line 309 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFChargedHadrCandsPtSum().

309  {
310  return tau.isolationPFChargedHadrCandsPtSum();
311 }
VDouble reco::tau::disc::Dalitz ( Tau  tau)

Definition at line 369 of file RecoTauDiscriminantFunctions.cc.

References Dalitz2().

369  {
370  return Dalitz2(tau);
371 }
VDouble reco::tau::disc::Dalitz2 ( Tau  tau)

Definition at line 177 of file RecoTauDiscriminantFunctions.cc.

References mainTrack(), notMainTrack(), convertSQLitetoXML_cfg::output, p4, and reco::PFTau::signalPiZeroCandidates().

Referenced by Dalitz().

177  {
178  CandidatePtr theMainTrack = mainTrack(tau);
179  std::vector<CandidatePtr> otherSignalTracks = notMainTrack(tau);
180  const std::vector<RecoTauPiZero> &pizeros = tau.signalPiZeroCandidates();
181  VDouble output;
182  output.reserve(otherSignalTracks.size() + pizeros.size());
183  // Add combos with tracks
184  for(auto const& trk : otherSignalTracks) {
185  reco::Candidate::LorentzVector p4 = theMainTrack->p4() + trk->p4();
186  output.push_back(p4.mass());
187  }
188  // Add combos with pizeros
189  for(auto const& pizero : pizeros) {
190  reco::Candidate::LorentzVector p4 = theMainTrack->p4() + pizero.p4();
191  output.push_back(p4.mass());
192  }
193  return output;
194 }
std::vector< double > VDouble
double p4[4]
Definition: TauolaWrapper.h:92
std::vector< CandidatePtr > notMainTrack(Tau tau)
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
CandidatePtr mainTrack(Tau tau)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
double reco::tau::disc::DecayMode ( Tau  tau)

Definition at line 65 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::decayMode().

65 { return tau.decayMode(); }
double reco::tau::disc::EMFraction ( Tau  tau)

Definition at line 253 of file RecoTauDiscriminantFunctions.cc.

References CustomPhysics_cfi::gamma, LogDebug, reco::LeafCandidate::pt(), mps_fire::result, reco::PFTau::signalGammaCands(), and metsig::tau.

253  {
254  //double result = tau.emFraction();
256  for(auto const& gamma : tau.signalGammaCands()) {
257  gammaP4 += gamma->p4();
258  }
259  double result = gammaP4.pt()/tau.pt();
260 
261  if (result > 0.99) {
262  LogDebug("TauDiscFunctions") << "EM fraction = " << result
263  << tau ;
264  LogDebug("TauDiscFunctions") << "charged" ;
265  for(auto const& cand : tau.signalChargedHadrCands()) {
266  LogDebug("TauDiscFunctions") << " pt: " << cand->pt() << " pdgId: " << cand->pdgId() << " key: " << cand.key() ;
267  }
268  LogDebug("TauDiscFunctions") << "gammas" ;
269  for(auto const& cand : tau.signalGammaCands()) {
270  LogDebug("TauDiscFunctions") << " pt: " << cand->pt() << " pdgId: " << cand->pdgId() << " key: " << cand.key() ;
271  }
272  }
273  return result;
274 }
#define LogDebug(id)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
double reco::tau::disc::Eta ( Tau  tau)

Definition at line 62 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::eta().

Referenced by SiStripGainFromData::algoBeginJob(), ResolutionAnalyzer::analyze(), HTMonitor::analyze(), BPHMonitor::analyze(), IsolatedGenParticles::analyze(), EmbeddingHepMCFilter::apply_cuts(), FFTJetProducer::beginJob(), JetMETHLTOfflineSource::bookHistograms(), AlphaTVarProducer::CalcAlphaT(), AlphaTVarProducer::CalcHT(), AlphaTVarProducer::CalcMHT(), PythiaHepMCFilterGammaGamma::filter(), SiStripGainsPCLHarvester::gainQualityMonitor(), DTMuonMillepede::getbqcMatrix(), DTMuonMillepede::getCqcMatrix(), CovarianceMatrix::getEtaDependentScaleFactor(), EcalClusterLocalContCorrection::getValue(), EcalBasicClusterLocalContCorrection::getValue(), EcalClusterCrackCorrection::getValue(), HLTElectronEtFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), EGammaMvaEleEstimator::isInitialized(), likelihood(), egammaTools::localEcalClusterCoordsEB(), egammaTools::localEcalClusterCoordsEE(), PixelModule::operator<(), l1t::TriggerMenuParser::parseCalo(), l1t::TriggerMenuParser::parseCaloCorr(), l1t::TriggerMenuParser::parseEnergySum(), l1t::TriggerMenuParser::parseEnergySumCorr(), l1t::TriggerMenuParser::parseMuon(), l1t::TriggerMenuParser::parseMuonCorr(), PFTauElecRejectionBenchmark::process(), ZeeCalibration::produce(), SiStripGainFromCalibTree::qualityMonitor(), FastL1BitInfo::setEta(), JetMETHLTOfflineSource::PathInfo::setHistos(), and TEcnaHistos::TowerCrystalNumbering().

62 { return tau.eta(); }
VDouble reco::tau::disc::FilteredObjectPt ( Tau  tau)

Definition at line 375 of file RecoTauDiscriminantFunctions.cc.

375 { return VDouble(); }
std::vector< double > VDouble
VDouble reco::tau::disc::GammaOccupancy ( Tau  tau)

Definition at line 376 of file RecoTauDiscriminantFunctions.cc.

376 { return VDouble(); }
std::vector< double > VDouble
VDouble reco::tau::disc::GammaPt ( Tau  tau)

Definition at line 377 of file RecoTauDiscriminantFunctions.cc.

377 { return VDouble(); }
std::vector< double > VDouble
double reco::tau::disc::ImpactParameterSignificance ( Tau  tau)

Definition at line 276 of file RecoTauDiscriminantFunctions.cc.

References funct::abs(), and reco::PFTau::leadPFChargedHadrCandsignedSipt().

276  {
277  return std::abs(tau.leadPFChargedHadrCandsignedSipt());
278 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
VDouble reco::tau::disc::InvariantMass ( Tau  tau)
double reco::tau::disc::InvariantMassOfSignal ( Tau  tau)

Definition at line 66 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::mass().

66 { return tau.mass(); }
VDouble reco::tau::disc::InvariantMassOfSignalWithFiltered ( Tau  tau)

Definition at line 378 of file RecoTauDiscriminantFunctions.cc.

378 { return VDouble(); }
std::vector< double > VDouble
double reco::tau::disc::IsolationChargedAveragePtFraction ( Tau  tau)

Definition at line 166 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationChargedHadrCands(), reco::PFTau::isolationPFChargedHadrCandsPtSum(), and reco::PFTau::leadChargedHadrCand().

166  {
167  size_t nIsoCharged = tau.isolationChargedHadrCands().size();
168  double averagePt = (nIsoCharged) ?
169  tau.isolationPFChargedHadrCandsPtSum()/nIsoCharged : 0;
170  return averagePt/tau.leadChargedHadrCand()->pt();
171 }
double reco::tau::disc::IsolationChargedPtFraction ( Tau  tau)

Definition at line 98 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFChargedHadrCandsPtSum(), and reco::PFTau::jetRef().

98  {
99  return tau.isolationPFChargedHadrCandsPtSum()/tau.jetRef()->pt();
100 }
double reco::tau::disc::IsolationChargedSumHard ( Tau  tau)

Definition at line 196 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationChargedHadrCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::Candidate::pt().

Referenced by IsolationChargedSumHardRelative().

196  {
197  VDouble isocands = extract(tau.isolationChargedHadrCands(), std::mem_fn(&Candidate::pt));
198  double output = 0.0;
199  for(double pt : isocands) {
200  if (pt > 1.0)
201  output += pt;
202  }
203  return output;
204 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationChargedSumHardRelative ( Tau  tau)

Definition at line 217 of file RecoTauDiscriminantFunctions.cc.

References IsolationChargedSumHard(), and reco::PFTau::jetRef().

217  {
218  return IsolationChargedSumHard(tau)/tau.jetRef()->pt();
219 }
double IsolationChargedSumHard(Tau tau)
double reco::tau::disc::IsolationChargedSumSoft ( Tau  tau)

Definition at line 206 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationChargedHadrCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::Candidate::pt().

Referenced by IsolationChargedSumSoftRelative().

206  {
207  VDouble isocands = extract(tau.isolationChargedHadrCands(), std::mem_fn(&Candidate::pt));
208  double output = 0.0;
209  for(double pt : isocands) {
210  if (pt < 1.0)
211  output += pt;
212  }
213  return output;
214 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationChargedSumSoftRelative ( Tau  tau)

Definition at line 221 of file RecoTauDiscriminantFunctions.cc.

References IsolationChargedSumSoft(), and reco::PFTau::jetRef().

221  {
222  return IsolationChargedSumSoft(tau)/tau.jetRef()->pt();
223 }
double IsolationChargedSumSoft(Tau tau)
double reco::tau::disc::IsolationECALPtFraction ( Tau  tau)

Definition at line 102 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFGammaCandsEtSum(), and reco::PFTau::jetRef().

102  {
103  return tau.isolationPFGammaCandsEtSum()/tau.jetRef()->pt();
104 }
double reco::tau::disc::IsolationECALSumHard ( Tau  tau)

Definition at line 225 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationGammaCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::Candidate::pt().

Referenced by IsolationECALSumHardRelative().

225  {
226  VDouble isocands = extract(tau.isolationGammaCands(), std::mem_fn(&Candidate::pt));
227  double output = 0.0;
228  for(double pt : isocands) {
229  if (pt > 1.5)
230  output += pt;
231  }
232  return output;
233 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationECALSumHardRelative ( Tau  tau)

Definition at line 246 of file RecoTauDiscriminantFunctions.cc.

References IsolationECALSumHard(), and reco::PFTau::jetRef().

246  {
247  return IsolationECALSumHard(tau)/tau.jetRef()->pt();
248 }
double IsolationECALSumHard(Tau tau)
double reco::tau::disc::IsolationECALSumSoft ( Tau  tau)

Definition at line 235 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationGammaCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::Candidate::pt().

Referenced by IsolationECALSumSoftRelative().

235  {
236  VDouble isocands = extract(tau.isolationGammaCands(), std::mem_fn(&Candidate::pt));
237  double output = 0.0;
238  for(double pt : isocands) {
239  if (pt < 1.5)
240  output += pt;
241  }
242  return output;
243 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationECALSumSoftRelative ( Tau  tau)

Definition at line 249 of file RecoTauDiscriminantFunctions.cc.

References IsolationECALSumSoft(), and reco::PFTau::jetRef().

249  {
250  return IsolationECALSumSoft(tau)/tau.jetRef()->pt();
251 }
double IsolationECALSumSoft(Tau tau)
double reco::tau::disc::IsolationNeutralHadronPtFraction ( Tau  tau)

Definition at line 106 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationNeutrHadrCands(), and reco::PFTau::jetRef().

106  {
107  double sum = 0.0;
108  for(auto const& cand : tau.isolationNeutrHadrCands()) {
109  sum += cand->pt();
110  }
111  return sum/tau.jetRef()->pt();
112 }
double reco::tau::disc::JetEta ( Tau  tau)

Definition at line 76 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::jetRef().

Referenced by JME::JetParameters::set(), JME::JetParameters::setJetEta(), and JME::throwException().

76  {
77  return tau.jetRef()->eta();
78 }
double reco::tau::disc::JetPt ( Tau  tau)
double reco::tau::disc::JetTauDR ( Tau  tau)

Definition at line 90 of file RecoTauDiscriminantFunctions.cc.

References reco::deltaR(), reco::PFTau::jetRef(), and reco::LeafCandidate::p4().

90  {
91  return reco::deltaR(tau.p4(), tau.jetRef()->p4());
92 }
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:28
double reco::tau::disc::JetWidth ( Tau  tau)

Definition at line 84 of file RecoTauDiscriminantFunctions.cc.

References funct::abs(), reco::PFTau::jetRef(), and mathSSE::sqrt().

84  {
85  return std::sqrt(
86  std::abs(tau.jetRef()->etaetaMoment()) +
87  std::abs(tau.jetRef()->phiphiMoment()));
88 }
T sqrt(T t)
Definition: SSEVec.h:18
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CandidatePtr reco::tau::disc::mainTrack ( const PFTau tau)

For three prong events, take the track that has charge opposite to the composite charge.

Referenced by Dalitz2(), MainTrackAngle(), MainTrackEta(), MainTrackPt(), MainTrackPtFraction(), and notMainTrack().

CandidatePtr reco::tau::disc::mainTrack ( Tau  tau)

Definition at line 39 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::charge(), reco::PFTau::leadChargedHadrCand(), and reco::PFTau::signalChargedHadrCands().

39  {
40  if (tau.signalChargedHadrCands().size() == 3) {
41  for (size_t itrk = 0; itrk < 3; ++itrk) {
42  if (tau.signalChargedHadrCands()[itrk]->charge() * tau.charge() < 0)
43  return tau.signalChargedHadrCands()[itrk];
44  }
45  }
46  return tau.leadChargedHadrCand();
47 }
double reco::tau::disc::MainTrackAngle ( Tau  tau)

Definition at line 299 of file RecoTauDiscriminantFunctions.cc.

References reco::deltaR(), mainTrack(), and reco::LeafCandidate::p4().

299  {
300  CandidatePtr trk = mainTrack(tau);
301  return (!trk) ? 0.0 : deltaR(trk->p4(), tau.p4());
302 }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
CandidatePtr mainTrack(Tau tau)
double reco::tau::disc::MainTrackEta ( Tau  tau)

Definition at line 294 of file RecoTauDiscriminantFunctions.cc.

References mainTrack().

294  {
295  CandidatePtr trk = mainTrack(tau);
296  return (!trk) ? 0.0 : trk->eta();
297 }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
CandidatePtr mainTrack(Tau tau)
double reco::tau::disc::MainTrackPt ( Tau  tau)

Definition at line 289 of file RecoTauDiscriminantFunctions.cc.

References mainTrack().

289  {
290  CandidatePtr trk = mainTrack(tau);
291  return (!trk) ? 0.0 : trk->pt();
292 }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
CandidatePtr mainTrack(Tau tau)
double reco::tau::disc::MainTrackPtFraction ( Tau  tau)

Definition at line 173 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::jetRef(), and mainTrack().

173  {
174  return mainTrack(tau)->pt()/tau.jetRef()->pt();
175 }
CandidatePtr mainTrack(Tau tau)
double reco::tau::disc::Mass ( Tau  tau)

Definition at line 64 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::mass().

64 { return tau.mass(); }
VDouble reco::tau::disc::NeutralOutlierAngle ( Tau  tau)

Definition at line 364 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationGammaCands(), and reco::LeafCandidate::p4().

364  {
365  return extract(tau.isolationGammaCands(), DeltaRToAxis(tau.p4()));
366 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::NeutralOutlierPt ( Tau  tau)

Definition at line 360 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationGammaCands(), and reco::Candidate::pt().

360  {
361  return extract(tau.isolationGammaCands(), std::mem_fn(&Candidate::pt));
362 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::NeutralOutlierSumPt ( Tau  tau)

Definition at line 313 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFGammaCandsEtSum().

313  {
314  return tau.isolationPFGammaCandsEtSum();
315 }
std::vector<CandidatePtr> reco::tau::disc::notMainTrack ( Tau  tau)

Definition at line 49 of file RecoTauDiscriminantFunctions.cc.

References mainTrack(), convertSQLitetoXML_cfg::output, and reco::PFTau::signalChargedHadrCands().

Referenced by Dalitz2(), TrackAngle(), TrackEta(), and TrackPt().

50 {
51  const CandidatePtr& mainTrackPtr = mainTrack(tau);
52  std::vector<CandidatePtr> output;
53  output.reserve(tau.signalChargedHadrCands().size() - 1);
54  for(auto const& ptr : tau.signalChargedHadrCands()) {
55  if (ptr != mainTrackPtr)
56  output.push_back(ptr);
57  }
58  return output;
59 }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
CandidatePtr mainTrack(Tau tau)
double reco::tau::disc::OpeningAngle3D ( Tau  tau)

Definition at line 131 of file RecoTauDiscriminantFunctions.cc.

References angle(), reco::LeafCandidate::p4(), and reco::PFTau::signalCands().

131  {
132  double sumE = 0;
133  double weightedAngle = 0;
134  for(auto const& cand : tau.signalCands()) {
135  double candE = cand->energy();
136  double candAngle = angle(cand->p4(), tau.p4());
137  sumE += candE;
138  weightedAngle += candAngle*candE;
139  }
140  return (sumE > 0) ? weightedAngle/sumE : 0.0;
141 }
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
double reco::tau::disc::OpeningDeltaR ( Tau  tau)

Definition at line 119 of file RecoTauDiscriminantFunctions.cc.

References reco::deltaR(), reco::LeafCandidate::p4(), reco::PFTau::signalCands(), and objects.METAnalyzer::sumEt.

Referenced by reco::tau::RecoTauDiscriminantInvariantWidth::operator()().

119  {
120  double sumEt = 0;
121  double weightedDeltaR = 0;
122  for(auto const& cand : tau.signalCands()) {
123  double candEt = cand->et();
124  double candDeltaR = reco::deltaR(cand->p4(), tau.p4());
125  sumEt += candEt;
126  weightedDeltaR += candDeltaR*candEt;
127  }
128  return (sumEt > 0) ? weightedDeltaR/sumEt : 0.0;
129 }
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:28
VDouble reco::tau::disc::OutlierAngle ( Tau  tau)

Definition at line 348 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationCands(), and reco::LeafCandidate::p4().

348  {
349  return extract(tau.isolationCands(), DeltaRToAxis(tau.p4()));
350 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::OutlierMass ( Tau  tau)

Definition at line 380 of file RecoTauDiscriminantFunctions.cc.

380 { return VDouble(); }
std::vector< double > VDouble
double reco::tau::disc::OutlierN ( Tau  tau)

Definition at line 280 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationChargedHadrCands(), and reco::PFTau::isolationGammaCands().

280  {
281  return tau.isolationChargedHadrCands().size() +
282  tau.isolationGammaCands().size();
283 }
double reco::tau::disc::OutlierNCharged ( Tau  tau)

Definition at line 285 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationChargedHadrCands().

285  {
286  return tau.isolationChargedHadrCands().size();
287 }
VDouble reco::tau::disc::OutlierPt ( Tau  tau)

Definition at line 344 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationCands(), and reco::Candidate::pt().

344  {
345  return extract(tau.isolationCands(), std::mem_fn(&Candidate::pt));
346 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::OutlierSumPt ( Tau  tau)

Definition at line 304 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFChargedHadrCandsPtSum(), and reco::PFTau::isolationPFGammaCandsEtSum().

304  {
305  return tau.isolationPFChargedHadrCandsPtSum() +
306  tau.isolationPFGammaCandsEtSum();
307 }
VDouble reco::tau::disc::PiZeroAngle ( Tau  tau)

Definition at line 339 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::LeafCandidate::p4(), and reco::PFTau::signalPiZeroCandidates().

339  {
340  return extract(tau.signalPiZeroCandidates(), DeltaRToAxis(tau.p4()));
341 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::PiZeroEta ( Tau  tau)

Definition at line 335 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::eta(), extract(), and reco::PFTau::signalPiZeroCandidates().

335  {
336  return extract(tau.signalPiZeroCandidates(), std::mem_fn(&RecoTauPiZero::eta));
337 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::PiZeroPt ( Tau  tau)

Definition at line 331 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::LeafCandidate::pt(), and reco::PFTau::signalPiZeroCandidates().

331  {
332  return extract(tau.signalPiZeroCandidates(), std::mem_fn(&RecoTauPiZero::pt));
333 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::Pt ( Tau  tau)

Definition at line 61 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::pt().

Referenced by AlphaT::AlphaT(), CaloTowerAnalyzer::analyze(), HCALRecHitAnalyzer::analyze(), DijetMass< Jet >::analyze(), ResolutionAnalyzer::analyze(), BPHMonitor::analyze(), HIPTwoBodyDecayAnalyzer::analyzeTrackCollection(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), JetMETHLTOfflineSource::bookHistograms(), HMesonGammaDQM::fillHistograms(), ZtoMMEventSelector::filter(), ZtoEEEventSelector::filter(), PythiaHepMCFilterGammaGamma::filter(), ChargedHadronTrackResolutionFilter::filter(), MuonBadTrackFilter::filter(), GlobalTrackerMuonAlignment::gradientGlobal(), GlobalTrackerMuonAlignment::gradientLocal(), HLTElectronEtFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), EGammaMvaEleEstimator::isInitialized(), alpha_T::operator()(), CSCTFPtMethods::Pt2Stn(), CSCTFPtMethods::Pt2Stn2010(), CSCTFPtMethods::Pt2Stn2011(), CSCTFPtMethods::Pt2Stn2012(), CSCTFPtMethods::Pt2Stn2012_DT(), CSCTFPtMethods::Pt3Stn(), CSCTFPtMethods::Pt3Stn2010(), CSCTFPtMethods::Pt3Stn2011(), CSCTFPtMethods::Pt3Stn2012(), CSCTFPtMethods::Pt3Stn2012_DT(), G4muDarkBremsstrahlungModel::SampleSecondaries(), MuScleFit::selectMuons(), JetMETHLTOfflineSource::PathInfo::setHistos(), and ECALRecHitAnalyzer::WriteECALRecHits().

61 { return tau.pt(); }
double reco::tau::disc::ScaledEtaJetCollimation ( Tau  tau)

Definition at line 114 of file RecoTauDiscriminantFunctions.cc.

References funct::abs(), reco::PFTau::jetRef(), and mathSSE::sqrt().

114  {
115  return tau.jetRef()->pt()*sqrt(std::abs(
116  tau.jetRef()->etaetaMoment()));
117 }
T sqrt(T t)
Definition: SSEVec.h:18
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double reco::tau::disc::ScaledOpeningDeltaR ( Tau  tau)

Definition at line 143 of file RecoTauDiscriminantFunctions.cc.

References reco::deltaR(), mps_fire::i, SiStripPI::max, p4, reco::LeafCandidate::pt(), and reco::PFTau::signalCands().

143  {
144  double max = 0.0;
145  const std::vector<CandidatePtr>& cands = tau.signalCands();
146  for (size_t i = 0; i < cands.size()-1; ++i) {
147  for (size_t j = i+1; j < cands.size(); ++j) {
148  double deltaRVal = deltaR(cands[i]->p4(), cands[j]->p4());
149  if (deltaRVal > max) {
150  max = deltaRVal;
151  }
152  }
153  }
154  // Correct for resolution
155  if ( max < 0.05 )
156  max = 0.05;
157  // Make invariant of PT
158  return max*tau.pt();;
159 }
double p4[4]
Definition: TauolaWrapper.h:92
double reco::tau::disc::ScaledPhiJetCollimation ( Tau  tau)

Definition at line 161 of file RecoTauDiscriminantFunctions.cc.

References funct::abs(), reco::PFTau::jetRef(), and mathSSE::sqrt().

161  {
162  return tau.jetRef()->pt()*sqrt(std::abs(
163  tau.jetRef()->phiphiMoment()));
164 }
T sqrt(T t)
Definition: SSEVec.h:18
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double reco::tau::disc::SignalPtFraction ( Tau  tau)

Definition at line 94 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::jetRef(), and reco::LeafCandidate::pt().

94  {
95  return tau.pt()/tau.jetRef()->pt();
96 }
VDouble reco::tau::disc::TrackAngle ( Tau  tau)

Definition at line 326 of file RecoTauDiscriminantFunctions.cc.

References extract(), notMainTrack(), and reco::LeafCandidate::p4().

Referenced by DTLocalTriggerEfficiencyTest::runClientDiagnostic().

326  {
327  return extract(notMainTrack(tau), DeltaRToAxis(tau.p4()));
328 }
std::vector< CandidatePtr > notMainTrack(Tau tau)
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::TrackEta ( Tau  tau)

Definition at line 322 of file RecoTauDiscriminantFunctions.cc.

References reco::Candidate::eta(), extract(), and notMainTrack().

322  {
323  return extract(notMainTrack(tau), std::mem_fn(&Candidate::eta));
324 }
std::vector< CandidatePtr > notMainTrack(Tau tau)
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::TrackPt ( Tau  tau)

Definition at line 318 of file RecoTauDiscriminantFunctions.cc.

References extract(), notMainTrack(), and reco::Candidate::pt().

318  {
319  return extract(notMainTrack(tau), std::mem_fn(&Candidate::pt));
320 }
std::vector< CandidatePtr > notMainTrack(Tau tau)
int extract(std::vector< int > *output, const std::string &dati)