ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfStorage
src
LutCamLoader.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TrigConf_LutCamLoader
6
#define TrigConf_LutCamLoader
7
8
#include <string>
9
#include <sstream>
10
#include <iostream>
11
12
#include "
TrigConfStorage/ILutCamLoader.h
"
13
#include "
TrigConfStorage/DBLoader.h
"
14
15
namespace
TrigConf
{
16
17
class
LutCamLoader
:
virtual
public
ILutCamLoader
,
public
DBLoader
{
18
public
:
19
20
LutCamLoader
(
StorageMgr
& sm, coral::ISessionProxy& session) :
DBLoader
(sm, session) {}
21
virtual
~LutCamLoader
()
override
=
default
;
22
23
virtual
bool
load
(
LutCam
& data)
override
;
24
25
private
:
26
27
// template function to convert strings to integral data types
28
template
<
class
T>
29
bool
convert_hex_string
(T& t,
const
std::string& s)
30
{
31
std::istringstream iss(s);
32
return
!(iss >> std::hex >> t).fail();
33
}
34
35
};
36
}
37
38
#endif
DBLoader.h
ILutCamLoader.h
TrigConf::DBLoader::DBLoader
DBLoader(StorageMgr &sm, coral::ISessionProxy &session)
constructor
Definition
DBLoader.cxx:31
TrigConf::ILutCamLoader
Definition
ILutCamLoader.h:13
TrigConf::LutCamLoader::LutCamLoader
LutCamLoader(StorageMgr &sm, coral::ISessionProxy &session)
Definition
LutCamLoader.h:20
TrigConf::LutCamLoader::load
virtual bool load(LutCam &data) override
Definition
LutCamLoader.cxx:36
TrigConf::LutCamLoader::~LutCamLoader
virtual ~LutCamLoader() override=default
TrigConf::LutCamLoader::convert_hex_string
bool convert_hex_string(T &t, const std::string &s)
Definition
LutCamLoader.h:29
TrigConf::LutCam
Definition
LutCam.h:16
TrigConf::StorageMgr
Database Storage Manager, controls the database session and the different loader classes for DB acces...
Definition
StorageMgr.h:23
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
IDPerfMonZmumu.h:57
Generated on
for ATLAS Offline Software by
1.17.0