ATLAS Offline Software
Namespaces | Typedefs | Functions
TauGNNUtils::Variables Namespace Reference

Namespaces

 Cluster
 
 Track
 

Typedefs

using TauDetail = xAOD::TauJetParameters::Detail
 

Functions

bool absEta (const xAOD::TauJet &tau, double &out)
 
bool centFrac (const xAOD::TauJet &tau, double &out)
 
bool isolFrac (const xAOD::TauJet &tau, double &out)
 
bool etOverPtLeadTrk (const xAOD::TauJet &tau, double &out)
 
bool innerTrkAvgDist (const xAOD::TauJet &tau, double &out)
 
bool absipSigLeadTrk (const xAOD::TauJet &tau, double &out)
 
bool sumEMCellEtOverLeadTrkPt (const xAOD::TauJet &tau, double &out)
 
bool SumPtTrkFrac (const xAOD::TauJet &tau, double &out)
 
bool EMPOverTrkSysP (const xAOD::TauJet &tau, double &out)
 
bool ptRatioEflowApprox (const xAOD::TauJet &tau, double &out)
 
bool mEflowApprox (const xAOD::TauJet &tau, double &out)
 
bool dRmax (const xAOD::TauJet &tau, double &out)
 
bool trFlightPathSig (const xAOD::TauJet &tau, double &out)
 
bool massTrkSys (const xAOD::TauJet &tau, double &out)
 
bool pt (const xAOD::TauJet &tau, double &out)
 
bool pt_tau_log (const xAOD::TauJet &tau, double &out)
 
bool ptDetectorAxis (const xAOD::TauJet &tau, double &out)
 
bool ptIntermediateAxis (const xAOD::TauJet &tau, double &out)
 
bool ptJetSeed_log (const xAOD::TauJet &tau, double &out)
 
bool absleadTrackEta (const xAOD::TauJet &tau, double &out)
 
bool leadTrackDeltaEta (const xAOD::TauJet &tau, double &out)
 
bool leadTrackDeltaPhi (const xAOD::TauJet &tau, double &out)
 
bool leadTrackProbNNorHT (const xAOD::TauJet &tau, double &out)
 
bool EMFracFixed (const xAOD::TauJet &tau, double &out)
 
bool etHotShotWinOverPtLeadTrk (const xAOD::TauJet &tau, double &out)
 
bool hadLeakFracFixed (const xAOD::TauJet &tau, double &out)
 
bool PSFrac (const xAOD::TauJet &tau, double &out)
 
bool ClustersMeanCenterLambda (const xAOD::TauJet &tau, double &out)
 
bool ClustersMeanEMProbability (const xAOD::TauJet &tau, double &out)
 
bool ClustersMeanFirstEngDens (const xAOD::TauJet &tau, double &out)
 
bool ClustersMeanPresamplerFrac (const xAOD::TauJet &tau, double &out)
 
bool ClustersMeanSecondLambda (const xAOD::TauJet &tau, double &out)
 

Typedef Documentation

◆ TauDetail

Definition at line 232 of file TauGNNUtils.cxx.

Function Documentation

◆ absEta()

bool TauGNNUtils::Variables::absEta ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 234 of file TauGNNUtils.cxx.

234  {
235  out = std::abs(tau.eta());
236  return true;
237 }

◆ absipSigLeadTrk()

bool TauGNNUtils::Variables::absipSigLeadTrk ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 269 of file TauGNNUtils.cxx.

269  {
270  float ipSigLeadTrk = (tau.nTracks()>0) ? tau.track(0)->d0SigTJVA() : 0.;
271  //out = std::min(std::abs(ipSigLeadTrk), 30.0f);
272  out = std::abs(ipSigLeadTrk);
273  return true;
274 }

◆ absleadTrackEta()

bool TauGNNUtils::Variables::absleadTrackEta ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 358 of file TauGNNUtils.cxx.

358  {
359  static const SG::ConstAccessor<float> acc_absEtaLeadTrack("ABS_ETA_LEAD_TRACK");
360  float absEtaLeadTrack = acc_absEtaLeadTrack(tau);
361  out = std::max(0.f, absEtaLeadTrack);
362  return true;
363 }

◆ centFrac()

bool TauGNNUtils::Variables::centFrac ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 239 of file TauGNNUtils.cxx.

239  {
240  float centFrac;
241  const auto success = tau.detail(TauDetail::centFrac, centFrac);
242  //out = std::min(centFrac, 1.0f);
243  out = centFrac;
244  return success;
245 }

◆ ClustersMeanCenterLambda()

