Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Typedefs | Functions
TauJetRNNUtils::Variables::Cluster Namespace Reference

Typedefs

using MomentType = xAOD::CaloCluster::MomentType
 

Functions

bool et_log (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool pt_tau_log (const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &, double &out)
 
bool pt_jetseed_log (const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &, double &out)
 
bool dEta (const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool dPhi (const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool SECOND_R (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool SECOND_LAMBDA (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool CENTER_LAMBDA (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool SECOND_LAMBDAOverClustersMeanSecondLambda (const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool CENTER_LAMBDAOverClustersMeanCenterLambda (const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool FirstEngDensOverClustersMeanFirstEngDens (const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 

Typedef Documentation

◆ MomentType

Definition at line 506 of file TauJetRNNUtils.cxx.

Function Documentation

◆ CENTER_LAMBDA()

bool TauJetRNNUtils::Variables::Cluster::CENTER_LAMBDA ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 545 of file TauJetRNNUtils.cxx.

545  {
546  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, out);
547  out = std::log10(out + 1e-6);
548  return success;
549 }

◆ CENTER_LAMBDAOverClustersMeanCenterLambda()

bool TauJetRNNUtils::Variables::Cluster::CENTER_LAMBDAOverClustersMeanCenterLambda ( const xAOD::TauJet tau,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 560 of file TauJetRNNUtils.cxx.

560  {
561  static const SG::ConstAccessor<float> acc_ClustersMeanCenterLambda("ClustersMeanCenterLambda");
562  float ClustersMeanCenterLambda = acc_ClustersMeanCenterLambda(tau);
563  double centerLambda(0);
564  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, centerLambda);
565  if (ClustersMeanCenterLambda == 0.){
566  out = 250.;
567  }else {
568  out = centerLambda/ClustersMeanCenterLambda;
569  }
570 
571  out = std::min(out, 250.);
572 
573  return success;
574 }

◆ dEta()

bool TauJetRNNUtils::Variables::Cluster::dEta ( const xAOD::TauJet tau,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 523 of file TauJetRNNUtils.cxx.

523  {
524  out = cluster.eta() - tau.eta();
525  return true;
526 }

◆ dPhi()

bool TauJetRNNUtils::Variables::Cluster::dPhi ( const xAOD::TauJet tau,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 528 of file TauJetRNNUtils.cxx.

528  {
529  out = cluster.p4().DeltaPhi(tau.p4());
530  return true;
531 }

◆ et_log()

bool TauJetRNNUtils::Variables::Cluster::et_log ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 508 of file TauJetRNNUtils.cxx.

508  {
509  out = std::log10(cluster.p4().Et());
510  return true;
511 }

◆ FirstEngDensOverClustersMeanFirstEngDens()

bool TauJetRNNUtils::Variables::Cluster::FirstEngDensOverClustersMeanFirstEngDens ( const xAOD::TauJet tau,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 577 of file TauJetRNNUtils.cxx.

577  {
578  // the ClustersMeanFirstEngDens is the log10 of the energy weighted average of the First_ENG_DENS
579  // divided by ETot to make it dimension-less,
580  // so we need to evaluate the difference of log10(clusterFirstEngDens/clusterTotalEnergy) and the ClustersMeanFirstEngDens
581  double clusterFirstEngDens = 0.0;
582  bool status = cluster.clust().retrieveMoment(MomentType::FIRST_ENG_DENS, clusterFirstEngDens);
583  if (clusterFirstEngDens < 1e-6) clusterFirstEngDens = 1e-6;
584 
585  static const SG::ConstAccessor<float> acc_ClusterTotalEnergy("ClusterTotalEnergy");
586  float clusterTotalEnergy = acc_ClusterTotalEnergy(tau);
587  if (clusterTotalEnergy < 1e-6) clusterTotalEnergy = 1e-6;
588 
589  static const SG::ConstAccessor<float> acc_ClustersMeanFirstEngDens("ClustersMeanFirstEngDens");
590  float clustersMeanFirstEngDens = acc_ClustersMeanFirstEngDens(tau);
591 
592  out = std::log10(clusterFirstEngDens/clusterTotalEnergy) - clustersMeanFirstEngDens;
593 
594  return status;
595 }

◆ pt_jetseed_log()

bool TauJetRNNUtils::Variables::Cluster::pt_jetseed_log ( const xAOD::TauJet tau,
const xAOD::CaloVertexedTopoCluster ,
double &  out 
)

Definition at line 518 of file TauJetRNNUtils.cxx.

518  {
519  out = std::log10(tau.ptJetSeed());
520  return true;
521 }

◆ pt_tau_log()

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

Definition at line 513 of file TauJetRNNUtils.cxx.

513  {
514  out = std::log10(std::max(tau.pt(), 1e-6));
515  return true;
516 }

◆ SECOND_LAMBDA()

bool TauJetRNNUtils::Variables::Cluster::SECOND_LAMBDA ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 539 of file TauJetRNNUtils.cxx.

539  {
540  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, out);
541  out = std::log10(out + 0.1);
542  return success;
543 }

◆ SECOND_LAMBDAOverClustersMeanSecondLambda()

bool TauJetRNNUtils::Variables::Cluster::SECOND_LAMBDAOverClustersMeanSecondLambda ( const xAOD::TauJet tau,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 551 of file TauJetRNNUtils.cxx.

551  {
552  static const SG::ConstAccessor<float> acc_ClustersMeanSecondLambda("ClustersMeanSecondLambda");
553  float ClustersMeanSecondLambda = acc_ClustersMeanSecondLambda(tau);
554  double secondLambda(0);
555  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, secondLambda);
556  out = (ClustersMeanSecondLambda != 0.) ? secondLambda/ClustersMeanSecondLambda : 0.;
557  return success;
558 }

◆ SECOND_R()

bool TauJetRNNUtils::Variables::Cluster::SECOND_R ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 533 of file TauJetRNNUtils.cxx.

533  {
534  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_R, out);
535  out = std::log10(out + 0.1);
536  return success;
537 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
xAOD::TauJet_v3::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
TauJetRNNUtils::Variables::ClustersMeanCenterLambda
bool ClustersMeanCenterLambda(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:355
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
SG::ConstAccessor< float >
xAOD::TauJet_v3::ptJetSeed
double ptJetSeed() const
TauJetRNNUtils::Variables::Cluster::CENTER_LAMBDA
bool CENTER_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:545
xAOD::TauJet_v3::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
columnar::ContainerId::cluster
@ cluster
TauJetRNNUtils::Variables::Cluster::SECOND_LAMBDA
bool SECOND_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:539
TauJetRNNUtils::Variables::Cluster::SECOND_R
bool SECOND_R(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:533
xAOD::TauJet_v3::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: TauJet_v3.cxx:97
TauGNNUtils::Variables::Cluster::FIRST_ENG_DENS
bool FIRST_ENG_DENS(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:912
merge.status
status
Definition: merge.py:17
TauJetRNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:383