CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
XMLLUTLoader.h
Go to the documentation of this file.
1 #ifndef HCALConfigDBTools_XMLTools_XMLLUTLoader_h
2 #define HCALConfigDBTools_XMLTools_XMLLUTLoader_h
3 // -*- C++ -*-
4 //
5 // Package: XMLTools
6 // Class : XMLLUTLoader
7 //
16 //
17 // Original Author: Gena Kukartsev, kukarzev@fnal.gov
18 // Created: Tue Oct 23 14:30:33 CDT 2007
19 //
20 
21 // system include files
22 
23 // user include files
26 
27 // forward declarations
28 
29 class XMLLUTLoader : public XMLDOMBlock {
30 public:
33 
34  typedef struct _lutDBConfig : public XMLProcessor::DBConfig {
35  _lutDBConfig();
39  int crate;
40  } lutDBConfig;
41 
42  typedef struct _checksumsDBConfig : public XMLProcessor::DBConfig {
47  int crate;
49 
50  XMLLUTLoader();
52  std::string templateBase = "HCAL_TRIG_PRIM_LOOKUP_TABLE.XMLloader.template");
53  XMLLUTLoader(const XMLLUTLoader&) = delete; // stop default
54  const XMLLUTLoader& operator=(const XMLLUTLoader&) = delete; // stop default
55  ~XMLLUTLoader() override;
56 
57  int addLUT(lutDBConfig* config, std::string templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template");
58 
60  std::string templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template");
61 
62  int createLoader(const std::vector<int>& crate_number, const std::vector<std::string>& file_name);
63 };
64 
65 #endif
int addLUT(lutDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template")
Definition: XMLLUTLoader.cc:90
const XMLLUTLoader & operator=(const XMLLUTLoader &)=delete
XMLLUTLoader::_lutDBConfig lutDBConfig
XMLLUTLoader::_checksumsDBConfig checksumsDBConfig
int createLoader(const std::vector< int > &crate_number, const std::vector< std::string > &file_name)
tuple config
parse the configuration file
int addChecksums(checksumsDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template")
~XMLLUTLoader() override
Definition: XMLLUTLoader.cc:73
std::string trig_prim_lookuptbl_data_file
Definition: XMLLUTLoader.h:38
XMLLUTLoader::_loaderBaseConfig loaderBaseConfig