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

Namespaces

 Cluster
 
 Track
 

Typedefs

using TauDetail = xAOD::TauJetParameters::Detail
 

Functions

bool centFrac (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 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 190 of file TauJetRNNUtils.cxx.

Function Documentation

◆ absipSigLeadTrk()

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

Definition at line 213 of file TauJetRNNUtils.cxx.

213  {
214  float ipSigLeadTrk = (tau.nTracks()>0) ? tau.track(0)->d0SigTJVA() : 0.;
215  out = std::min(std::abs(ipSigLeadTrk), 30.0f);
216  return true;
217 }

◆ absleadTrackEta()

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

Definition at line 293 of file TauJetRNNUtils.cxx.

293  {
294  static const SG::AuxElement::ConstAccessor<float> acc_absEtaLeadTrack("ABS_ETA_LEAD_TRACK");
295  float absEtaLeadTrack = acc_absEtaLeadTrack(tau);
296  out = std::max(0.f, absEtaLeadTrack);
297  return true;
298 }

◆ centFrac()

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

Definition at line 192 of file TauJetRNNUtils.cxx.

192  {
193  float centFrac;
194  const auto success = tau.detail(TauDetail::centFrac, centFrac);
195  out = std::min(centFrac, 1.0f);
196  return success;
197 }

◆ ClustersMeanCenterLambda()

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

Definition at line 366 of file TauJetRNNUtils.cxx.

366  {
370  return success;
371 }

◆ ClustersMeanEMProbability()

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

Definition at line 373 of file TauJetRNNUtils.cxx.

373  {
377  return success;
378 }

◆ ClustersMeanFirstEngDens()

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

Definition at line 380 of file TauJetRNNUtils.cxx.

380  {
384  return success;
385 }

◆ ClustersMeanPresamplerFrac()

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

Definition at line 387 of file TauJetRNNUtils.cxx.

387  {
391  return success;
392 }

◆ ClustersMeanSecondLambda()

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

Definition at line 394 of file TauJetRNNUtils.cxx.

394  {
398  return success;
399 }

◆ dRmax()

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

Definition at line 247 of file TauJetRNNUtils.cxx.

247  {
248  float dRmax;
249  const auto success = tau.detail(TauDetail::dRmax, dRmax);
250  out = dRmax;
251  return success;
252 }

◆ EMFracFixed()

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

Definition at line 337 of file TauJetRNNUtils.cxx.

337  {
338  static const SG::AuxElement::ConstAccessor<float> acc_emFracFixed("EMFracFixed");
339  float emFracFixed = acc_emFracFixed(tau);
340  out = std::max(emFracFixed, 0.0f);
341  return true;
342 }

◆ EMPOverTrkSysP()

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

Definition at line 226 of file TauJetRNNUtils.cxx.

226  {
227  float EMPOverTrkSysP;
228  const auto success = tau.detail(TauDetail::EMPOverTrkSysP, EMPOverTrkSysP);
229  out = std::log10(std::max(EMPOverTrkSysP, 1e-3f));
230  return success;
231 }

◆ etHotShotWinOverPtLeadTrk()

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

Definition at line 344 of file TauJetRNNUtils.cxx.

344  {
345  static const SG::AuxElement::ConstAccessor<float> acc_etHotShotWinOverPtLeadTrk("etHotShotWinOverPtLeadTrk");
346  float etHotShotWinOverPtLeadTrk = acc_etHotShotWinOverPtLeadTrk(tau);
348  out = std::log10(out);
349  return true;
350 }

◆ etOverPtLeadTrk()

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

Definition at line 199 of file TauJetRNNUtils.cxx.

199  {
200  float etOverPtLeadTrk;
201  const auto success = tau.detail(TauDetail::etOverPtLeadTrk, etOverPtLeadTrk);
202  out = std::log10(std::max(etOverPtLeadTrk, 0.1f));
203  return success;
204 }

◆ hadLeakFracFixed()

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

Definition at line 352 of file TauJetRNNUtils.cxx.

352  {
353  static const SG::AuxElement::ConstAccessor<float> acc_hadLeakFracFixed("hadLeakFracFixed");
354  float hadLeakFracFixed = acc_hadLeakFracFixed(tau);
356  return true;
357 }

◆ innerTrkAvgDist()

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

Definition at line 206 of file TauJetRNNUtils.cxx.

206  {
207  float innerTrkAvgDist;
208  const auto success = tau.detail(TauDetail::innerTrkAvgDist, innerTrkAvgDist);
210  return success;
211 }

◆ leadTrackDeltaEta()

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

Definition at line 300 of file TauJetRNNUtils.cxx.

300  {
301  static const SG::AuxElement::ConstAccessor<float> acc_absDeltaEta("TAU_ABSDELTAETA");
302  float absDeltaEta = acc_absDeltaEta(tau);
303  out = std::max(0.f, absDeltaEta);
304  return true;
305 }

◆ leadTrackDeltaPhi()

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

Definition at line 307 of file TauJetRNNUtils.cxx.

307  {
308  static const SG::AuxElement::ConstAccessor<float> acc_absDeltaPhi("TAU_ABSDELTAPHI");
309  float absDeltaPhi = acc_absDeltaPhi(tau);
310  out = std::max(0.f, absDeltaPhi);
311  return true;
312 }

◆ leadTrackProbNNorHT()

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

Definition at line 314 of file TauJetRNNUtils.cxx.

314  {
315  auto tracks = tau.allTracks();
316 
317  // Sort tracks in descending pt order
318  if (!tracks.empty()) {
319  auto cmp_pt = [](const xAOD::TauTrack *lhs, const xAOD::TauTrack *rhs) {
320  return lhs->pt() > rhs->pt();
321  };
322  std::sort(tracks.begin(), tracks.end(), cmp_pt);
323 
324  const xAOD::TauTrack* tauLeadTrack = tracks.at(0);
325  const xAOD::TrackParticle* xTrackParticle = tauLeadTrack->track();
327  static const SG::AuxElement::ConstAccessor<float> acc_eProbabilityNN("eProbabilityNN");
328  float eProbabilityNN = acc_eProbabilityNN(*xTrackParticle);
329  out = (tauLeadTrack->pt()>2000.) ? eProbabilityNN : eProbabilityHT;
330  }
331  else {
332  out = 0.;
333  }
334  return true;
335 }

◆ massTrkSys()

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

Definition at line 261 of file TauJetRNNUtils.cxx.

261  {
262  float massTrkSys;
263  const auto success = tau.detail(TauDetail::massTrkSys, massTrkSys);
264  out = std::log10(std::max(massTrkSys, 140.0f));
265  return success;
266 }

◆ mEflowApprox()

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

Definition at line 240 of file TauJetRNNUtils.cxx.

240  {
241  float mEflowApprox;
242  const auto success = tau.detail(TauDetail::mEflowApprox, mEflowApprox);
243  out = std::log10(std::max(mEflowApprox, 140.0f));
244  return success;
245 }

◆ PSFrac()

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

Definition at line 359 of file TauJetRNNUtils.cxx.

359  {
360  float PSFrac;
361  const auto success = tau.detail(TauDetail::PSSFraction, PSFrac);
362  out = std::max(0.f,PSFrac);
363  return success;
364 }

◆ pt()

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

Definition at line 268 of file TauJetRNNUtils.cxx.

268  {
269  out = std::log10(std::min(tau.pt() / GeV, 100.0));
270  return true;
271 }

◆ pt_tau_log()

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

Definition at line 273 of file TauJetRNNUtils.cxx.

273  {
274  out = std::log10(std::max(tau.pt() / GeV, 1e-6));
275  return true;
276 }

◆ ptDetectorAxis()

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

Definition at line 278 of file TauJetRNNUtils.cxx.

278  {
279  out = std::log10(std::min(tau.ptDetectorAxis() / GeV, 100.0));
280  return true;
281 }

◆ ptIntermediateAxis()

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

Definition at line 283 of file TauJetRNNUtils.cxx.

283  {
284  out = std::log10(std::min(tau.ptIntermediateAxis() /GeV, 100.0));
285  return true;
286 }

◆ ptJetSeed_log()

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

Definition at line 288 of file TauJetRNNUtils.cxx.

288  {
289  out = std::log10(std::max(tau.ptJetSeed(), 1e-3));
290  return true;
291 }

◆ ptRatioEflowApprox()

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

Definition at line 233 of file TauJetRNNUtils.cxx.

233  {
234  float ptRatioEflowApprox;
235  const auto success = tau.detail(TauDetail::ptRatioEflowApprox, ptRatioEflowApprox);
237  return success;
238 }

◆ SumPtTrkFrac()

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

Definition at line 219 of file TauJetRNNUtils.cxx.

219  {
220  float SumPtTrkFrac;
221  const auto success = tau.detail(TauDetail::SumPtTrkFrac, SumPtTrkFrac);
222  out = SumPtTrkFrac;
223  return success;
224 }

◆ trFlightPathSig()

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

Definition at line 254 of file TauJetRNNUtils.cxx.

254  {
255  float trFlightPathSig;
256  const auto success = tau.detail(TauDetail::trFlightPathSig, trFlightPathSig);
257  out = std::log10(std::max(trFlightPathSig, 0.01f));
258  return success;
259 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TauJetRNNUtils::Variables::dRmax
bool dRmax(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:247
TauJetRNNUtils::Variables::trFlightPathSig
bool trFlightPathSig(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:254
max
#define max(a, b)
Definition: cfImp.cxx:41
xAOD::TauTrack_v1::d0SigTJVA
float d0SigTJVA() const
Definition: TauTrack_v1.cxx:129
TauJetRNNUtils::Variables::SumPtTrkFrac
bool SumPtTrkFrac(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:219
xAOD::TrackParticle_v1::summaryValue
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
Definition: TrackParticle_v1.cxx:736
TauJetRNNUtils::Variables::ClustersMeanCenterLambda
bool ClustersMeanCenterLambda(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:366
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
TauJetRNNUtils::Variables::EMPOverTrkSysP
bool EMPOverTrkSysP(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:226
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
xAOD::TauJet_v3::ptDetectorAxis
double ptDetectorAxis() const
TauJetRNNUtils::Variables::massTrkSys
bool massTrkSys(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:261
TauJetRNNUtils::Variables::Track::eProbabilityNN
bool eProbabilityNN(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
Definition: TauJetRNNUtils.cxx:511
TauJetRNNUtils::Variables::ClustersMeanEMProbability
bool ClustersMeanEMProbability(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:373
xAOD::TauJetParameters::ipSigLeadTrk
@ ipSigLeadTrk
Definition: TauDefs.h:160
xAOD::TauJet_v3::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
TauJetRNNUtils::Variables::mEflowApprox
bool mEflowApprox(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:240
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
TauJetRNNUtils::Variables::ClustersMeanPresamplerFrac
bool ClustersMeanPresamplerFrac(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:387
hist_file_dump.f
f
Definition: hist_file_dump.py:135
TauJetRNNUtils::Variables::ptRatioEflowApprox
bool ptRatioEflowApprox(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:233
TauJetRNNUtils::Variables::ClustersMeanFirstEngDens
bool ClustersMeanFirstEngDens(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:380
TauJetRNNUtils::Variables::etOverPtLeadTrk
bool etOverPtLeadTrk(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:199
min
#define min(a, b)
Definition: cfImp.cxx:40
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.
TauJetRNNUtils::Variables::etHotShotWinOverPtLeadTrk
bool etHotShotWinOverPtLeadTrk(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:344
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
TauJetRNNUtils::Variables::PSFrac
bool PSFrac(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:359
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
TauJetRNNUtils::Variables::innerTrkAvgDist
bool innerTrkAvgDist(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:206
xAOD::TauJet_v3::ptIntermediateAxis
double ptIntermediateAxis() const
xAOD::TauJetParameters::PSSFraction
@ PSSFraction
Definition: TauDefs.h:277
TauJetRNNUtils::Variables::hadLeakFracFixed
bool hadLeakFracFixed(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:352
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
TauJetRNNUtils::Variables::centFrac
bool centFrac(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:192
TauJetRNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:394
GeV
#define GeV
Definition: TauJetRNNUtils.cxx:8