bool TauGNNUtils::Variables::ClustersMeanCenterLambda ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 430 of file TauGNNUtils.cxx.

430  {
434  return success;
435 }

◆ ClustersMeanEMProbability()

bool TauGNNUtils::Variables::ClustersMeanEMProbability ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 437 of file TauGNNUtils.cxx.

437  {
441  return success;
442 }

◆ ClustersMeanFirstEngDens()

bool TauGNNUtils::Variables::ClustersMeanFirstEngDens ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 444 of file TauGNNUtils.cxx.

444  {
448  return success;
449 }

◆ ClustersMeanPresamplerFrac()

bool TauGNNUtils::Variables::ClustersMeanPresamplerFrac ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 451 of file TauGNNUtils.cxx.

451  {
455  return success;
456 }

◆ ClustersMeanSecondLambda()

bool TauGNNUtils::Variables::ClustersMeanSecondLambda ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 458 of file TauGNNUtils.cxx.

458  {
462  return success;
463 }

◆ dRmax()

bool TauGNNUtils::Variables::dRmax ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 312 of file TauGNNUtils.cxx.

312  {
313  float dRmax;
314  const auto success = tau.detail(TauDetail::dRmax, dRmax);
315  out = dRmax;
316  return success;
317 }

◆ EMFracFixed()

bool TauGNNUtils::Variables::EMFracFixed ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 402 of file TauGNNUtils.cxx.

402  {
403  static const SG::ConstAccessor<float> acc_emFracFixed("EMFracFixed");
404  float emFracFixed = acc_emFracFixed(tau);
405  out = std::max(emFracFixed, 0.0f);
406  return true;
407 }

◆ EMPOverTrkSysP()

bool TauGNNUtils::Variables::EMPOverTrkSysP ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 290 of file TauGNNUtils.cxx.

290  {
291  float EMPOverTrkSysP;
292  const auto success = tau.detail(TauDetail::EMPOverTrkSysP, EMPOverTrkSysP);
294  return success;
295 }

◆ etHotShotWinOverPtLeadTrk()

bool TauGNNUtils::Variables::etHotShotWinOverPtLeadTrk ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 409 of file TauGNNUtils.cxx.

409  {
410  static const SG::ConstAccessor<float> acc_etHotShotWinOverPtLeadTrk("etHotShotWinOverPtLeadTrk");
411  float etHotShotWinOverPtLeadTrk = acc_etHotShotWinOverPtLeadTrk(tau);
413  return true;
414 }

◆ etOverPtLeadTrk()

bool TauGNNUtils::Variables::etOverPtLeadTrk ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 255 of file TauGNNUtils.cxx.

255  {
256  float etOverPtLeadTrk;
257  const auto success = tau.detail(TauDetail::etOverPtLeadTrk, etOverPtLeadTrk);
259  return success;
260 }

◆ hadLeakFracFixed()

bool TauGNNUtils::Variables::hadLeakFracFixed ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 416 of file TauGNNUtils.cxx.

416  {
417  static const SG::ConstAccessor<float> acc_hadLeakFracFixed("hadLeakFracFixed");
418  float hadLeakFracFixed = acc_hadLeakFracFixed(tau);
420  return true;
421 }

◆ innerTrkAvgDist()

bool TauGNNUtils::Variables::innerTrkAvgDist ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 262 of file TauGNNUtils.cxx.

262  {
263  float innerTrkAvgDist;
264  const auto success = tau.detail(TauDetail::innerTrkAvgDist, innerTrkAvgDist);
266  return success;
267 }

◆ isolFrac()

bool TauGNNUtils::Variables::isolFrac ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 247 of file TauGNNUtils.cxx.

247  {
248  float isolFrac;
249  const auto success = tau.detail(TauDetail::isolFrac, isolFrac);
250  //out = std::min(isolFrac, 1.0f);
251  out = isolFrac;
252  return success;
253 }

◆ leadTrackDeltaEta()

bool TauGNNUtils::Variables::leadTrackDeltaEta ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 365 of file TauGNNUtils.cxx.

365  {
366  static const SG::ConstAccessor<float> acc_absDeltaEta("TAU_ABSDELTAETA");
367  float absDeltaEta = acc_absDeltaEta(tau);
368  out = std::max(0.f, absDeltaEta);
369  return true;
370 }

◆ leadTrackDeltaPhi()

bool TauGNNUtils::Variables::leadTrackDeltaPhi ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 372 of file TauGNNUtils.cxx.

372  {
373  static const SG::ConstAccessor<float> acc_absDeltaPhi("TAU_ABSDELTAPHI");
374  float absDeltaPhi = acc_absDeltaPhi(tau);
375  out = std::max(0.f, absDeltaPhi);
376  return true;
377 }

