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 554 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 593 of file TauJetRNNUtils.cxx.

593  {
594  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, out);
595  out = std::log10(out + 1e-6);
596  return success;
597 }

◆ CENTER_LAMBDAOverClustersMeanCenterLambda()

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

Definition at line 608 of file TauJetRNNUtils.cxx.

608  {
609  static const SG::ConstAccessor<float> acc_ClustersMeanCenterLambda("ClustersMeanCenterLambda");
610  float ClustersMeanCenterLambda = acc_ClustersMeanCenterLambda(tau);
611  double centerLambda(0);
612  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, centerLambda);
613  if (ClustersMeanCenterLambda == 0.){
614  out = 250.;
615  }else {
616  out = centerLambda/ClustersMeanCenterLambda;
617  }
618 
619  out = std::min(out, 250.);
620 
621  return success;
622 }

◆ dEta()

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

Definition at line 571 of file TauJetRNNUtils.cxx.

571  {
572  out = cluster.eta() - tau.eta();
573  return true;
574 }

◆ dPhi()

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

Definition at line 576 of file TauJetRNNUtils.cxx.

576  {
577  out = cluster.p4().DeltaPhi(tau.p4());
578  return true;
579 }

◆ et_log()

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

Definition at line 556 of file TauJetRNNUtils.cxx.

556  {
557  out = std::log10(cluster.p4().Et());
558  return true;
559 }

◆ FirstEngDensOverClustersMeanFirstEngDens()

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

Definition at line 625 of file TauJetRNNUtils.cxx.

625  {
626  // the ClustersMeanFirstEngDens is the log10 of the energy weighted average of the First_ENG_DENS
627  // divided by ETot to make it dimension-less,
628  // so we need to evaluate the difference of log10(clusterFirstEngDens/clusterTotalEnergy) and the ClustersMeanFirstEngDens
629  double clusterFirstEngDens = 0.0;
630  bool status = cluster.clust().retrieveMoment(MomentType::FIRST_ENG_DENS, clusterFirstEngDens);
631  if (clusterFirstEngDens < 1e-6) clusterFirstEngDens = 1e-6;
632 
633  static const SG::ConstAccessor<float> acc_ClusterTotalEnergy("ClusterTotalEnergy");
634  float clusterTotalEnergy = acc_ClusterTotalEnergy(tau);
635  if (clusterTotalEnergy < 1e-6) clusterTotalEnergy = 1e-6;
636 
637  static const SG::ConstAccessor<float> acc_ClustersMeanFirstEngDens("ClustersMeanFirstEngDens");
638  float clustersMeanFirstEngDens = acc_ClustersMeanFirstEngDens(tau);
639 
640  out = std::log10(clusterFirstEngDens/clusterTotalEnergy) - clustersMeanFirstEngDens;
641 
642  return status;
643 }

◆ pt_jetseed_log()

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

Definition at line 566 of file TauJetRNNUtils.cxx.

566  {
567  out = std::log10(tau.ptJetSeed());
568  return true;
569 }

◆ pt_tau_log()

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

Definition at line 561 of file TauJetRNNUtils.cxx.

561  {
562  out = std::log10(std::max(tau.pt(), 1e-6));
563  return true;
564 }

◆ SECOND_LAMBDA()

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

Definition at line 587 of file TauJetRNNUtils.cxx.

587  {
588  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, out);
589  out = std::log10(out + 0.1);
590  return success;
591 }

◆ SECOND_LAMBDAOverClustersMeanSecondLambda()

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

Definition at line 599 of file TauJetRNNUtils.cxx.

599  {
600  static const SG::ConstAccessor<float> acc_ClustersMeanSecondLambda("ClustersMeanSecondLambda");
601  float ClustersMeanSecondLambda = acc_ClustersMeanSecondLambda(tau);
602  double secondLambda(0);
603  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, secondLambda);
604  out = (ClustersMeanSecondLambda != 0.) ? secondLambda/ClustersMeanSecondLambda : 0.;
605  return success;
606 }

◆ SECOND_R()

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

Definition at line 581 of file TauJetRNNUtils.cxx.

581  {
582  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_R, out);
583  out = std::log10(out + 0.1);
584  return success;
585 }
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:366
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
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:593
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:738
TauJetRNNUtils::Variables::Cluster::SECOND_LAMBDA
bool SECOND_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:587
TauJetRNNUtils::Variables::Cluster::SECOND_R
bool SECOND_R(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:581
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:902
merge.status
status
Definition: merge.py:17
TauJetRNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:394