ATLAS Offline Software
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 803 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 840 of file TauGNNUtils.cxx.

840  {
841  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, out);
842  return success;
843 }

◆ CENTER_LAMBDAOverClustersMeanCenterLambda()

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

Definition at line 854 of file TauGNNUtils.cxx.

854  {
855  static const SG::ConstAccessor<float> acc_ClustersMeanCenterLambda("ClustersMeanCenterLambda");
856  float ClustersMeanCenterLambda = acc_ClustersMeanCenterLambda(tau);
857  double centerLambda(0);
858  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, centerLambda);
859  if (ClustersMeanCenterLambda == 0.){
860  out = 250.;
861  }else {
862  out = centerLambda/ClustersMeanCenterLambda;
863  }
864 
865  out = std::min(out, 250.);
866 
867  return success;
868 }

◆ CENTER_MAG()

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

Definition at line 916 of file TauGNNUtils.cxx.

916  {
917  double clusterCenterMag = 0.0;
918  bool status = cluster.clust().retrieveMoment(MomentType::CENTER_MAG, clusterCenterMag);
919  out = clusterCenterMag;
920  return status;
921 }

◆ dEta()

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

Definition at line 820 of file TauGNNUtils.cxx.

820  {
821  out = cluster.eta() - tau.eta();
822  return true;
823 }

◆ dPhi()

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

Definition at line 825 of file TauGNNUtils.cxx.

825  {
826  out = cluster.p4().DeltaPhi(tau.p4());
827  return true;
828 }

◆ e()

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

Definition at line 892 of file TauGNNUtils.cxx.

892  {
893  out = cluster.p4().E();
894  return true;
895 }

◆ EM_PROBABILITY()

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

Definition at line 909 of file TauGNNUtils.cxx.

909  {
910  double clusterEMprob = 0.0;
911  bool status = cluster.clust().retrieveMoment(MomentType::EM_PROBABILITY, clusterEMprob);
912  out = clusterEMprob;
913  return status;
914 }

◆ et()

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

Definition at line 897 of file TauGNNUtils.cxx.

897  {
898  out = cluster.p4().Et();
899  return true;
900 }

◆ et_log()

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

Definition at line 805 of file TauGNNUtils.cxx.

805  {
806  out = std::log10(cluster.p4().Et());
807  return true;
808 }

◆ FIRST_ENG_DENS()

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

Definition at line 902 of file TauGNNUtils.cxx.

902  {
903  double clusterFirstEngDens = 0.0;
904  bool status = cluster.clust().retrieveMoment(MomentType::FIRST_ENG_DENS, clusterFirstEngDens);
905  out = clusterFirstEngDens;
906  return status;
907 }

◆ FirstEngDensOverClustersMeanFirstEngDens()

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

Definition at line 871 of file TauGNNUtils.cxx.

871  {
872  // the ClustersMeanFirstEngDens is the log10 of the energy weighted average of the First_ENG_DENS
873  // divided by ETot to make it dimension-less,
874  // so we need to evaluate the difference of log10(clusterFirstEngDens/clusterTotalEnergy) and the ClustersMeanFirstEngDens
875  double clusterFirstEngDens = 0.0;
876  bool status = cluster.clust().retrieveMoment(MomentType::FIRST_ENG_DENS, clusterFirstEngDens);
877  if (clusterFirstEngDens < 1e-6) clusterFirstEngDens = 1e-6;
878 
879  static const SG::ConstAccessor<float> acc_ClusterTotalEnergy("ClusterTotalEnergy");
880  float clusterTotalEnergy = acc_ClusterTotalEnergy(tau);
881  if (clusterTotalEnergy < 1e-6) clusterTotalEnergy = 1e-6;
882 
883  static const SG::ConstAccessor<float> acc_ClustersMeanFirstEngDens("ClustersMeanFirstEngDens");
884  float clustersMeanFirstEngDens = acc_ClustersMeanFirstEngDens(tau);
885 
886  out = std::log10(clusterFirstEngDens/clusterTotalEnergy) - clustersMeanFirstEngDens;
887 
888  return status;
889 }

◆ pt_jetseed_log()

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

Definition at line 815 of file TauGNNUtils.cxx.

815  {
816  out = std::log10(tau.ptJetSeed());
817  return true;
818 }

◆ pt_tau_log()

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

Definition at line 810 of file TauGNNUtils.cxx.

810  {
811  out = std::log10(std::max(tau.pt(), 1e-6));
812  return true;
813 }

◆ SECOND_LAMBDA()

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

Definition at line 835 of file TauGNNUtils.cxx.

835  {
836  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, out);
837  return success;
838 }

◆ SECOND_LAMBDAOverClustersMeanSecondLambda()

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

Definition at line 845 of file TauGNNUtils.cxx.

845  {
846  static const SG::ConstAccessor<float> acc_ClustersMeanSecondLambda("ClustersMeanSecondLambda");
847  float ClustersMeanSecondLambda = acc_ClustersMeanSecondLambda(tau);
848  double secondLambda(0);
849  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, secondLambda);
850  out = (ClustersMeanSecondLambda != 0.) ? secondLambda/ClustersMeanSecondLambda : 0.;
851  return success;
852 }

◆ SECOND_R()

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

Definition at line 830 of file TauGNNUtils.cxx.

830  {
831  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_R, out);
832  return success;
833 }
TauGNNUtils::Variables::Cluster::CENTER_LAMBDA
bool CENTER_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:840
xAOD::CaloVertexedClusterBase::p4
virtual FourMom_t p4() const final
The full 4-momentum of the particle.
Definition: Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloVertexedClusterBase.h:88
TauGNNUtils::Variables::Cluster::EM_PROBABILITY
bool EM_PROBABILITY(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:909
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
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
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
TauGNNUtils::Variables::Cluster::SECOND_LAMBDA
bool SECOND_LAMBDA(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:835
TauGNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:458
TauGNNUtils::Variables::Cluster::SECOND_R
bool SECOND_R(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:830
TauGNNUtils::Variables::Cluster::e
bool e(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:892
TauGNNUtils::Variables::Cluster::CENTER_MAG
bool CENTER_MAG(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauGNNUtils.cxx:916
TauGNNUtils::Variables::ClustersMeanCenterLambda
bool ClustersMeanCenterLambda(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:430
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