ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15namespace 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
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
DBLoader(StorageMgr &sm, coral::ISessionProxy &session)
constructor
Definition DBLoader.cxx:30
LutCamLoader(StorageMgr &sm, coral::ISessionProxy &session)
virtual bool load(LutCam &data) override
virtual ~LutCamLoader() override=default
bool convert_hex_string(T &t, const std::string &s)
Database Storage Manager, controls the database session and the different loader classes for DB acces...
Definition StorageMgr.h:23
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22