CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 // $Id: XMLLUTLoader.h,v 1.3 2009/04/14 22:53:05 kukartse Exp $
20 //
21 
22 // system include files
23 
24 // user include files
27 
28 // forward declarations
29 
30 class XMLLUTLoader : public XMLDOMBlock
31 {
32 
33  public:
34 
36  {
37 
39 
40  typedef struct _lutDBConfig : public XMLProcessor::DBConfig
41  {
42  _lutDBConfig();
43  std::string kind_of_part;
44  std::string name_label;
46  int crate;
47  } lutDBConfig;
48 
50  {
52  std::string comment_description;
53  std::string name_label;
55  int crate;
57 
58  XMLLUTLoader();
59  XMLLUTLoader( XMLProcessor::loaderBaseConfig * config, std::string templateBase = "HCAL_TRIG_PRIM_LOOKUP_TABLE.XMLloader.template" );
60  virtual ~XMLLUTLoader();
61 
62  int addLUT( lutDBConfig * config,
63  std::string templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template" );
64 
66  std::string templateFileName = "HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template" );
67 
68  int createLoader( std::vector<int> crate_number, std::vector<std::string> file_name );
69 
70  private:
71  XMLLUTLoader(const XMLLUTLoader&); // stop default
72 
73  const XMLLUTLoader& operator=(const XMLLUTLoader&); // stop default
74 
75 
76 };
77 
78 
79 #endif
int addLUT(lutDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.dataset.template")
Definition: XMLLUTLoader.cc:96
int createLoader(std::vector< int > crate_number, std::vector< std::string > file_name)
XMLLUTLoader::_lutDBConfig lutDBConfig
XMLLUTLoader::_checksumsDBConfig checksumsDBConfig
virtual ~XMLLUTLoader()
Definition: XMLLUTLoader.cc:77
const XMLLUTLoader & operator=(const XMLLUTLoader &)
int addChecksums(checksumsDBConfig *config, std::string templateFileName="HCAL_TRIG_PRIM_LOOKUP_TABLE.checksums.template")
std::string trig_prim_lookuptbl_data_file
Definition: XMLLUTLoader.h:45
XMLLUTLoader::_loaderBaseConfig loaderBaseConfig