A closely related class that calculates the input variables.
More...
#include <TauDecayModeNNClassifier.h>
|
| static float | deltaPhi (const TLorentzVector &p4, const TLorentzVector &p4_tau) |
| static float | deltaEta (const TLorentzVector &p4, const TLorentzVector &p4_tau) |
| static float | deltaPhiECal (const TLorentzVector &p4, const std::pair< float, bool > &tau_phiTrkECal) |
| static float | deltaEtaECal (const TLorentzVector &p4, const std::pair< float, bool > &tau_etaTrkECal) |
| template<typename T> |
| static T | pfoAttr (const xAOD::PFO *pfo, const xAOD::PFODetails::PFOAttributes &attr) |
| | retrieve the PFO attributes
|
A closely related class that calculates the input variables.
Definition at line 77 of file TauDecayModeNNClassifier.h.
◆ TauDecayModeNNVariable()
| tauRecTools::TauDecayModeNNVariable::TauDecayModeNNVariable |
( |
| ) |
|
|
delete |
◆ deltaEta()
| float tauRecTools::TauDecayModeNNVariable::deltaEta |
( |
const TLorentzVector & | p4, |
|
|
const TLorentzVector & | p4_tau ) |
|
static |
◆ deltaEtaECal()
| float tauRecTools::TauDecayModeNNVariable::deltaEtaECal |
( |
const TLorentzVector & | p4, |
|
|
const std::pair< float, bool > & | tau_etaTrkECal ) |
|
static |
◆ deltaPhi()
| float tauRecTools::TauDecayModeNNVariable::deltaPhi |
( |
const TLorentzVector & | p4, |
|
|
const TLorentzVector & | p4_tau ) |
|
static |
◆ deltaPhiECal()
| float tauRecTools::TauDecayModeNNVariable::deltaPhiECal |
( |
const TLorentzVector & | p4, |
|
|
const std::pair< float, bool > & | tau_phiTrkECal ) |
|
static |
Definition at line 356 of file TauDecayModeNNClassifier.cxx.
357 {
358
359 return tau_phiTrkECal.second ? TVector2::Phi_mpi_pi(p4.Phi() - tau_phiTrkECal.first) : 0.0f;
360 }
◆ pfoAttr() [1/2]
template<typename T>
| T tauRecTools::TauDecayModeNNVariable::pfoAttr |
( |
const PFOPtr | pfo, |
|
|
const PFOAttributes & | attr ) |
Definition at line 369 of file TauDecayModeNNClassifier.cxx.
370 {
371 T val{
static_cast<T>(0)};
373 {
374 throw std::runtime_error("Can not retrieve PFO attribute! enum = " + std::to_string(static_cast<unsigned>(attr)));
375 }
377 }
bool attribute(PFODetails::PFOAttributes AttributeType, T &anAttribute) const
get a PFO Variable via enum
◆ pfoAttr() [2/2]
retrieve the PFO attributes
- Parameters
-
| pfo | a pointer to PFO object |
| attr | an attribute object |
- Exceptions
-
| std::runtime_error | if the attribute cannot be retrieved |
the template type must match the type of the attribute
◆ nClasses
| const std::size_t tauRecTools::TauDecayModeNNVariable::nClasses = 5 |
|
static |
◆ sCommonP4Vars
| const std::set< std::string > tauRecTools::TauDecayModeNNVariable::sCommonP4Vars |
|
static |
◆ sModeNames
◆ sNeutralPFOVars
| const std::set< std::string > tauRecTools::TauDecayModeNNVariable::sNeutralPFOVars |
|
static |
Initial value:= {
"FIRST_ETA", "SECOND_R_log", "DELTA_THETA", "CENTER_LAMBDA_log", "LONGITUDINAL", "ENG_FRAC_CORE",
"SECOND_ENG_DENS_log", "NPosECells_EM1", "NPosECells_EM2", "energy_EM1", "energy_EM2", "EM1CoreFrac",
"firstEtaWRTClusterPosition_EM1", "firstEtaWRTClusterPosition_EM2",
"secondEtaWRTClusterPosition_EM1_log", "secondEtaWRTClusterPosition_EM2_log"}
Definition at line 84 of file TauDecayModeNNClassifier.h.
◆ sTrackIPVars
| const std::set< std::string > tauRecTools::TauDecayModeNNVariable::sTrackIPVars |
|
static |
The documentation for this class was generated from the following files: