7#include "GaudiKernel/MsgStream.h"
8#include "GaudiKernel/IToolSvc.h"
22 std::vector<std::string> auxvar;
25 m_auxmap.insert(std::make_pair(key,auxvar));
29 return StatusCode::SUCCESS;
34 std::vector<std::string> auxvar;
36 ATH_MSG_INFO(
"REGTEST : Aux vars for " << key <<
" ============================");
38 for(
const auto& var:auxvar){
41 ATH_MSG_INFO(
" ========================================================");
44 for(
const auto& var:auxvar){
47 ATH_MSG_INFO(
" ========================================================");
50 return StatusCode::SUCCESS;
59 const std::type_info *
type(0);
63 std::vector<std::string> auxvar =
m_auxmap.at(key);
64 std::vector<std::string> dynauxvar =
m_dynauxmap.at(key);
66 for (
auto ai: auxIds) {
68 type = reg.getType( ai );
69 std::vector<std::string>::iterator it =
find(auxvar.begin(), auxvar.end(), auxName);
70 if (it == auxvar.end()) {
71 auxvar.push_back(auxName);
73 else ATH_MSG_WARNING(
"REGTEST: Found new Auxid=" << ai <<
", Name=" << auxName <<
", type= " <<
type->name());
77 ATH_MSG_DEBUG(
"======== Aux store dynamic variables ==========");
79 for (
auto ai: dyn_auxids) {
81 type = reg.getType( ai );
82 std::vector<std::string>::iterator it =
find(dynauxvar.begin(), dynauxvar.end(), auxName);
83 if (it == dynauxvar.end()) {
84 dynauxvar.push_back(auxName);
86 else ATH_MSG_WARNING(
"REGTEST: Found new Dynamic Auxid=" << ai <<
", Name=" << auxName <<
", type= " <<
type->name());
96 StatusCode
sc = StatusCode::SUCCESS;
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
bit_t size() const
Count the number of 1 bits in the set.
Handle mappings between names and auxid_t.
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
A set of aux data identifiers.
std::map< std::string, std::vector< std::string > > m_auxmap
std::vector< std::string > m_auxList
void dumpDecorators(const xAOD::AuxContainerBase *, const std::string &)
TrigEDMAuxChecker(const std::string &name, ISvcLocator *pSvcLocator)
Adapted from code by A.Hamilton to check trigger EDM; R.Goncalo 21/11/07.
std::map< std::string, std::vector< std::string > > m_dynauxmap
Common base class for the auxiliary containers.
std::string find(const std::string &s)
return a remapped string