CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
PFCandidatePtr mainTrack (const PFTau &tau)
 
PFCandidatePtr 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< PFCandidatePtrnotMainTrack (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 73 of file RecoTauDiscriminantFunctions.cc.

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

73 { 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 90 of file RecoTauDiscriminantFunctions.cc.

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

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

Definition at line 371 of file RecoTauDiscriminantFunctions.cc.

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

371  {
372  return extract(tau.isolationPFChargedHadrCands(), DeltaRToAxis(tau.p4()));
373 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::ChargedOutlierPt ( Tau  tau)

Definition at line 366 of file RecoTauDiscriminantFunctions.cc.

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

366  {
367  return extract(tau.isolationPFChargedHadrCands(),
368  std::mem_fun_ref(&PFCandidate::pt));
369 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::ChargedOutlierSumPt ( Tau  tau)

Definition at line 323 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFChargedHadrCandsPtSum().

323  {
324  return tau.isolationPFChargedHadrCandsPtSum();
325 }
VDouble reco::tau::disc::Dalitz ( Tau  tau)

Definition at line 385 of file RecoTauDiscriminantFunctions.cc.

References Dalitz2().

385  {
386  return Dalitz2(tau);
387 }
VDouble reco::tau::disc::Dalitz2 ( Tau  tau)

Definition at line 187 of file RecoTauDiscriminantFunctions.cc.

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

Referenced by Dalitz().

187  {
188  PFCandidatePtr theMainTrack = mainTrack(tau);
189  std::vector<PFCandidatePtr> otherSignalTracks = notMainTrack(tau);
190  const std::vector<RecoTauPiZero> &pizeros = tau.signalPiZeroCandidates();
191  VDouble output;
192  output.reserve(otherSignalTracks.size() + pizeros.size());
193  // Add combos with tracks
194  BOOST_FOREACH(PFCandidatePtr trk, otherSignalTracks) {
195  reco::Candidate::LorentzVector p4 = theMainTrack->p4() + trk->p4();
196  output.push_back(p4.mass());
197  }
198  // Add combos with pizeros
199  BOOST_FOREACH(const RecoTauPiZero &pizero, pizeros) {
200  reco::Candidate::LorentzVector p4 = theMainTrack->p4() + pizero.p4();
201  output.push_back(p4.mass());
202  }
203  return output;
204 }
std::vector< double > VDouble
std::vector< PFCandidatePtr > notMainTrack(Tau tau)
double p4[4]
Definition: TauolaWrapper.h:92
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
PFCandidatePtr mainTrack(const PFTau &tau)
double reco::tau::disc::DecayMode ( Tau  tau)

Definition at line 75 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::decayMode().

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

Definition at line 267 of file RecoTauDiscriminantFunctions.cc.

References edm::Ptr< T >::key(), LogDebug, reco::LeafCandidate::pt(), mps_fire::result, reco::PFTau::signalPFGammaCands(), and metsig::tau.

267  {
268  //double result = tau.emFraction();
270  BOOST_FOREACH(const reco::PFCandidatePtr& gamma, tau.signalPFGammaCands()) {
271  gammaP4 += gamma->p4();
272  }
273  double result = gammaP4.pt()/tau.pt();
274 
275  if (result > 0.99) {
276  LogDebug("TauDiscFunctions") << "EM fraction = " << result
277  << tau ;
278  LogDebug("TauDiscFunctions") << "charged" ;
279  BOOST_FOREACH(const reco::PFCandidatePtr cand, tau.signalPFChargedHadrCands()) {
280  LogDebug("TauDiscFunctions") << " pt: " << cand->pt() << " type: " << cand->particleId() << " key: " << cand.key() ;
281  }
282  LogDebug("TauDiscFunctions") << "gammas" ;
283  BOOST_FOREACH(const reco::PFCandidatePtr cand, tau.signalPFGammaCands()) {
284  LogDebug("TauDiscFunctions") << " pt: " << cand->pt() << " type: " << cand->particleId() << " key: " << cand.key() ;
285  }
286  }
287  return result;
288 }
#define LogDebug(id)
key_type key() const
Definition: Ptr.h:186
tuple result
Definition: mps_fire.py:95
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
double reco::tau::disc::Eta ( Tau  tau)

Definition at line 72 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::eta().

Referenced by SiStripGainFromData::algoBeginJob(), HcalDetDiagNoiseMonitor::analyze(), ResolutionAnalyzer::analyze(), IsolatedGenParticles::analyze(), FFTJetProducer::beginJob(), BTVHLTOfflineSource::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), AlphaTVarProducer::CalcAlphaT(), AlphaTVarProducer::CalcHT(), AlphaTVarProducer::CalcMHT(), reco::PFRecHit::calculatePositionREP(), PythiaFilterGammaGamma::filter(), DTMuonMillepede::getbqcMatrix(), DTMuonMillepede::getCqcMatrix(), CovarianceMatrix::getEtaDependentScaleFactor(), EcalClusterLocalContCorrection::getValue(), EcalBasicClusterLocalContCorrection::getValue(), EcalClusterCrackCorrection::getValue(), HLTElectronEtFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), likelihood(), HcalDetDiagPedestalMonitor::LoadDataset(), HcalDetDiagLaserMonitor::LoadDataset(), HcalDetDiagLEDMonitor::LoadReference(), HcalDetDiagPedestalMonitor::LoadReference(), HcalDetDiagLaserMonitor::LoadReference(), EcalClusterLocal::localCoordsEB(), EcalClusterLocal::localCoordsEE(), l1t::TriggerMenuParser::parseCalo(), l1t::TriggerMenuParser::parseCaloCorr(), l1t::TriggerMenuXmlParser::parseCaloCorr(), l1t::TriggerMenuXmlParser::parseCaloV2(), l1t::TriggerMenuParser::parseEnergySum(), l1t::TriggerMenuParser::parseEnergySumCorr(), l1t::TriggerMenuXmlParser::parseEnergySumCorr(), l1t::TriggerMenuXmlParser::parseEnergySumV2(), l1t::TriggerMenuParser::parseMuon(), l1t::TriggerMenuParser::parseMuonCorr(), l1t::TriggerMenuXmlParser::parseMuonCorr(), l1t::TriggerMenuXmlParser::parseMuonV2(), PFTauElecRejectionBenchmark::process(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagPedestalMonitor::SaveReference(), HcalDetDiagLaserMonitor::SaveReference(), KDTreeLinkerTrackHcal::searchLinks(), KDTreeLinkerTrackEcal::searchLinks(), reco::PFRecHit::setCorner(), FastL1BitInfo::setEta(), BTVHLTOfflineSource::PathInfo::setHistos(), JetMETHLTOfflineSource::PathInfo::setHistos(), LinkByRecHit::testTrackAndClusterByRecHit(), and TEcnaHistos::TowerCrystalNumbering().

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

Definition at line 391 of file RecoTauDiscriminantFunctions.cc.

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

Definition at line 392 of file RecoTauDiscriminantFunctions.cc.

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

Definition at line 393 of file RecoTauDiscriminantFunctions.cc.

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

Definition at line 290 of file RecoTauDiscriminantFunctions.cc.

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

290  {
291  return std::abs(tau.leadPFChargedHadrCandsignedSipt());
292 }
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 76 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::mass().

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

Definition at line 394 of file RecoTauDiscriminantFunctions.cc.

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

Definition at line 176 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFChargedHadrCands(), reco::PFTau::isolationPFChargedHadrCandsPtSum(), and reco::PFTau::leadPFChargedHadrCand().

176  {
177  size_t nIsoCharged = tau.isolationPFChargedHadrCands().size();
178  double averagePt = (nIsoCharged) ?
179  tau.isolationPFChargedHadrCandsPtSum()/nIsoCharged : 0;
180  return averagePt/tau.leadPFChargedHadrCand()->pt();
181 }
double reco::tau::disc::IsolationChargedPtFraction ( Tau  tau)

Definition at line 108 of file RecoTauDiscriminantFunctions.cc.

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

108  {
109  return tau.isolationPFChargedHadrCandsPtSum()/tau.jetRef()->pt();
110 }
double reco::tau::disc::IsolationChargedSumHard ( Tau  tau)

Definition at line 206 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationPFChargedHadrCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::LeafCandidate::pt().

Referenced by IsolationChargedSumHardRelative().

206  {
207  VDouble isocands = extract(tau.isolationPFChargedHadrCands(),
208  std::mem_fun_ref(&PFCandidate::pt));
209  double output = 0.0;
210  BOOST_FOREACH(double pt, isocands) {
211  if (pt > 1.0)
212  output += pt;
213  }
214  return output;
215 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationChargedSumHardRelative ( Tau  tau)

Definition at line 229 of file RecoTauDiscriminantFunctions.cc.

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

229  {
230  return IsolationChargedSumHard(tau)/tau.jetRef()->pt();
231 }
double IsolationChargedSumHard(Tau tau)
double reco::tau::disc::IsolationChargedSumSoft ( Tau  tau)

Definition at line 217 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationPFChargedHadrCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::LeafCandidate::pt().

Referenced by IsolationChargedSumSoftRelative().

217  {
218  VDouble isocands = extract(tau.isolationPFChargedHadrCands(),
219  std::mem_fun_ref(&PFCandidate::pt));
220  double output = 0.0;
221  BOOST_FOREACH(double pt, isocands) {
222  if (pt < 1.0)
223  output += pt;
224  }
225  return output;
226 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationChargedSumSoftRelative ( Tau  tau)

Definition at line 233 of file RecoTauDiscriminantFunctions.cc.

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

233  {
234  return IsolationChargedSumSoft(tau)/tau.jetRef()->pt();
235 }
double IsolationChargedSumSoft(Tau tau)
double reco::tau::disc::IsolationECALPtFraction ( Tau  tau)

Definition at line 112 of file RecoTauDiscriminantFunctions.cc.

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

112  {
113  return tau.isolationPFGammaCandsEtSum()/tau.jetRef()->pt();
114 }
double reco::tau::disc::IsolationECALSumHard ( Tau  tau)

Definition at line 237 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationPFGammaCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::LeafCandidate::pt().

Referenced by IsolationECALSumHardRelative().

237  {
238  VDouble isocands = extract(tau.isolationPFGammaCands(),
239  std::mem_fun_ref(&PFCandidate::pt));
240  double output = 0.0;
241  BOOST_FOREACH(double pt, isocands) {
242  if (pt > 1.5)
243  output += pt;
244  }
245  return output;
246 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationECALSumHardRelative ( Tau  tau)

Definition at line 260 of file RecoTauDiscriminantFunctions.cc.

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

260  {
261  return IsolationECALSumHard(tau)/tau.jetRef()->pt();
262 }
double IsolationECALSumHard(Tau tau)
double reco::tau::disc::IsolationECALSumSoft ( Tau  tau)

Definition at line 248 of file RecoTauDiscriminantFunctions.cc.

References extract(), reco::PFTau::isolationPFGammaCands(), convertSQLitetoXML_cfg::output, EnergyCorrector::pt, and reco::LeafCandidate::pt().

Referenced by IsolationECALSumSoftRelative().

248  {
249  VDouble isocands = extract(tau.isolationPFGammaCands(),
250  std::mem_fun_ref(&PFCandidate::pt));
251  double output = 0.0;
252  BOOST_FOREACH(double pt, isocands) {
253  if (pt < 1.5)
254  output += pt;
255  }
256  return output;
257 }
std::vector< double > VDouble
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::IsolationECALSumSoftRelative ( Tau  tau)

Definition at line 263 of file RecoTauDiscriminantFunctions.cc.

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

263  {
264  return IsolationECALSumSoft(tau)/tau.jetRef()->pt();
265 }
double IsolationECALSumSoft(Tau tau)
double reco::tau::disc::IsolationNeutralHadronPtFraction ( Tau  tau)

Definition at line 116 of file RecoTauDiscriminantFunctions.cc.

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

116  {
117  double sum = 0.0;
118  BOOST_FOREACH(PFCandidatePtr cand, tau.isolationPFNeutrHadrCands()) {
119  sum += cand->pt();
120  }
121  return sum/tau.jetRef()->pt();
122 }
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
double reco::tau::disc::JetEta ( Tau  tau)

Definition at line 86 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::jetRef().

86  {
87  return tau.jetRef()->eta();
88 }
double reco::tau::disc::JetPt ( Tau  tau)

Definition at line 82 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::jetRef().

Referenced by JetMETHLTOfflineSource::bookHistograms(), and JetMETHLTOfflineSource::PathInfo::setDgnsHistos().

82  {
83  return tau.jetRef()->pt();
84 }
double reco::tau::disc::JetTauDR ( Tau  tau)

Definition at line 100 of file RecoTauDiscriminantFunctions.cc.

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

100  {
101  return reco::deltaR(tau.p4(), tau.jetRef()->p4());
102 }
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 94 of file RecoTauDiscriminantFunctions.cc.

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

94  {
95  return std::sqrt(
96  std::abs(tau.jetRef()->etaetaMoment()) +
97  std::abs(tau.jetRef()->phiphiMoment()));
98 }
T sqrt(T t)
Definition: SSEVec.h:18
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
PFCandidatePtr 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().

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

Definition at line 49 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::charge(), reco::PFTau::leadPFChargedHadrCand(), and reco::PFTau::signalPFChargedHadrCands().

49  {
50  if (tau.signalPFChargedHadrCands().size() == 3) {
51  for (size_t itrk = 0; itrk < 3; ++itrk) {
52  if (tau.signalPFChargedHadrCands()[itrk]->charge() * tau.charge() < 0)
53  return tau.signalPFChargedHadrCands()[itrk];
54  }
55  }
56  return tau.leadPFChargedHadrCand();
57 }
double reco::tau::disc::MainTrackAngle ( Tau  tau)

Definition at line 313 of file RecoTauDiscriminantFunctions.cc.

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

313  {
315  return (!trk) ? 0.0 : deltaR(trk->p4(), tau.p4());
316 }
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
PFCandidatePtr mainTrack(const PFTau &tau)
double reco::tau::disc::MainTrackEta ( Tau  tau)

Definition at line 308 of file RecoTauDiscriminantFunctions.cc.

References mainTrack().

308  {
310  return (!trk) ? 0.0 : trk->eta();
311 }
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
PFCandidatePtr mainTrack(const PFTau &tau)
double reco::tau::disc::MainTrackPt ( Tau  tau)

Definition at line 303 of file RecoTauDiscriminantFunctions.cc.

References mainTrack().

303  {
305  return (!trk) ? 0.0 : trk->pt();
306 }
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
PFCandidatePtr mainTrack(const PFTau &tau)
double reco::tau::disc::MainTrackPtFraction ( Tau  tau)

Definition at line 183 of file RecoTauDiscriminantFunctions.cc.

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

183  {
184  return mainTrack(tau)->pt()/tau.jetRef()->pt();
185 }
PFCandidatePtr mainTrack(const PFTau &tau)
double reco::tau::disc::Mass ( Tau  tau)

Definition at line 74 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::mass().

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

Definition at line 380 of file RecoTauDiscriminantFunctions.cc.

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

380  {
381  return extract(tau.isolationPFGammaCands(), DeltaRToAxis(tau.p4()));
382 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::NeutralOutlierPt ( Tau  tau)

Definition at line 375 of file RecoTauDiscriminantFunctions.cc.

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

375  {
376  return extract(tau.isolationPFGammaCands(),
377  std::mem_fun_ref(&PFCandidate::pt));
378 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::NeutralOutlierSumPt ( Tau  tau)

Definition at line 327 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFGammaCandsEtSum().

327  {
328  return tau.isolationPFGammaCandsEtSum();
329 }
std::vector<PFCandidatePtr> reco::tau::disc::notMainTrack ( Tau  tau)

Definition at line 59 of file RecoTauDiscriminantFunctions.cc.

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

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

60 {
61  const PFCandidatePtr& mainTrackPtr = mainTrack(tau);
62  std::vector<PFCandidatePtr> output;
63  output.reserve(tau.signalPFChargedHadrCands().size() - 1);
64  BOOST_FOREACH(const PFCandidatePtr& ptr, tau.signalPFChargedHadrCands()) {
65  if (ptr != mainTrackPtr)
66  output.push_back(ptr);
67  }
68  return output;
69 }
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
PFCandidatePtr mainTrack(const PFTau &tau)
double reco::tau::disc::OpeningAngle3D ( Tau  tau)

Definition at line 141 of file RecoTauDiscriminantFunctions.cc.

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

141  {
142  double sumE = 0;
143  double weightedAngle = 0;
144  BOOST_FOREACH(const reco::PFCandidatePtr& cand, tau.signalPFCands()) {
145  double candE = cand->energy();
146  double candAngle = angle(cand->p4(), tau.p4());
147  sumE += candE;
148  weightedAngle += candAngle*candE;
149  }
150  return (sumE > 0) ? weightedAngle/sumE : 0.0;
151 }
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 129 of file RecoTauDiscriminantFunctions.cc.

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

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

129  {
130  double sumEt = 0;
131  double weightedDeltaR = 0;
132  BOOST_FOREACH(const reco::PFCandidatePtr& cand, tau.signalPFCands()) {
133  double candEt = cand->et();
134  double candDeltaR = reco::deltaR(cand->p4(), tau.p4());
135  sumEt += candEt;
136  weightedDeltaR += candDeltaR*candEt;
137  }
138  return (sumEt > 0) ? weightedDeltaR/sumEt : 0.0;
139 }
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 362 of file RecoTauDiscriminantFunctions.cc.

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

362  {
363  return extract(tau.isolationPFCands(), DeltaRToAxis(tau.p4()));
364 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::OutlierMass ( Tau  tau)

Definition at line 396 of file RecoTauDiscriminantFunctions.cc.

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

Definition at line 294 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFChargedHadrCands(), and reco::PFTau::isolationPFGammaCands().

294  {
295  return tau.isolationPFChargedHadrCands().size() +
296  tau.isolationPFGammaCands().size();
297 }
double reco::tau::disc::OutlierNCharged ( Tau  tau)

Definition at line 299 of file RecoTauDiscriminantFunctions.cc.

References reco::PFTau::isolationPFChargedHadrCands().

299  {
300  return tau.isolationPFChargedHadrCands().size();
301 }
VDouble reco::tau::disc::OutlierPt ( Tau  tau)

Definition at line 358 of file RecoTauDiscriminantFunctions.cc.

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

358  {
359  return extract(tau.isolationPFCands(), std::mem_fun_ref(&PFCandidate::pt));
360 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::OutlierSumPt ( Tau  tau)

Definition at line 318 of file RecoTauDiscriminantFunctions.cc.

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

318  {
319  return tau.isolationPFChargedHadrCandsPtSum() +
320  tau.isolationPFGammaCandsEtSum();
321 }
VDouble reco::tau::disc::PiZeroAngle ( Tau  tau)

Definition at line 353 of file RecoTauDiscriminantFunctions.cc.

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

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

Definition at line 349 of file RecoTauDiscriminantFunctions.cc.

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

349  {
350  return extract(tau.signalPiZeroCandidates(), std::mem_fun_ref(&RecoTauPiZero::eta));
351 }
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::PiZeroPt ( Tau  tau)

Definition at line 345 of file RecoTauDiscriminantFunctions.cc.

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

345  {
346  return extract(tau.signalPiZeroCandidates(), std::mem_fun_ref(&RecoTauPiZero::pt));
347 }
int extract(std::vector< int > *output, const std::string &dati)
double reco::tau::disc::Pt ( Tau  tau)

Definition at line 71 of file RecoTauDiscriminantFunctions.cc.

References reco::LeafCandidate::pt().

Referenced by AlphaT::AlphaT(), CaloTowerAnalyzer::analyze(), HCALRecHitAnalyzer::analyze(), DijetMass< Jet >::analyze(), ResolutionAnalyzer::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), BTVHLTOfflineSource::bookHistograms(), JetMETHLTOfflineSource::bookHistograms(), ZtoMMEventSelector::filter(), ZtoEEEventSelector::filter(), PythiaFilterGammaGamma::filter(), ChargedHadronTrackResolutionFilter::filter(), MuonBadTrackFilter::filter(), GeneralTracksImporter::goodPtResolution(), GlobalTrackerMuonAlignment::gradientGlobal(), GlobalTrackerMuonAlignment::gradientLocal(), BaseParticlePropagator::helixRadius(), HLTElectronEtFilter::hltFilter(), HLTElectronGenericFilter::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), HLTJetSortedVBFFilter< T >::hltFilter(), alpha_T::operator()(), BaseParticlePropagator::propagate(), BaseParticlePropagator::propagateToBeamCylinder(), BaseParticlePropagator::propagateToClosestApproach(), CSCTFPtMethods::Pt2Stn(), CSCTFPtMethods::Pt2Stn2010(), CSCTFPtMethods::Pt2Stn2011(), CSCTFPtMethods::Pt2Stn2012(), CSCTFPtMethods::Pt2Stn2012_DT(), CSCTFPtMethods::Pt3Stn(), CSCTFPtMethods::Pt3Stn2010(), CSCTFPtMethods::Pt3Stn2011(), CSCTFPtMethods::Pt3Stn2012(), CSCTFPtMethods::Pt3Stn2012_DT(), MuScleFit::selectMuons(), BTVHLTOfflineSource::PathInfo::setHistos(), JetMETHLTOfflineSource::PathInfo::setHistos(), ECALRecHitAnalyzer::WriteECALRecHits(), and BaseParticlePropagator::xyImpactParameter().

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

Definition at line 124 of file RecoTauDiscriminantFunctions.cc.

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

124  {
125  return tau.jetRef()->pt()*sqrt(std::abs(
126  tau.jetRef()->etaetaMoment()));
127 }
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 153 of file RecoTauDiscriminantFunctions.cc.

References reco::deltaR(), i, j, bookConverter::max, p4, reco::LeafCandidate::pt(), and reco::PFTau::signalPFCands().

153  {
154  double max = 0.0;
155  const std::vector<PFCandidatePtr>& cands = tau.signalPFCands();
156  for (size_t i = 0; i < cands.size()-1; ++i) {
157  for (size_t j = i+1; j < cands.size(); ++j) {
158  double deltaRVal = deltaR(cands[i]->p4(), cands[j]->p4());
159  if (deltaRVal > max) {
160  max = deltaRVal;
161  }
162  }
163  }
164  // Correct for resolution
165  if ( max < 0.05 )
166  max = 0.05;
167  // Make invariant of PT
168  return max*tau.pt();;
169 }
int i
Definition: DBlmapReader.cc:9
double p4[4]
Definition: TauolaWrapper.h:92
int j
Definition: DBlmapReader.cc:9
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
double reco::tau::disc::ScaledPhiJetCollimation ( Tau  tau)

Definition at line 171 of file RecoTauDiscriminantFunctions.cc.

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

171  {
172  return tau.jetRef()->pt()*sqrt(std::abs(
173  tau.jetRef()->phiphiMoment()));
174 }
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 104 of file RecoTauDiscriminantFunctions.cc.

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

104  {
105  return tau.pt()/tau.jetRef()->pt();
106 }
VDouble reco::tau::disc::TrackAngle ( Tau  tau)

Definition at line 340 of file RecoTauDiscriminantFunctions.cc.

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

Referenced by DTLocalTriggerEfficiencyTest::runClientDiagnostic().

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

Definition at line 336 of file RecoTauDiscriminantFunctions.cc.

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

Referenced by CalculatePt(), and getPt().

336  {
337  return extract(notMainTrack(tau), std::mem_fun_ref(&PFCandidate::eta));
338 }
std::vector< PFCandidatePtr > notMainTrack(Tau tau)
int extract(std::vector< int > *output, const std::string &dati)
VDouble reco::tau::disc::TrackPt ( Tau  tau)

Definition at line 332 of file RecoTauDiscriminantFunctions.cc.

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

332  {
333  return extract(notMainTrack(tau), std::mem_fun_ref(&PFCandidate::pt));
334 }
std::vector< PFCandidatePtr > notMainTrack(Tau tau)
int extract(std::vector< int > *output, const std::string &dati)