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 537 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 576 of file TauJetRNNUtils.cxx.

576  {
577  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, out);
578  out = std::log10(out + 1e-6);
579  return success;
580 }

◆ CENTER_LAMBDAOverClustersMeanCenterLambda()

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

Definition at line 591 of file TauJetRNNUtils.cxx.

591  {
592  static const SG::ConstAccessor<float> acc_ClustersMeanCenterLambda("ClustersMeanCenterLambda");
593  float ClustersMeanCenterLambda = acc_ClustersMeanCenterLambda(tau);
594  double centerLambda(0);
595  const auto success = cluster.clust().retrieveMoment(MomentType::CENTER_LAMBDA, centerLambda);
596  if (ClustersMeanCenterLambda == 0.){
597  out = 250.;
598  }else {
599  out = centerLambda/ClustersMeanCenterLambda;
600  }
601 
602  out = std::min(out, 250.);
603 
604  return success;
605 }

◆ dEta()

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

Definition at line 554 of file TauJetRNNUtils.cxx.

554  {
555  out = cluster.eta() - tau.eta();
556  return true;
557 }

◆ dPhi()

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

Definition at line 559 of file TauJetRNNUtils.cxx.

559  {
560  out = cluster.p4().DeltaPhi(tau.p4());
561  return true;
562 }

◆ et_log()

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

Definition at line 539 of file TauJetRNNUtils.cxx.

539  {
540  out = std::log10(cluster.p4().Et());
541  return true;
542 }

◆ FirstEngDensOverClustersMeanFirstEngDens()

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

Definition at line 608 of file TauJetRNNUtils.cxx.

608  {
609  // the ClustersMeanFirstEngDens is the log10 of the energy weighted average of the First_ENG_DENS
610  // divided by ETot to make it dimension-less,
611  // so we need to evaluate the difference of log10(clusterFirstEngDens/clusterTotalEnergy) and the ClustersMeanFirstEngDens
612  double clusterFirstEngDens = 0.0;
613  bool status = cluster.clust().retrieveMoment(MomentType::FIRST_ENG_DENS, clusterFirstEngDens);
614  if (clusterFirstEngDens < 1e-6) clusterFirstEngDens = 1e-6;
615 
616  static const SG::ConstAccessor<float> acc_ClusterTotalEnergy("ClusterTotalEnergy");
617  float clusterTotalEnergy = acc_ClusterTotalEnergy(tau);
618  if (clusterTotalEnergy < 1e-6) clusterTotalEnergy = 1e-6;
619 
620  static const SG::ConstAccessor<float> acc_ClustersMeanFirstEngDens("ClustersMeanFirstEngDens");
621  float clustersMeanFirstEngDens = acc_ClustersMeanFirstEngDens(tau);
622 
623  out = std::log10(clusterFirstEngDens/clusterTotalEnergy) - clustersMeanFirstEngDens;
624 
625  return status;
626 }

◆ pt_jetseed_log()

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

Definition at line 549 of file TauJetRNNUtils.cxx.

549  {
550  out = std::log10(tau.ptJetSeed());
551  return true;
552 }

◆ pt_tau_log()

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

Definition at line 544 of file TauJetRNNUtils.cxx.

544  {
545  out = std::log10(std::max(tau.pt(), 1e-6));
546  return true;
547 }

◆ SECOND_LAMBDA()

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

Definition at line 570 of file TauJetRNNUtils.cxx.

570  {
571  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, out);
572  out = std::log10(out + 0.1);
573  return success;
574 }

◆ SECOND_LAMBDAOverClustersMeanSecondLambda()

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

Definition at line 582 of file TauJetRNNUtils.cxx.

582  {
583  static const SG::ConstAccessor<float> acc_ClustersMeanSecondLambda("ClustersMeanSecondLambda");
584  float ClustersMeanSecondLambda = acc_ClustersMeanSecondLambda(tau);
585  double secondLambda(0);
586  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_LAMBDA, secondLambda);
587  out = (ClustersMeanSecondLambda != 0.) ? secondLambda/ClustersMeanSecondLambda : 0.;
588  return success;
589 }

◆ SECOND_R()

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

Definition at line 564 of file TauJetRNNUtils.cxx.

564  {
565  const auto success = cluster.clust().retrieveMoment(MomentType::SECOND_R, out);
566  out = std::log10(out + 0.1);
567  return success;
568 }
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:379
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:576
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:570
TauGNNUtils::Variables::Cluster::FIRST_ENG_DENS
bool FIRST_ENG_DENS(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
Definition: TauGNNUtils.cxx:788
TauJetRNNUtils::Variables::Cluster::SECOND_R
bool SECOND_R(const xAOD::TauJet &, const xAOD::CaloVertexedTopoCluster &cluster, double &out)
Definition: TauJetRNNUtils.cxx:564
xAOD::TauJet_v3::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: TauJet_v3.cxx:96
merge.status
status
Definition: merge.py:16
TauJetRNNUtils::Variables::ClustersMeanSecondLambda
bool ClustersMeanSecondLambda(const xAOD::TauJet &tau, double &out)
Definition: TauJetRNNUtils.cxx:407