ATLAS Offline Software
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 507 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 546 of file TauJetRNNUtils.cxx.

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

◆ CENTER_LAMBDAOverClustersMeanCenterLambda()

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

Definition at line 561 of file TauJetRNNUtils.cxx.

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

◆ dEta()

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

Definition at line 524 of file TauJetRNNUtils.cxx.

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

◆ dPhi()

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

Definition at line 529 of file TauJetRNNUtils.cxx.

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

◆ et_log()

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

Definition at line 509 of file TauJetRNNUtils.cxx.

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

◆ FirstEngDensOverClustersMeanFirstEngDens()

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

Definition at line 578 of file TauJetRNNUtils.cxx.

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

◆ pt_jetseed_log()

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

Definition at line 519 of file TauJetRNNUtils.cxx.

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

◆ pt_tau_log()

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

Definition at line 514 of file TauJetRNNUtils.cxx.

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

◆ SECOND_LAMBDA()

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

Definition at line 540 of file TauJetRNNUtils.cxx.

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

◆ SECOND_LAMBDAOverClustersMeanSecondLambda()

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

Definition at line 552 of file TauJetRNNUtils.cxx.

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

◆ SECOND_R()

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

Definition at line 534 of file TauJetRNNUtils.cxx.

534  {
535  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_R, out);
536  out = std::log10(out + 0.1);
537  return success;
538 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
xAOD::CaloVertexedClusterBase::p4
virtual FourMom_t p4() const final
The full 4-momentum of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:88
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:356
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:70
xAOD::CaloVertexedClusterBase::eta
virtual double eta() const final
The pseudorapidity ( ) of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:77
SG::ConstAccessor< float >
xAOD::CaloVertexedClusterBase::clust
const CaloCluster & clust() const
Return the cluster being proxied,.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:69
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:546
xAOD::TauJet_v3::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
xAOD::CaloCluster_v1::retrieveMoment
bool retrieveMoment(MomentType type, double &value) const
Retrieve individual moment.
Definition: CaloCluster_v1.cxx:692
TauJetRNNUtils::Variables::Cluster::SECOND_LAMBDA
bool SECOND_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:540
TauJetRNNUtils::Variables::Cluster::SECOND_R
bool SECOND_R(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:534
xAOD::TauJet_v3::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: TauJet_v3.cxx:96
TauGNNUtils::Variables::Cluster::FIRST_ENG_DENS
bool FIRST_ENG_DENS(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:913
merge.status
status
Definition: merge.py:16
TauJetRNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:384