Commit cf4dd8d2 authored by Joerg Stelzer's avatar Joerg Stelzer Committed by Graeme Stewart
Browse files

HLTPrescaleSetCollecion: remove debug output (TrigConfStorage-03-00-47)

parent 8a1c1cfe
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_ConfigurationCheck
#define TrigConf_ConfigurationCheck
#include <vector>
#include "TrigConfHLTData/HLTFrame.h"
#include "TrigConfL1Data/CTPConfig.h"
namespace TrigConf {
class TrigConfTest {
public:
typedef std::vector<std::string> Exc_t;
enum Severity { INFO, WARNING, ERROR };
TrigConfTest(const std::string& name, const std::string& description="", Severity s = ERROR );
virtual ~TrigConfTest() {}
std::string name() const { return m_name; } //!< test name
void enable(bool b) { m_enabled = b; }
bool enabled() const { return m_enabled; }
bool code() const; //!< if check severity is ERROR and test failed returns true, in all other cases false
std::string severity() const;
void run( const Exc_t& exceptions ); //!< runs the test if is enabled
bool status() const; //!< returns true is test is disabled or enabled and passed
std::string description() const { return m_description; } //!< detailed explanation of the test
std::string error() const { return m_error; } //!< detailed explanation of the problem
void setCTP(TrigConf::CTPConfig* ctp) { m_ctp = ctp; }
void setHLT(TrigConf::HLTFrame* hlt) { m_hlt = hlt; }
protected:
virtual bool isok() const;
virtual void execute(const Exc_t& exceptions) = 0;
TrigConf::CTPConfig* m_ctp;
TrigConf::HLTFrame* m_hlt;
std::string m_error; //!< error description if any
private:
std::string m_name;
std::string m_description; //!< error description if any
bool m_enabled;
Severity m_severity; //!< test importance
};
class ConfigurationCheck {
public:
ConfigurationCheck(TrigConf::CTPConfig* ctp, TrigConf::HLTFrame* hlt);
~ConfigurationCheck();
std::vector<TrigConfTest*>& tests() { return m_tests; } //!< test accessor
private:
std::vector<TrigConfTest*> m_tests; //!< all test collection
};
} // EOF NS
/////////////////////////////////////////////////////////////////////////////
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_DBLoader
#define TrigConf_DBLoader
#include "TrigConfStorage/StorageMgr.h"
#include "TrigConfStorage/ILoader.h"
#include "RelationalAccess/ISession.h"
#include "TrigConfBase/TrigConfMessaging.h"
namespace TrigConf {
/**@brief Base class for loaders of configurations from the TriggerDB*/
class DBLoader : public TrigConfMessaging,
virtual public ILoader
{
public:
/**@brief constructor
*
* @param sm reference to storage manager
*
* @param session reference to the database session
*/
explicit DBLoader( StorageMgr& sm, coral::ISession& session );
explicit DBLoader( const std::string& name, StorageMgr& sm, coral::ISession& session );
/**@brief destructor*/
virtual ~DBLoader(){};
/**@brief access to output stream*/
//std::ostream & msg() { return m_storageMgr.msg(); }
virtual void setLevel(MSGTC::Level lvl);
/** @brief start session if not already active */
void startSession();
/** @brief commit session if not already done */
void commitSession();
/** @brief get l1 master from super master */
bool loadL1MasterKey(int SuperMasterKey, int& Lvl1MasterKey);
/** @brief get l1 menu id from super master */
bool loadL1MenuKey(int SuperMasterKey, int& Lvl1MenuKey);
unsigned int triggerDBSchemaVersion() { if(s_triggerDBSchemaVersion==0) loadSchemaVersion(); return s_triggerDBSchemaVersion; }
virtual int verbose() const { return m_verbose; }
virtual void setVerbose(int v) { m_verbose=v; }
private:
int m_verbose;
public:
typedef enum {ALL, CTP, CTPOnl, HLT, COOLL1, COOLHLT, L1Simu} ENV;
static ENV getEnv() { return m_env; }
static void setEnv(ENV env) { m_env = env; }
protected:
StorageMgr& m_storageMgr; ///< reference to the storage manager
coral::ISession& m_session; ///< CORAL interface to database session
bool m_sessionOwner; ///< remember if the loader started the session in the first place
static unsigned int s_triggerDBSchemaVersion; ///< the version of the TriggerDB schema
private:
void loadSchemaVersion();
private:
static ENV m_env;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_IBunchGroupLoader
#define TrigConf_IBunchGroupLoader
#include "TrigConfStorage/ILoader.h"
#include "TrigConfL1Data/BunchGroup.h"
namespace TrigConf {
class IBunchGroupLoader : virtual public ILoader {
public:
virtual ~IBunchGroupLoader() {};
virtual bool load( BunchGroup& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_IBunchGroupSetLoader
#define TrigConf_IBunchGroupSetLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class BunchGroupSet;
class IBunchGroupSetLoader : virtual public ILoader {
public:
virtual ~IBunchGroupSetLoader() {};
virtual bool load( BunchGroupSet& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_ICTPConfigLoader
#define TrigConf_ICTPConfigLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class CTPConfig;
class ICTPConfigLoader : virtual public ILoader {
public:
virtual ~ICTPConfigLoader() {};
virtual bool load( CTPConfig& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_ICTPFilesLoader
#define TrigConf_ICTPFilesLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class CTPFiles;
class ICTPFilesLoader : virtual public ILoader {
public:
virtual ~ICTPFilesLoader() {};
virtual bool load( CTPFiles& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_ICaloInfoLoader
#define TrigConf_ICaloInfoLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class CaloInfo;
class ICaloInfoLoader : virtual public ILoader {
public:
virtual ~ICaloInfoLoader() {};
virtual bool load( CaloInfo& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_ICaloJetInputLoader
#define TrigConf_ICaloJetInputLoader
#include "TrigConfStorage/ILoader.h"
#include "TrigConfL1Data/CaloJetInput.h"
namespace TrigConf {
class ICaloJetInputLoader : virtual public ILoader {
public:
virtual ~ICaloJetInputLoader() {};
virtual bool load( CaloJetInput& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_ICaloSinCosLoader
#define TrigConf_ICaloSinCosLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class CaloSinCos;
class ICaloSinCosLoader : virtual public ILoader {
public:
virtual ~ICaloSinCosLoader() {};
virtual bool load( CaloSinCos& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_IDeadTimeLoader
#define TrigConf_IDeadTimeLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class DeadTime;
class IDeadTimeLoader : virtual public ILoader {
public:
virtual ~IDeadTimeLoader() {};
virtual bool load( DeadTime& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_IHLTFrameLoader
#define TrigConf_IHLTFrameLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class HLTFrame;
class IHLTFrameLoader : virtual public ILoader {
public:
virtual ~IHLTFrameLoader() {};
virtual bool load( HLTFrame& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_IHLTPrescaleSetCollectionLoader
#define TrigConf_IHLTPrescaleSetCollectionLoader
#include "TrigConfStorage/ILoader.h"
#include <sys/types.h>
namespace TrigConf {
class HLTPrescaleSetCollection;
class IHLTPrescaleSetCollectionLoader : virtual public ILoader {
public:
virtual ~IHLTPrescaleSetCollectionLoader() {};
virtual bool load( HLTPrescaleSetCollection& hltPS, uint requestcounter, const std::string& partition) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_IHLTPrescaleSetLoader
#define TrigConf_IHLTPrescaleSetLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class HLTPrescaleSet;
class IHLTPrescaleSetLoader : virtual public ILoader {
public:
virtual ~IHLTPrescaleSetLoader(){};
virtual bool load(HLTPrescaleSet& hltpss) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////
//
//NAME: IHLTFrameLoader.h
//PACKAGE: TrigConfStorage
//
//AUTHOR: J.Haller (CERN) Johannes.Haller@cern.ch
//CREATED: 31. Oct. 2005
//
//PURPOSE:
//
//
//////////////////////////////////////////////////////////////////////
#ifndef TrigConf_IJobOptionTableLoader
#define TrigConf_IJobOptionTableLoader
#include "TrigConfStorage/ILoader.h"
namespace TrigConf {
class JobOptionTable;
class IJobOptionTableLoader : virtual public ILoader {
public:
virtual ~IJobOptionTableLoader() {};
virtual bool load( JobOptionTable& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_IL1TopoMenuLoader
#define TrigConf_IL1TopoMenuLoader
#include "TrigConfStorage/ILoader.h"
namespace TXC {
class L1TopoMenu;
}
namespace TrigConf {
class IL1TopoMenuLoader : virtual public ILoader {
public:
virtual bool load( TXC::L1TopoMenu& data ) = 0;
};
}
#endif
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TrigConf_ILoader
#define TrigConf_ILoader
#include "TrigConfBase/MsgStream.h"
namespace TrigConf {
class TrigConfData;