Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Typedefs | Functions
TauGNNUtils::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)
 
bool e (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool et (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool FIRST_ENG_DENS (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool EM_PROBABILITY (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 
bool CENTER_MAG (const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
 

Typedef Documentation

◆ MomentType

Definition at line 813 of file TauGNNUtils.cxx.

Function Documentation

◆ CENTER_LAMBDA()

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

Definition at line 850 of file TauGNNUtils.cxx.

850  {
851  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, out);
852  return success;
853 }

◆ CENTER_LAMBDAOverClustersMeanCenterLambda()

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

Definition at line 864 of file TauGNNUtils.cxx.

864  {
865  static const SG::ConstAccessor<float> acc_ClustersMeanCenterLambda("ClustersMeanCenterLambda");
866  float ClustersMeanCenterLambda = acc_ClustersMeanCenterLambda(tau);
867  double centerLambda(0);
868  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, centerLambda);
869  if (ClustersMeanCenterLambda == 0.){
870  out = 250.;
871  }else {
872  out = centerLambda/ClustersMeanCenterLambda;
873  }
874 
875  out = std::min(out, 250.);
876 
877  return success;
878 }

◆ CENTER_MAG()

bool TauGNNUtils::Variables::Cluster::CENTER_MAG ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 926 of file TauGNNUtils.cxx.

926  {
927  double clusterCenterMag = 0.0;
928  bool status = cluster.clust().retrieveMoment(MomentType::CENTER_MAG, clusterCenterMag);
929  out = clusterCenterMag;
930  return status;
931 }

◆ dEta()

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

Definition at line 830 of file TauGNNUtils.cxx.

830  {
831  out = cluster.eta() - tau.eta();
832  return true;
833 }

◆ dPhi()

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

Definition at line 835 of file TauGNNUtils.cxx.

835  {
836  out = cluster.p4().DeltaPhi(tau.p4());
837  return true;
838 }

◆ e()

bool TauGNNUtils::Variables::Cluster::e ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 902 of file TauGNNUtils.cxx.

902  {
903  out = cluster.p4().E();
904  return true;
905 }

◆ EM_PROBABILITY()

bool TauGNNUtils::Variables::Cluster::EM_PROBABILITY ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 919 of file TauGNNUtils.cxx.

919  {
920  double clusterEMprob = 0.0;
921  bool status = cluster.clust().retrieveMoment(MomentType::EM_PROBABILITY, clusterEMprob);
922  out = clusterEMprob;
923  return status;
924 }

◆ et()

bool TauGNNUtils::Variables::Cluster::et ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 907 of file TauGNNUtils.cxx.

907  {
908  out = cluster.p4().Et();
909  return true;
910 }

◆ et_log()

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

Definition at line 815 of file TauGNNUtils.cxx.

815  {
816  out = std::log10(cluster.p4().Et());
817  return true;
818 }

◆ FIRST_ENG_DENS()

bool TauGNNUtils::Variables::Cluster::FIRST_ENG_DENS ( const xAOD::TauJet ,
const xAOD::CaloVertexedTopoCluster cluster,
double &  out 
)

Definition at line 912 of file TauGNNUtils.cxx.

912  {
913  double clusterFirstEngDens = 0.0;
914  bool status = cluster.clust().retrieveMoment(MomentType::FIRST_ENG_DENS, clusterFirstEngDens);
915  out = clusterFirstEngDens;
916  return status;
917 }

◆ FirstEngDensOverClustersMeanFirstEngDens()

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

Definition at line 881 of file TauGNNUtils.cxx.

881  {
882  // the ClustersMeanFirstEngDens is the log10 of the energy weighted average of the First_ENG_DENS
883  // divided by ETot to make it dimension-less,
884  // so we need to evaluate the difference of log10(clusterFirstEngDens/clusterTotalEnergy) and the ClustersMeanFirstEngDens
885  double clusterFirstEngDens = 0.0;
886  bool status = cluster.clust().retrieveMoment(MomentType::FIRST_ENG_DENS, clusterFirstEngDens);
887  if (clusterFirstEngDens < 1e-6) clusterFirstEngDens = 1e-6;
888 
889  static const SG::ConstAccessor<float> acc_ClusterTotalEnergy("ClusterTotalEnergy");
890  float clusterTotalEnergy = acc_ClusterTotalEnergy(tau);
891  if (clusterTotalEnergy < 1e-6) clusterTotalEnergy = 1e-6;
892 
893  static const SG::ConstAccessor<float> acc_ClustersMeanFirstEngDens("ClustersMeanFirstEngDens");
894  float clustersMeanFirstEngDens = acc_ClustersMeanFirstEngDens(tau);
895 
896  out = std::log10(clusterFirstEngDens/clusterTotalEnergy) - clustersMeanFirstEngDens;
897 
898  return status;
899 }

◆ pt_jetseed_log()

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

Definition at line 825 of file TauGNNUtils.cxx.

825  {
826  out = std::log10(tau.ptJetSeed());
827  return true;
828 }

◆ pt_tau_log()

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

Definition at line 820 of file TauGNNUtils.cxx.

820  {
821  out = std::log10(std::max(tau.pt(), 1e-6));
822  return true;
823 }

◆ SECOND_LAMBDA()

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

Definition at line 845 of file TauGNNUtils.cxx.

845  {
846  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, out);
847  return success;
848 }

◆ SECOND_LAMBDAOverClustersMeanSecondLambda()

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

Definition at line 855 of file TauGNNUtils.cxx.

855  {
856  static const SG::ConstAccessor<float> acc_ClustersMeanSecondLambda("ClustersMeanSecondLambda");
857  float ClustersMeanSecondLambda = acc_ClustersMeanSecondLambda(tau);
858  double secondLambda(0);
859  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, secondLambda);
860  out = (ClustersMeanSecondLambda != 0.) ? secondLambda/ClustersMeanSecondLambda : 0.;
861  return success;
862 }

◆ SECOND_R()

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

Definition at line 840 of file TauGNNUtils.cxx.

840  {
841  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_R, out);
842  return success;
843 }
TauGNNUtils::Variables::Cluster::CENTER_LAMBDA
bool CENTER_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:850
TauGNNUtils::Variables::Cluster::EM_PROBABILITY
bool EM_PROBABILITY(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:919
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
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
SG::ConstAccessor< float >
xAOD::TauJet_v3::ptJetSeed
double ptJetSeed() const
xAOD::TauJet_v3::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
columnar::ContainerId::cluster
@ cluster
TauGNNUtils::Variables::Cluster::SECOND_LAMBDA
bool SECOND_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:845
TauGNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:468
TauGNNUtils::Variables::Cluster::SECOND_R
bool SECOND_R(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:840
TauGNNUtils::Variables::Cluster::e
bool e(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:902
TauGNNUtils::Variables::Cluster::CENTER_MAG
bool CENTER_MAG(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:926
TauGNNUtils::Variables::ClustersMeanCenterLambda
bool ClustersMeanCenterLambda(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:440
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