#include <egammaMVATree.h>
Public Member Functions | |
egammaMVATreeEgamma (const std::string &name, const std::string &prefix, const std::set< std::string > &variables, bool use_layer_corrected=true) | |
void | update (const xAOD::Egamma *egamma) |
void | update (const xAOD::Egamma *egamma, const xAOD::CaloCluster *cluster) |
template<typename T > | |
const T & | get_ref (const std::string &var_name) const |
Protected Types | |
typedef std::tuple < std::string, std::function < float(const xAOD::CaloCluster &)>, float > | FloatElement |
typedef std::tuple < std::string, std::function < float(const xAOD::Egamma &)> , float > | FloatElementParticle |
Protected Member Functions | |
template<typename T > | |
const T * | get_ptr (const std::string &) const |
template<typename T , typename MAPSTRINGFUNCTION , typename CONTAINER > | |
void | search_var_and_add (const std::string &var_name, const MAPSTRINGFUNCTION &map_string_function, CONTAINER &container) |
template<typename T , typename MAPSTRINGFUNCTION , typename CONTAINER > | |
void | create_structure (const std::set< std::string > vars, const MAPSTRINGFUNCTION &map_string_function, CONTAINER &container) |
Protected Attributes | |
std::vector< FloatElement > | m_functions_float_from_calo_cluster |
std::vector< FloatElementParticle > | m_functions_float_from_particle |
Base class implementing variables defined for egamma clusters
void egammaMVATreeEgamma::update | ( | const xAOD::Egamma * | egamma | ) |
call update for every egamma object, this update the internal variables connected to the branches