◆ leadTrackProbNNorHT()

bool TauGNNUtils::Variables::leadTrackProbNNorHT ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 379 of file TauGNNUtils.cxx.

379  {
380  auto tracks = tau.allTracks();
381 
382  // Sort tracks in descending pt order
383  if (!tracks.empty()) {
384  auto cmp_pt = [](const xAOD::TauTrack *lhs, const xAOD::TauTrack *rhs) {
385  return lhs->pt() > rhs->pt();
386  };
387  std::sort(tracks.begin(), tracks.end(), cmp_pt);
388 
389  const xAOD::TauTrack* tauLeadTrack = tracks.at(0);
390  const xAOD::TrackParticle* xTrackParticle = tauLeadTrack->track();
392  static const SG::ConstAccessor<float> acc_eProbabilityNN("eProbabilityNN");
393  float eProbabilityNN = acc_eProbabilityNN(*xTrackParticle);
394  out = (tauLeadTrack->pt()>2000.) ? eProbabilityNN : eProbabilityHT;
395  }
396  else {
397  out = 0.;
398  }
399  return true;
400 }

◆ massTrkSys()

bool TauGNNUtils::Variables::massTrkSys ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 326 of file TauGNNUtils.cxx.

326  {
327  float massTrkSys;
328  const auto success = tau.detail(TauDetail::massTrkSys, massTrkSys);
329  out = massTrkSys;
330  return success;
331 }

◆ mEflowApprox()

bool TauGNNUtils::Variables::mEflowApprox ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 305 of file TauGNNUtils.cxx.

305  {
306  float mEflowApprox;
307  const auto success = tau.detail(TauDetail::mEflowApprox, mEflowApprox);
308  out = mEflowApprox;
309  return success;
310 }

◆ PSFrac()

bool TauGNNUtils::Variables::PSFrac ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 423 of file TauGNNUtils.cxx.

423  {
424  float PSFrac;
425  const auto success = tau.detail(TauDetail::PSSFraction, PSFrac);
426  out = std::max(0.f,PSFrac);
427  return success;
428 }

◆ pt()

bool TauGNNUtils::Variables::pt ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 333 of file TauGNNUtils.cxx.

333  {
334  out = tau.pt();
335  return true;
336 }

◆ pt_tau_log()

bool TauGNNUtils::Variables::pt_tau_log ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 338 of file TauGNNUtils.cxx.

338  {
339  out = std::log10(std::max(tau.pt() / GeV, 1e-6));
340  return true;
341 }

◆ ptDetectorAxis()

bool TauGNNUtils::Variables::ptDetectorAxis ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 343 of file TauGNNUtils.cxx.

343  {
344  out = tau.ptDetectorAxis();
345  return true;
346 }

◆ ptIntermediateAxis()

bool TauGNNUtils::Variables::ptIntermediateAxis ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 348 of file TauGNNUtils.cxx.

348  {
349  out = tau.ptIntermediateAxis();
350  return true;
351 }

◆ ptJetSeed_log()

bool TauGNNUtils::Variables::ptJetSeed_log ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 353 of file TauGNNUtils.cxx.

353  {
354  out = std::log10(std::max(tau.ptJetSeed(), 1e-3));
355  return true;
356 }

◆ ptRatioEflowApprox()

bool TauGNNUtils::Variables::ptRatioEflowApprox ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 297 of file TauGNNUtils.cxx.

297  {
298  float ptRatioEflowApprox;
299  const auto success = tau.detail(TauDetail::ptRatioEflowApprox, ptRatioEflowApprox);
300  //out = std::min(ptRatioEflowApprox, 4.0f);
302  return success;
303 }

◆ sumEMCellEtOverLeadTrkPt()

bool TauGNNUtils::Variables::sumEMCellEtOverLeadTrkPt ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 276 of file TauGNNUtils.cxx.

276  {
280  return success;
281 }

◆ SumPtTrkFrac()

bool TauGNNUtils::Variables::SumPtTrkFrac ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 283 of file TauGNNUtils.cxx.

283  {
284  float SumPtTrkFrac;
285  const auto success = tau.detail(TauDetail::SumPtTrkFrac, SumPtTrkFrac);
286  out = SumPtTrkFrac;
287  return success;
288 }

◆ trFlightPathSig()

bool TauGNNUtils::Variables::trFlightPathSig ( const xAOD::TauJet tau,
double &  out 
)

Definition at line 319 of file TauGNNUtils.cxx.

319  {
320  float trFlightPathSig;
321  const auto success = tau.detail(TauDetail::trFlightPathSig, trFlightPathSig);
323  return success;
324 }
TauGNNUtils::Variables::centFrac
bool centFrac(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:239
TauGNNUtils::Variables::ClustersMeanFirstEngDens
bool ClustersMeanFirstEngDens(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:444
TauGNNUtils::Variables::ptRatioEflowApprox
bool ptRatioEflowApprox(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:297
xAOD::TauTrack_v1::d0SigTJVA
float d0SigTJVA() const
Definition: TauTrack_v1.cxx:129
xAOD::TauJet_v3::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
GeV
#define GeV
Definition: TauGNNUtils.cxx:9
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
xAOD::TrackParticle_v1::summaryValue
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
Definition: TrackParticle_v1.cxx:736
xAOD::TauJet_v3::nTracks
size_t nTracks(TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged) const
Definition: TauJet_v3.cxx:526
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
TauGNNUtils::Variables::innerTrkAvgDist
bool innerTrkAvgDist(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:262
TauGNNUtils::Variables::isolFrac
bool isolFrac(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:247
SG::ConstAccessor< float >
TauGNNUtils::Variables::massTrkSys
bool massTrkSys(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:326
TauGNNUtils::Variables::hadLeakFracFixed
bool hadLeakFracFixed(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:416
xAOD::TauJet_v3::ptJetSeed
double ptJetSeed() const
xAOD::TauJet_v3::ptDetectorAxis
double ptDetectorAxis() const
TauGNNUtils::Variables::trFlightPathSig
bool trFlightPathSig(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:319
TauGNNUtils::Variables::etHotShotWinOverPtLeadTrk
bool etHotShotWinOverPtLeadTrk(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:409
xAOD::TauJetParameters::ipSigLeadTrk
@ ipSigLeadTrk
Definition: TauDefs.h:160
TauGNNUtils::Variables::ClustersMeanEMProbability
bool ClustersMeanEMProbability(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:437
xAOD::TauJet_v3::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
TauGNNUtils::Variables::PSFrac
bool PSFrac(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:423
TauGNNUtils::Variables::Track::eProbabilityHT
bool eProbabilityHT(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:595
xAOD::TauJet_v3::track
const TauTrack * track(size_t i, TauJetParameters::TauTrackFlag flag=TauJetParameters::TauTrackFlag::classifiedCharged, int *container_index=0) const
Get the pointer to a given tauTrack associated with this tau /*container index needed by trackNonCons...
Definition: TauJet_v3.cxx:450
hist_file_dump.f
f
Definition: hist_file_dump.py:135
TauGNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:458
TauGNNUtils::Variables::mEflowApprox
bool mEflowApprox(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:305
TauGNNUtils::Variables::ClustersMeanPresamplerFrac
bool ClustersMeanPresamplerFrac(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:451
xAOD::TauJet_v3::detail
bool detail(TauJetParameters::Detail detail, int &value) const
Set veto flag.
Definition: TauJet_v3.cxx:292
xAOD::TauTrack_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
TauGNNUtils::Variables::SumPtTrkFrac
bool SumPtTrkFrac(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:283
TauGNNUtils::Variables::Cluster::e
bool e(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:892
TauGNNUtils::Variables::sumEMCellEtOverLeadTrkPt
bool sumEMCellEtOverLeadTrkPt(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:276
TauGNNUtils::Variables::dRmax
bool dRmax(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:312
TauGNNUtils::Variables::EMPOverTrkSysP
bool EMPOverTrkSysP(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:290
TauGNNUtils::Variables::etOverPtLeadTrk
bool etOverPtLeadTrk(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:255
TauGNNUtils::Variables::ClustersMeanCenterLambda
bool ClustersMeanCenterLambda(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:430
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
xAOD::TauTrack_v1
Definition: TauTrack_v1.h:27
TauGNNUtils::Variables::Track::eProbabilityNN
bool eProbabilityNN(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:602
xAOD::eProbabilityHT
@ eProbabilityHT
Electron probability from High Threshold (HT) information [float].
Definition: TrackingPrimitives.h:301
xAOD::TauTrack_v1::track
const TrackParticle * track() const
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
xAOD::TauJet_v3::ptIntermediateAxis
double ptIntermediateAxis() const
xAOD::TauJetParameters::PSSFraction
@ PSSFraction
Definition: TauDefs.h:277
xAOD::TauJet_v3::allTracks
std::vector< const TauTrack * > allTracks() const
Get the v<const pointer> to all tracks associated with this tau, regardless of classification.
Definition: TauJet_v3.cxx:514