ATLAS Offline Software
Functions
TauJetRNNUtils::Variables::Track Namespace Reference

Functions

bool pt_log (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool pt_tau_log (const xAOD::TauJet &tau, const xAOD::TauTrack &, double &out)
 
bool pt_jetseed_log (const xAOD::TauJet &tau, const xAOD::TauTrack &, double &out)
 
bool d0_abs_log (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool z0sinThetaTJVA_abs_log (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool z0sinthetaTJVA (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool z0sinthetaSigTJVA (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool d0TJVA (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool d0SigTJVA (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool dEta (const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
 
bool dPhi (const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
 
bool nInnermostPixelHits (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool nPixelHits (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool nSCTHits (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool nIBLHitsAndExp (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool nPixelHitsPlusDeadSensors (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool nSCTHitsPlusDeadSensors (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool eProbabilityHT (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool eProbabilityNN (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool eProbabilityNNorHT (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool chargedScoreRNN (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool isolationScoreRNN (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool conversionScoreRNN (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 
bool fakeScoreRNN (const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
 

Function Documentation

◆ chargedScoreRNN()

bool TauJetRNNUtils::Variables::Track::chargedScoreRNN ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 526 of file TauJetRNNUtils.cxx.

526  {
527  static const SG::AuxElement::ConstAccessor<float> acc_chargedScoreRNN("rnn_chargedScore");
528  out = acc_chargedScoreRNN(track);
529  return true;
530 }

◆ conversionScoreRNN()

bool TauJetRNNUtils::Variables::Track::conversionScoreRNN ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 538 of file TauJetRNNUtils.cxx.

538  {
539  static const SG::AuxElement::ConstAccessor<float> acc_conversionScoreRNN("rnn_conversionScore");
540  out = acc_conversionScoreRNN(track);
541  return true;
542 }

◆ d0_abs_log()

bool TauJetRNNUtils::Variables::Track::d0_abs_log ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 418 of file TauJetRNNUtils.cxx.

418  {
419  out = std::log10(std::abs(track.d0TJVA()) + 1e-6);
420  return true;
421 }

◆ d0SigTJVA()

bool TauJetRNNUtils::Variables::Track::d0SigTJVA ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 443 of file TauJetRNNUtils.cxx.

443  {
444  out = track.d0SigTJVA();
445  return true;
446 }

◆ d0TJVA()

bool TauJetRNNUtils::Variables::Track::d0TJVA ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 438 of file TauJetRNNUtils.cxx.

438  {
439  out = track.d0TJVA();
440  return true;
441 }

◆ dEta()

bool TauJetRNNUtils::Variables::Track::dEta ( const xAOD::TauJet tau,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 448 of file TauJetRNNUtils.cxx.

448  {
449  out = track.eta() - tau.eta();
450  return true;
451 }

◆ dPhi()

bool TauJetRNNUtils::Variables::Track::dPhi ( const xAOD::TauJet tau,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 453 of file TauJetRNNUtils.cxx.

453  {
454  out = track.p4().DeltaPhi(tau.p4());
455  return true;
456 }

◆ eProbabilityHT()

bool TauJetRNNUtils::Variables::Track::eProbabilityHT ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 504 of file TauJetRNNUtils.cxx.

504  {
505  float eProbabilityHT;
506  const auto success = track.track()->summaryValue(eProbabilityHT, xAOD::eProbabilityHT);
508  return success;
509 }

◆ eProbabilityNN()

bool TauJetRNNUtils::Variables::Track::eProbabilityNN ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 511 of file TauJetRNNUtils.cxx.

511  {
512  static const SG::AuxElement::ConstAccessor<float> acc_eProbabilityNN("eProbabilityNN");
513  out = acc_eProbabilityNN(track);
514  return true;
515 }

◆ eProbabilityNNorHT()

bool TauJetRNNUtils::Variables::Track::eProbabilityNNorHT ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 517 of file TauJetRNNUtils.cxx.

517  {
518  auto atrack = track.track();
519  float eProbabilityHT = atrack->summaryValue(eProbabilityHT, xAOD::eProbabilityHT);
520  static const SG::AuxElement::ConstAccessor<float> acc_eProbabilityNN("eProbabilityNN");
521  float eProbabilityNN = acc_eProbabilityNN(*atrack);
522  out = (atrack->pt()>2000.) ? eProbabilityNN : eProbabilityHT;
523  return true;
524 }

◆ fakeScoreRNN()

bool TauJetRNNUtils::Variables::Track::fakeScoreRNN ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 544 of file TauJetRNNUtils.cxx.

544  {
545  static const SG::AuxElement::ConstAccessor<float> acc_fakeScoreRNN("rnn_fakeScore");
546  out = acc_fakeScoreRNN(track);
547  return true;
548 }

◆ isolationScoreRNN()

bool TauJetRNNUtils::Variables::Track::isolationScoreRNN ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 532 of file TauJetRNNUtils.cxx.

532  {
533  static const SG::AuxElement::ConstAccessor<float> acc_isolationScoreRNN("rnn_isolationScore");
534  out = acc_isolationScoreRNN(track);
535  return true;
536 }

◆ nIBLHitsAndExp()

bool TauJetRNNUtils::Variables::Track::nIBLHitsAndExp ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 480 of file TauJetRNNUtils.cxx.

480  {
481  uint8_t inner_pixel_hits, inner_pixel_exp;
482  const auto success1 = track.track()->summaryValue(inner_pixel_hits, xAOD::numberOfInnermostPixelLayerHits);
483  const auto success2 = track.track()->summaryValue(inner_pixel_exp, xAOD::expectInnermostPixelLayerHit);
484  out = inner_pixel_exp ? inner_pixel_hits : 1.;
485  return success1 && success2;
486 }

◆ nInnermostPixelHits()

bool TauJetRNNUtils::Variables::Track::nInnermostPixelHits ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 458 of file TauJetRNNUtils.cxx.

458  {
459  uint8_t inner_pixel_hits;
460  const auto success = track.track()->summaryValue(inner_pixel_hits, xAOD::numberOfInnermostPixelLayerHits);
461  out = inner_pixel_hits;
462  return success;
463 }

◆ nPixelHits()

bool TauJetRNNUtils::Variables::Track::nPixelHits ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 465 of file TauJetRNNUtils.cxx.

465  {
466  uint8_t pixel_hits;
467  const auto success = track.track()->summaryValue(pixel_hits, xAOD::numberOfPixelHits);
468  out = pixel_hits;
469  return success;
470 }

◆ nPixelHitsPlusDeadSensors()

bool TauJetRNNUtils::Variables::Track::nPixelHitsPlusDeadSensors ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 488 of file TauJetRNNUtils.cxx.

488  {
489  uint8_t pixel_hits, pixel_dead;
490  const auto success1 = track.track()->summaryValue(pixel_hits, xAOD::numberOfPixelHits);
491  const auto success2 = track.track()->summaryValue(pixel_dead, xAOD::numberOfPixelDeadSensors);
492  out = pixel_hits + pixel_dead;
493  return success1 && success2;
494 }

◆ nSCTHits()

bool TauJetRNNUtils::Variables::Track::nSCTHits ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 472 of file TauJetRNNUtils.cxx.

472  {
473  uint8_t sct_hits;
474  const auto success = track.track()->summaryValue(sct_hits, xAOD::numberOfSCTHits);
475  out = sct_hits;
476  return success;
477 }

◆ nSCTHitsPlusDeadSensors()

bool TauJetRNNUtils::Variables::Track::nSCTHitsPlusDeadSensors ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 496 of file TauJetRNNUtils.cxx.

496  {
497  uint8_t sct_hits, sct_dead;
498  const auto success1 = track.track()->summaryValue(sct_hits, xAOD::numberOfSCTHits);
499  const auto success2 = track.track()->summaryValue(sct_dead, xAOD::numberOfSCTDeadSensors);
500  out = sct_hits + sct_dead;
501  return success1 && success2;
502 }

◆ pt_jetseed_log()

bool TauJetRNNUtils::Variables::Track::pt_jetseed_log ( const xAOD::TauJet tau,
const xAOD::TauTrack ,
double &  out 
)

Definition at line 413 of file TauJetRNNUtils.cxx.

413  {
414  out = std::log10(tau.ptJetSeed());
415  return true;
416 }

◆ pt_log()

bool TauJetRNNUtils::Variables::Track::pt_log ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 403 of file TauJetRNNUtils.cxx.

403  {
404  out = std::log10(track.pt());
405  return true;
406 }

◆ pt_tau_log()

bool TauJetRNNUtils::Variables::Track::pt_tau_log ( const xAOD::TauJet tau,
const xAOD::TauTrack ,
double &  out 
)

Definition at line 408 of file TauJetRNNUtils.cxx.

408  {
409  out = std::log10(std::max(tau.pt(), 1e-6));
410  return true;
411 }

◆ z0sinthetaSigTJVA()

bool TauJetRNNUtils::Variables::Track::z0sinthetaSigTJVA ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 433 of file TauJetRNNUtils.cxx.

433  {
434  out = track.z0sinthetaSigTJVA();
435  return true;
436 }

◆ z0sinthetaTJVA()

bool TauJetRNNUtils::Variables::Track::z0sinthetaTJVA ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 428 of file TauJetRNNUtils.cxx.

428  {
429  out = track.z0sinthetaTJVA();
430  return true;
431 }

◆ z0sinThetaTJVA_abs_log()

bool TauJetRNNUtils::Variables::Track::z0sinThetaTJVA_abs_log ( const xAOD::TauJet ,
const xAOD::TauTrack track,
double &  out 
)

Definition at line 423 of file TauJetRNNUtils.cxx.

423  {
424  out = std::log10(std::abs(track.z0sinthetaTJVA()) + 1e-6);
425  return true;
426 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
max
#define max(a, b)
Definition: cfImp.cxx:41
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::TauJet_v3::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
xAOD::numberOfPixelHits
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Definition: TrackingPrimitives.h:259
xAOD::expectInnermostPixelLayerHit
@ expectInnermostPixelLayerHit
Do we expect a 0th-layer barrel hit for this track?
Definition: TrackingPrimitives.h:236
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
TauJetRNNUtils::Variables::Track::eProbabilityHT
bool eProbabilityHT(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
Definition: TauJetRNNUtils.cxx:504
xAOD::TauJet_v3::ptJetSeed
double ptJetSeed() const
TauJetRNNUtils::Variables::Track::eProbabilityNN
bool eProbabilityNN(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
Definition: TauJetRNNUtils.cxx:511
xAOD::TauJet_v3::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
xAOD::numberOfSCTDeadSensors
@ numberOfSCTDeadSensors
number of dead SCT sensors crossed [unit8_t].
Definition: TrackingPrimitives.h:273
xAOD::TauJet_v3::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: TauJet_v3.cxx:97
xAOD::eProbabilityHT
@ eProbabilityHT
Electron probability from High Threshold (HT) information [float].
Definition: TrackingPrimitives.h:301
xAOD::numberOfSCTHits
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Definition: TrackingPrimitives.h:268
xAOD::numberOfPixelDeadSensors
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].
Definition: TrackingPrimitives.h:266
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::numberOfInnermostPixelLayerHits
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
Definition: TrackingPrimitives.h:237