CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalChannelDataXml.h
Go to the documentation of this file.
1 #ifndef CaloOnlineTools_HcalOnlineDb_HcalChannelDataXml_h
2 #define CaloOnlineTools_HcalOnlineDb_HcalChannelDataXml_h
3 // -*- C++ -*-
4 //
5 // Package: CaloOnlineTools/HcalOnlineDb
6 // Class : HcalChannelDataXml
7 //
16 //
17 // Original Author: Gena Kukartsev, kukarzev@fnal.gov
18 // Created: Wed Jul 01 06:42:00 CDT 2009
19 // $Id: HcalChannelDataXml.h,v 1.5 2009/10/26 02:55:16 kukartse Exp $
20 //
21 
25 
27 {
28 
29  public:
30 
32  virtual ~HcalChannelDataXml();
33 
34  int init_data( void );
35 
36  //
37  //_____ methods to set basic tags
38  //
39  DOMNode * set_header_table_name(std::string name);
40  DOMNode * set_header_type(std::string type);
41  DOMNode * set_header_run_number(int run);
42  DOMNode * set_header_channel_map(std::string name);
43  DOMNode * set_elements_dataset_id(int id);
44  DOMNode * set_elements_iov_id(int id);
45  DOMNode * set_elements_iov_begin(int value);
46  DOMNode * set_elements_iov_end(int value);
47  DOMNode * set_elements_tag_id(int value);
48  DOMNode * set_elements_tag_mode(std::string value);
49  DOMNode * set_elements_tag_name(std::string value);
50  DOMNode * set_elements_detector_name(std::string value);
51  DOMNode * set_elements_comment(std::string value);
52  DOMNode * set_maps_tag_idref(int value);
53  DOMNode * set_maps_iov_idref(int value);
54  DOMNode * set_maps_dataset_idref(int value);
55 
56  //
57  //_____ add data
58  //
59  DOMNode * add_dataset( void );
60  DOMNode * add_hcal_channel( DOMNode * _dataset, int ieta, int iphi, int depth, std::string subdetector );
61 
62  //
63  //_____ DATA_SET getter methods
64  //
65  DOMElement * get_data_element( DOMNode * _dataset );
66  DOMElement * get_channel_element( DOMNode * _dataset );
67 
68  //
69  //_____ tester methods ________________________________________________
70  //
71 
72 
73  protected:
74  MemBufInputSource * _root; // a container for the XML template;
75  MemBufInputSource * _dataset; // a container for the XML template;
76 
77  //
78  //_____ HEADER
79  std::string extension_table_name;
80  std::string type_name;
82  std::string channel_map;
83  //
84  //_____ ELEMENTS
86  int iov_id;
87  int iov_begin;
88  int iov_end;
89  int tag_id;
90  std::string tag_mode;
91  std::string tag_name;
92  std::string detector_name;
93  std::string comment;
94  //
95  //_____MAPS
96  int tag_idref;
97  int iov_idref;
99  //
100  //_____ DATA_SET
101  std::string username;
102  std::string dataset_comment;
103 
107 };
108 
109 
110 #endif
DOMNode * set_header_channel_map(std::string name)
type
Definition: HCALResponse.h:22
DOMElement * get_channel_element(DOMNode *_dataset)
DOMNode * set_elements_detector_name(std::string value)
DOMNode * set_header_run_number(int run)
MemBufInputSource * _dataset
DOMNode * add_dataset(void)
DOMNode * set_maps_iov_idref(int value)
DOMNode * set_elements_iov_begin(int value)
DOMNode * set_header_table_name(std::string name)
DOMElement * get_data_element(DOMNode *_dataset)
DOMNode * set_maps_dataset_idref(int value)
DOMNode * set_header_type(std::string type)
std::string extension_table_name
DOMNode * set_maps_tag_idref(int value)
DOMNode * set_elements_comment(std::string value)
DOMNode * set_elements_dataset_id(int id)
DOMNode * set_elements_iov_id(int id)
DOMNode * set_elements_tag_id(int value)
MemBufInputSource * _root
DOMNode * set_elements_tag_mode(std::string value)
DOMNode * add_hcal_channel(DOMNode *_dataset, int ieta, int iphi, int depth, std::string subdetector)
DOMNode * set_elements_iov_end(int value)
DOMNode * set_elements_tag_name(std::string value)