ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfStorage
TrigConfStorage
DBLoader.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TrigConf_DBLoader
6
#define TrigConf_DBLoader
7
8
9
#include "
TrigConfBase/TrigConfMessaging.h
"
10
#include "
TrigConfStorage/ILoader.h
"
11
#include "
TrigConfStorage/StorageMgr.h
"
12
#include "RelationalAccess/ISessionProxy.h"
13
14
#include <tuple>
15
#include <string>
16
17
namespace
TrigConf
{
18
20
class
DBLoader
:
public
TrigConfMessaging
,
21
virtual
public
ILoader
22
{
23
public
:
24
31
explicit
DBLoader
(
StorageMgr
& sm, coral::ISessionProxy& session );
32
33
explicit
DBLoader
(
const
std::string&
name
,
StorageMgr
& sm, coral::ISessionProxy& session );
34
36
virtual
~DBLoader
()
override
=
default
;
37
38
virtual
void
setLevel
(
MSGTC::Level
lvl)
override
;
39
virtual
MSGTC::Level
outputLevel
()
const override
{
return
msg
().
level
(); }
40
41
43
void
startSession
();
44
46
void
commitSession
();
47
49
bool
loadL1MasterKey
(
int
SuperMasterKey,
int
& Lvl1MasterKey);
50
52
bool
loadL1MenuKey
(
int
SuperMasterKey,
int
& Lvl1MenuKey);
53
54
unsigned
int
triggerDBSchemaVersion
();
55
56
virtual
int
verbose
()
const override
{
return
m_verbose
; }
57
virtual
void
setVerbose
(
int
v)
override
{
m_verbose
=v; }
58
59
bool
isRun1
() {
return
!
isRun2
(); }
60
bool
isRun2
();
61
62
private
:
63
int
m_verbose
{1};
64
65
protected
:
66
StorageMgr
&
m_storageMgr
;
67
coral::ISessionProxy&
m_session
;
68
bool
m_sessionOwner
{
false
};
69
private
:
71
std::tuple<unsigned int,unsigned int>
loadSchemaVersion
()
const
;
72
};
73
74
}
75
76
#endif
77
ILoader.h
StorageMgr.h
TrigConfMessaging.h
Messaging base class for TrigConf code shared with Lvl1 ( AthMessaging).
TrigConf::DBLoader::verbose
virtual int verbose() const override
Definition
DBLoader.h:56
TrigConf::DBLoader::loadL1MasterKey
bool loadL1MasterKey(int SuperMasterKey, int &Lvl1MasterKey)
get l1 master from super master
Definition
DBLoader.cxx:128
TrigConf::DBLoader::m_storageMgr
StorageMgr & m_storageMgr
reference to the storage manager
Definition
DBLoader.h:66
TrigConf::DBLoader::DBLoader
DBLoader(StorageMgr &sm, coral::ISessionProxy &session)
constructor
Definition
DBLoader.cxx:31
TrigConf::DBLoader::setVerbose
virtual void setVerbose(int v) override
Definition
DBLoader.h:57
TrigConf::DBLoader::m_verbose
int m_verbose
Definition
DBLoader.h:63
TrigConf::DBLoader::outputLevel
virtual MSGTC::Level outputLevel() const override
Definition
DBLoader.h:39
TrigConf::DBLoader::commitSession
void commitSession()
commit session if not already done
Definition
DBLoader.cxx:45
TrigConf::DBLoader::m_sessionOwner
bool m_sessionOwner
remember if the loader started the session in the first place
Definition
DBLoader.h:68
TrigConf::DBLoader::setLevel
virtual void setLevel(MSGTC::Level lvl) override
Load the configuration data from the configuration source.
Definition
DBLoader.cxx:60
TrigConf::DBLoader::m_session
coral::ISessionProxy & m_session
CORAL interface to database session.
Definition
DBLoader.h:67
TrigConf::DBLoader::isRun1
bool isRun1()
Definition
DBLoader.h:59
TrigConf::DBLoader::triggerDBSchemaVersion
unsigned int triggerDBSchemaVersion()
Definition
DBLoader.cxx:76
TrigConf::DBLoader::~DBLoader
virtual ~DBLoader() override=default
destructor
TrigConf::DBLoader::loadSchemaVersion
std::tuple< unsigned int, unsigned int > loadSchemaVersion() const
get DB schema version and run number
Definition
DBLoader.cxx:81
TrigConf::DBLoader::isRun2
bool isRun2()
Definition
DBLoader.cxx:54
TrigConf::DBLoader::startSession
void startSession()
start session if not already active
Definition
DBLoader.cxx:36
TrigConf::DBLoader::loadL1MenuKey
bool loadL1MenuKey(int SuperMasterKey, int &Lvl1MenuKey)
get l1 menu id from super master
Definition
DBLoader.cxx:167
TrigConf::ILoader
Interface class for loaders.
Definition
ILoader.h:17
TrigConf::MsgStreamTC::level
MSGTC::Level level()
Return message level of stream.
Definition
Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:53
TrigConf::StorageMgr
Database Storage Manager, controls the database session and the different loader classes for DB acces...
Definition
StorageMgr.h:23
TrigConf::TrigConfMessaging::msg
MsgStreamTC & msg() const
The standard message stream.
Definition
TrigConfMessaging.h:86
TrigConf::TrigConfMessaging::TrigConfMessaging
TrigConfMessaging(const std::string &name)
Constructor with parameters.
Definition
TrigConfMessaging.h:34
TrigConf::MSGTC::Level
Level
Definition
Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
Config.h:22
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0