Main Page
Namespaces
Classes
Package Documentation
CaloOnlineTools
HcalOnlineDb
interface
LMap.h
Go to the documentation of this file.
1
#ifndef HCALConfigDBTools_XMLTools_LMap_h
2
#define HCALConfigDBTools_XMLTools_LMap_h
3
// -*- C++ -*-
4
//
5
// Package: XMLTools
6
// Class : LMap
7
//
17
//
18
// Original Author: Gena Kukartsev, kukarzev@fnal.gov
19
// Created: Tue Nov 06 14:30:33 CDT 2007
20
//
21
22
// system include files
23
#include <vector>
24
#include <cstring>
25
#include <fstream>
26
27
#include "CaloOnlineTools/HcalOnlineDb/interface/ConfigurationDatabase.hh"
28
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
29
#include "
CondFormats/HcalObjects/interface/HcalElectronicsMap.h
"
30
31
class
LMapRow
{
32
public
:
33
LMapRow
(){};
34
~LMapRow
(){};
35
36
int
side
;
37
int
eta
,
phi
,
dphi
,
depth
;
38
//string det;
39
HcalSubdetector
det
;
40
std::string
rbx
;
41
int
wedge
,
rm
,
pixel
,
qie
,
adc
,
rm_fi
,
fi_ch
;
42
int
crate
,
htr
;
// crate-slot
43
std::string
fpga
;
// top-bottom
44
int
htr_fi
;
// fiber
45
int
dcc_sl
,
spigo
,
dcc
,
slb
;
46
std::string
slbin
,
slbin2
,
slnam
;
47
int
rctcra
,
rctcar
,
rctcon
;
48
std::string
rctnam
;
49
int
fedid
;
50
51
std::string
let_code
;
// specific to HO
52
53
private
:
54
};
55
56
class
LMapDetId
{
57
public
:
58
LMapDetId
(){};
59
~LMapDetId
(){};
60
61
int
side
;
62
int
eta
,
phi
,
depth
;
63
std::string
subdetector
;
64
};
65
66
class
LMap
{
67
public
:
68
LMap
();
69
~
LMap
();
70
71
// type = "HNEF" or "HO", matters for
72
int
read
(
std::string
accessor,
std::string
type
=
"HBEF"
);
73
std::map<int, LMapRow>& get_map(
void
);
74
75
private
:
76
class
impl
;
77
std::shared_ptr<impl>
p_impl
;
78
};
79
80
class
EMap
{
81
public
:
82
EMap
() {}
83
EMap
(
std::string
filename
) { read_map(filename); }
84
EMap
(
const
HcalElectronicsMap
*
map
);
85
~EMap
() {}
86
87
class
EMapRow
{
88
public
:
89
int
rawId,
crate
, slot,
dcc
,
spigot
, fiber, fiberchan,
ieta
,
iphi
, idepth;
90
std::string
topbottom
, subdet;
91
// ZDC channels:
92
// section: ZDC EM, ZDC HAD, ZDC LUM(?)
93
int
zdc_zside
, zdc_channel;
94
std::string
zdc_section
;
95
96
EMapRow
() {
97
rawId = 0;
98
crate = 0;
99
slot = 0;
100
dcc = 0;
101
spigot = 0;
102
fiber = 0;
103
fiberchan = 0;
104
ieta = 0;
105
iphi = 0;
106
idepth = 0;
107
topbottom =
""
;
108
subdet =
""
;
109
zdc_zside = 0;
110
zdc_channel = 0;
111
zdc_section =
"UNKNOWN"
;
112
}
113
~EMapRow
(){};
114
115
bool
operator<
(
const
EMapRow
&
other
)
const
;
116
117
};
// end of class EMapRow
118
119
int
read_map(
std::string
filename
);
120
121
std::vector<EMap::EMapRow>& get_map(
void
);
122
123
protected
:
124
std::vector<EMapRow>
map
;
125
};
// end of class EMap
126
127
class
LMap_test
{
128
public
:
129
LMap_test
();
130
~LMap_test
() {}
131
132
int
test_read(
std::string
accessor,
std::string
type
=
"HBEF"
);
133
134
private
:
135
std::shared_ptr<LMap>
_lmap
;
136
};
137
138
class
EMap_test
{
139
public
:
140
EMap_test
() {}
141
~EMap_test
() {}
142
143
int
test_read_map(
std::string
filename
);
144
};
// end of class EMap_test
145
146
#endif
EMap::map
std::vector< EMapRow > map
Definition:
LMap.h:124
type
type
Definition:
HCALResponse.h:21
EMap::EMapRow::~EMapRow
~EMapRow()
Definition:
LMap.h:113
LMapRow::rctcra
int rctcra
Definition:
LMap.h:47
LMapRow::dphi
int dphi
Definition:
LMap.h:37
LMapRow::phi
int phi
Definition:
LMap.h:37
LMapRow::pixel
int pixel
Definition:
LMap.h:41
LEDCalibrationChannels.iphi
iphi
Definition:
LEDCalibrationChannels.py:64
EMap::EMapRow
Definition:
LMap.h:87
EMap::EMapRow::zdc_section
std::string zdc_section
Definition:
LMap.h:94
LMapRow::qie
int qie
Definition:
LMap.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EMap::EMapRow::zdc_zside
int zdc_zside
Definition:
LMap.h:93
EMap_test::~EMap_test
~EMap_test()
Definition:
LMap.h:141
HcalSubdetector.h
LMapDetId::LMapDetId
LMapDetId()
Definition:
LMap.h:58
LMapRow::fedid
int fedid
Definition:
LMap.h:49
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:123
impl
Definition:
trackAlgoPriorityOrder.h:18
EMap_test
Definition:
LMap.h:138
LMap::p_impl
std::shared_ptr< impl > p_impl
Definition:
LMap.h:76
EMap::EMapRow::spigot
int spigot
Definition:
LMap.h:89
EMap_test::EMap_test
EMap_test()
Definition:
LMap.h:140
LMapRow::slb
int slb
Definition:
LMap.h:45
LMapRow::htr
int htr
Definition:
LMap.h:42
LMapRow::depth
int depth
Definition:
LMap.h:37
LMapRow::spigo
int spigo
Definition:
LMap.h:45
LMap_test
Definition:
LMap.h:127
LMapRow::slbin
std::string slbin
Definition:
LMap.h:46
LMapDetId::subdetector
std::string subdetector
Definition:
LMap.h:63
LMapRow::dcc_sl
int dcc_sl
Definition:
LMap.h:45
LMapRow::fi_ch
int fi_ch
Definition:
LMap.h:41
LMapRow::adc
int adc
Definition:
LMap.h:41
EMap::EMap
EMap(std::string filename)
Definition:
LMap.h:83
trackingPlots.other
other
Definition:
trackingPlots.py:1455
LMapDetId::~LMapDetId
~LMapDetId()
Definition:
LMap.h:59
LMapRow::~LMapRow
~LMapRow()
Definition:
LMap.h:34
EMap::~EMap
~EMap()
Definition:
LMap.h:85
HcalSubdetector
HcalSubdetector
Definition:
HcalAssistant.h:31
LMapRow::slnam
std::string slnam
Definition:
LMap.h:46
LMapRow::crate
int crate
Definition:
LMap.h:42
HcalElectronicsMap.h
LMapRow::LMapRow
LMapRow()
Definition:
LMap.h:33
LMapRow::rbx
std::string rbx
Definition:
LMap.h:40
LMapRow::rctnam
std::string rctnam
Definition:
LMap.h:48
LMapRow::side
int side
Definition:
LMap.h:34
LMap_test::_lmap
std::shared_ptr< LMap > _lmap
Definition:
LMap.h:135
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
LMapDetId::phi
int phi
Definition:
LMap.h:62
LEDCalibrationChannels.ieta
ieta
Definition:
LEDCalibrationChannels.py:63
LMapRow::fpga
std::string fpga
Definition:
LMap.h:43
EMap::EMapRow::EMapRow
EMapRow()
Definition:
LMap.h:96
LMapRow::rm_fi
int rm_fi
Definition:
LMap.h:41
operator<
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Definition:
DTCELinkId.h:69
LMapRow::dcc
int dcc
Definition:
LMap.h:45
LMapRow::slbin2
std::string slbin2
Definition:
LMap.h:46
EMap::EMapRow::topbottom
std::string topbottom
Definition:
LMap.h:90
LMapRow::wedge
int wedge
Definition:
LMap.h:41
LMapRow::rctcon
int rctcon
Definition:
LMap.h:47
LMapRow::rctcar
int rctcar
Definition:
LMap.h:47
HcalElectronicsMap
Definition:
HcalElectronicsMap.h:31
readEcalDQMStatus.read
read
Definition:
readEcalDQMStatus.py:38
EMap
Definition:
LMap.h:80
LMapRow::htr_fi
int htr_fi
Definition:
LMap.h:44
LMapRow::let_code
std::string let_code
Definition:
LMap.h:51
LMapDetId
Definition:
LMap.h:56
LMapRow::det
HcalSubdetector det
Definition:
LMap.h:39
LMapRow
Definition:
LMap.h:31
LMap
Definition:
LMap.h:66
EMap::EMap
EMap()
Definition:
LMap.h:82
LMapRow::eta
int eta
Definition:
LMap.h:37
LMapRow::rm
int rm
Definition:
LMap.h:41
LMap_test::~LMap_test
~LMap_test()
Definition:
LMap.h:130
Generated for CMSSW Reference Manual by
1.8.11