ATLAS Offline Software
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 
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
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
ILutCamLoader.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
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: Config.h:22
TrigConf::DBLoader
Base class for loaders of configurations from the TriggerDB.
Definition: DBLoader.h:20
TrigConf::LutCamLoader
Definition: LutCamLoader.h:17
DBLoader.h
TrigConf::LutCamLoader::~LutCamLoader
virtual ~LutCamLoader() override=default
TrigConf::LutCamLoader::LutCamLoader
LutCamLoader(StorageMgr &sm, coral::ISessionProxy &session)
Definition: LutCamLoader.h:20
TrigConf::LutCam
Definition: LutCam.h:16
TrigConf::LutCamLoader::load
virtual bool load(LutCam &data) override
Definition: LutCamLoader.cxx:36
TrigConf::LutCamLoader::convert_hex_string
bool convert_hex_string(T &t, const std::string &s)
Definition: LutCamLoader.h:29
TrigConf::ILutCamLoader
Definition: ILutCamLoader.h:13
beamspotman.fail
def fail(message)
Definition: beamspotman.py:201