Class InputVariable This is design to read any kind of xAOD::Jet or JetContext variable e.g pt, eta, phi, m ..etc The user need to initialize the class with the name of the variable and the scale.
More...
#include <InputVariable.h>
|
| | InputVariable (const std::string &name) |
| | Constructors.
|
| | InputVariable (const std::string &name, std::function< float(const xAOD::Jet &jet, const JetContext &jc)> func) |
| virtual | ~InputVariable ()=default |
| | Default destructor.
|
| float | getValue (const xAOD::Jet &jet, const JetContext &jc) const override |
| | return the value of the variable choose by the user
|
| const std::string & | getName () const |
| | This function return the name of the variable.
|
| float | getScale () const |
| | This function return the scale of the variable.
|
| void | setScale (const float scale) |
| | This function set the scale of the variable.
|
| void | setGeV () |
| | This function set the scale to GeV, assuming MeV by default.
|
| void | setMeV () |
| | This function set the scale to MeV, assuming MeV by default (it does nothing)
|
| | InputVariable (const InputVariable &)=delete |
|
| static std::unique_ptr< InputVariable > | createVariable (const std::string &name, const std::string &type, const bool isJetVar) |
| | This function specialize the variable to the one choose by the user.
|
Class InputVariable This is design to read any kind of xAOD::Jet or JetContext variable e.g pt, eta, phi, m ..etc The user need to initialize the class with the name of the variable and the scale.
Definition at line 26 of file InputVariable.h.
◆ InputVariable() [1/3]
| JetHelper::InputVariable::InputVariable |
( |
const std::string & | name | ) |
|
|
inline |
◆ InputVariable() [2/3]
| JetHelper::InputVariable::InputVariable |
( |
const std::string & | name, |
|
|
std::function< float(const xAOD::Jet &jet, const JetContext &jc)> | func ) |
◆ ~InputVariable()
| virtual JetHelper::InputVariable::~InputVariable |
( |
| ) |
|
|
virtualdefault |
◆ InputVariable() [3/3]
| JetHelper::InputVariable::InputVariable |
( |
const InputVariable & | | ) |
|
|
delete |
◆ createVariable()
| std::unique_ptr< InputVariable > JetHelper::InputVariable::createVariable |
( |
const std::string & | name, |
|
|
const std::string & | type, |
|
|
const bool | isJetVar ) |
|
static |
This function specialize the variable to the one choose by the user.
◆ getName()
| const std::string & JetHelper::InputVariable::getName |
( |
| ) |
const |
|
inline |
This function return the name of the variable.
Definition at line 54 of file InputVariable.h.
◆ getScale()
| float JetHelper::InputVariable::getScale |
( |
| ) |
const |
|
inline |
This function return the scale of the variable.
Definition at line 56 of file InputVariable.h.
◆ getValue()
| float JetHelper::InputVariable::getValue |
( |
const xAOD::Jet & | jet, |
|
|
const JetContext & | jc ) const |
|
inlinenodiscardoverridevirtual |
◆ getValue_prot()
| virtual float JetHelper::InputVariable::getValue_prot |
( |
const xAOD::Jet & | jet, |
|
|
const JetContext & | jc ) const |
|
inlinenodiscardprotectedvirtual |
◆ setGeV()
| void JetHelper::InputVariable::setGeV |
( |
| ) |
|
|
inline |
This function set the scale to GeV, assuming MeV by default.
Definition at line 60 of file InputVariable.h.
◆ setMeV()
| void JetHelper::InputVariable::setMeV |
( |
| ) |
|
|
inline |
This function set the scale to MeV, assuming MeV by default (it does nothing)
Definition at line 62 of file InputVariable.h.
◆ setScale()
| void JetHelper::InputVariable::setScale |
( |
const float | scale | ) |
|
|
inline |
This function set the scale of the variable.
Definition at line 58 of file InputVariable.h.
◆ m_customFunction
| std::function<float(const xAOD::Jet& jet, const JetContext& jc)> JetHelper::InputVariable::m_customFunction |
|
protected |
◆ m_name
| const std::string JetHelper::InputVariable::m_name |
|
protected |
◆ m_scale
| float JetHelper::InputVariable::m_scale |
|
protected |
The documentation for this class was generated from the following file: