CMS 3D CMS Logo

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 {
31 
32  public:
33 
35  {
36 
38 
39  typedef struct _lutDBConfig : public XMLProcessor::DBConfig
40  {
41  _lutDBConfig();
45  int crate;
46  } lutDBConfig;
47 
49  {
54  int crate;
56 
57  XMLLUTLoader();
58  XMLLUTLoader( XMLProcessor::loaderBaseConfig * config, std::string templateBase = "HCAL_TRIG_PRIM_LOOKUP_TABLE.XMLloader.template" );
59  ~XMLLUTLoader() override;
60 
61  int addLUT( lutDBConfig * config,
62  std::string templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template" );
63 
65  std::string templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template" );
66 
67  int createLoader( const std::vector<int>& crate_number, const std::vector<std::string>& file_name );
68 
69  private:
70  XMLLUTLoader(const XMLLUTLoader&) = delete; // stop default
71 
72  const XMLLUTLoader& operator=(const XMLLUTLoader&) = delete; // stop default
73 
74 
75 };
76 
77 
78 #endif
int addLUT(lutDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template")
Definition: XMLLUTLoader.cc:96
const XMLLUTLoader & operator=(const XMLLUTLoader &)=delete
Definition: config.py:1
XMLLUTLoader::_lutDBConfig lutDBConfig
XMLLUTLoader::_checksumsDBConfig checksumsDBConfig
int createLoader(const std::vector< int > &crate_number, const std::vector< std::string > &file_name)
int addChecksums(checksumsDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template")
~XMLLUTLoader() override
Definition: XMLLUTLoader.cc:77
std::string trig_prim_lookuptbl_data_file
Definition: XMLLUTLoader.h:44
XMLLUTLoader::_loaderBaseConfig loaderBaseConfig