CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
XMLRBXPedestalsLoader.h
Go to the documentation of this file.
1 #ifndef HCALConfigDBTools_XMLTools_XMLRBXPedestalsLoader_h
2 #define HCALConfigDBTools_XMLTools_XMLRBXPedestalsLoader_h
3 // -*- C++ -*-
4 //
5 // Package: XMLTools
6 // Class : XMLRBXPedestalsLoader
7 //
16 //
17 // Original Author: Gena Kukartsev, kukarzev@fnal.gov
18 // Created: Tue Nov 06 14:30:33 CDT 2007
19 // $Id: XMLRBXPedestalsLoader.h,v 1.5 2010/08/06 20:24:11 wmtan Exp $
20 //
21 
22 // system include files
23 
24 // user include files
27 
28 // forward declarations
29 
31 {
32 
33  public:
34 
35  typedef struct _loaderBaseConfig
36  {
38  std::string extention_table_name;
39  std::string name;
40  std::string run_mode;
41  std::string data_set_id;
42  std::string iov_id;
43  long long int iov_begin;
44  long long int iov_end;
45  std::string tag_id;
46  std::string tag_mode;
47  std::string tag_name;
48  std::string detector_name;
51 
52  typedef struct _datasetDBConfig : public XMLProcessor::DBConfig
53  {
55  std::string comment_description;
56  std::string name_label;
57  std::string kind_of_part;
59 
60  //XMLRBXPedestalsLoader();
61  XMLRBXPedestalsLoader( loaderBaseConfig * config, std::string templateBase = "HCAL_RBX_PEDESTALS_TYPE01.XMLloader.template" );
62  virtual ~XMLRBXPedestalsLoader();
63 
64  // ---------- const member functions ---------------------
65 
66  // ---------- static member functions --------------------
67 
68  // ---------- member functions ---------------------------
69  int addRBXSlot( datasetDBConfig * config, std::string brickFileName,
70  std::string rbx_config_type = "pedestals",
71  std::string templateFileName = "HCAL_RBX_PEDESTALS_TYPE01.dataset.template" ); // pedestals, gols, delays
72 
73  protected:
74  int init( void );
75  int fixRbxName( std::string & );
76 
77  MemBufInputSource * _data_ped_delay; // a container for the XML template for a single pedestal or zero delay
78  MemBufInputSource * _data_gol; // a container for the XML template for a single gol current
79  MemBufInputSource * _data_led; // a container for the XML template for a single led data unit
80 
81  private:
82  XMLRBXPedestalsLoader(const XMLRBXPedestalsLoader&); // stop default
83 
84  const XMLRBXPedestalsLoader& operator=(const XMLRBXPedestalsLoader&); // stop default
85 
86  // ---------- member data --------------------------------
87 
88 };
89 
90 #endif
struct XMLRBXPedestalsLoader::_loaderBaseConfig loaderBaseConfig
MemBufInputSource * _data_led
XMLRBXPedestalsLoader::_datasetDBConfig datasetDBConfig
XMLRBXPedestalsLoader(loaderBaseConfig *config, std::string templateBase="HCAL_RBX_PEDESTALS_TYPE01.XMLloader.template")
int fixRbxName(std::string &)
const XMLRBXPedestalsLoader & operator=(const XMLRBXPedestalsLoader &)
MemBufInputSource * _data_ped_delay
MemBufInputSource * _data_gol
int addRBXSlot(datasetDBConfig *config, std::string brickFileName, std::string rbx_config_type="pedestals", std::string templateFileName="HCAL_RBX_PEDESTALS_TYPE01.dataset.template")