Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CaloOnlineTools
HcalOnlineDb
interface
HcalHardwareXml.h
Go to the documentation of this file.
1
#ifndef HCALConfigDBTools_XMLTools_HcalHardwareXml_h
2
#define HCALConfigDBTools_XMLTools_HcalHardwareXml_h
3
// -*- C++ -*-
4
//
5
// Package: XMLTools
6
// Class : HcalHardwareXml
7
// Original Author: Gena Kukartsev, kukarzev@fnal.gov
8
//
18
#include <map>
19
20
#include "
CalibCalorimetry/HcalTPGAlgos/interface/XMLDOMBlock.h
"
21
#include "
CalibCalorimetry/HcalTPGAlgos/interface/XMLProcessor.h
"
22
23
typedef
struct
_HcalPart
24
{
25
_HcalPart
(){
mode
=
""
;
kind_of_part
=
""
;
name_label
=
""
;
barcode
=
""
;
comment
=
""
;
attr_name
=
""
;
attr_value
=
""
; };
26
std::string
mode
;
27
std::string
kind_of_part
;
28
std::string
name_label
;
29
std::string
barcode
;
30
std::string
comment
;
31
std::string
attr_name
;
32
std::string
attr_value
;
33
}
HcalPart
;
34
35
36
37
class
HcalHardwareXml
:
public
XMLDOMBlock
38
{
39
40
public
:
41
42
HcalHardwareXml
();
43
HcalHardwareXml
( std::string _type );
44
virtual
~HcalHardwareXml
();
45
46
int
addHardware
(
std::map
<std::string,
std::map
<std::string,
std::map
<std::string,std::map<int,std::string> > > > & hw_map );
47
48
private
:
49
50
HcalHardwareXml
(
const
HcalHardwareXml
&);
// stop default
51
const
HcalHardwareXml
&
operator=
(
const
HcalHardwareXml
&);
// stop default
52
53
DOMElement *
addPart
( DOMElement *
parent
,
HcalPart
&
part
);
54
55
DOMElement *
partsElem
;
56
57
//hw_map["rbx_slot"]["rbx"]["rm"][qie_slot]="qie";
58
//std::map<std::string,std::map<std::string,std::map<std::string,std::map<int,std::string> > > > hw_map;
59
60
};
61
62
63
#endif
HcalHardwareXml::~HcalHardwareXml
virtual ~HcalHardwareXml()
Definition:
HcalHardwareXml.cc:156
XMLProcessor.h
_HcalPart::mode
std::string mode
Definition:
HcalHardwareXml.h:25
dbtoconf.parent
list parent
Definition:
dbtoconf.py:74
HcalHardwareXml::partsElem
DOMElement * partsElem
Definition:
HcalHardwareXml.h:55
_HcalPart::kind_of_part
std::string kind_of_part
Definition:
HcalHardwareXml.h:27
_HcalPart::barcode
std::string barcode
Definition:
HcalHardwareXml.h:29
Association.map
dictionary map
Definition:
Association.py:160
_HcalPart::name_label
std::string name_label
Definition:
HcalHardwareXml.h:28
HcalHardwareXml
Definition:
HcalHardwareXml.h:37
HcalHardwareXml::addPart
DOMElement * addPart(DOMElement *parent, HcalPart &part)
Definition:
HcalHardwareXml.cc:103
_HcalPart
Definition:
HcalHardwareXml.h:23
_HcalPart::comment
std::string comment
Definition:
HcalHardwareXml.h:30
part
part
Definition:
HCALResponse.h:21
XMLDOMBlock.h
HcalHardwareXml::operator=
const HcalHardwareXml & operator=(const HcalHardwareXml &)
HcalHardwareXml::addHardware
int addHardware(std::map< std::string, std::map< std::string, std::map< std::string, std::map< int, std::string > > > > &hw_map)
Definition:
HcalHardwareXml.cc:40
XMLDOMBlock
Definition:
XMLDOMBlock.h:44
HcalHardwareXml::HcalHardwareXml
HcalHardwareXml()
Definition:
HcalHardwareXml.cc:18
_HcalPart::attr_value
std::string attr_value
Definition:
HcalHardwareXml.h:32
HcalPart
struct _HcalPart HcalPart
_HcalPart::attr_name
std::string attr_name
Definition:
HcalHardwareXml.h:31
_HcalPart::_HcalPart
_HcalPart()
Definition:
HcalHardwareXml.h:25
Generated for CMSSW Reference Manual by
1.8.5