61 bool& nohvFlag)
const {
62 noiseFlag = feMask = tdcMask = trigMask = deadFlag = nohvFlag =
false;
64 std::vector<int> chanKey;
66 chanKey.push_back(wheelId);
67 chanKey.push_back(stationId);
68 chanKey.push_back(sectorId);
69 chanKey.push_back(slId);
70 chanKey.push_back(layerId);
71 chanKey.push_back(cellId);
73 int searchStatus =
dBuf->
find(chanKey.begin(), chanKey.end(), ientry);
76 noiseFlag =
data.noiseFlag;
78 tdcMask =
data.tdcMask;
79 trigMask =
data.trigMask;
80 deadFlag =
data.deadFlag;
81 nohvFlag =
data.nohvFlag;
93 bool& nohvFlag)
const {
94 return get(
id.wheel(),
130 std::vector<int> chanKey;
132 chanKey.push_back(wheelId);
133 chanKey.push_back(stationId);
134 chanKey.push_back(sectorId);
135 chanKey.push_back(slId);
136 chanKey.push_back(layerId);
137 chanKey.push_back(cellId);
139 int searchStatus =
dBuf->
find(chanKey.begin(), chanKey.end(), ientry);
143 data.noiseFlag = noiseFlag;
144 data.feMask = feMask;
145 data.tdcMask = tdcMask;
146 data.trigMask = trigMask;
147 data.deadFlag = deadFlag;
148 data.nohvFlag = nohvFlag;
152 key.wheelId = wheelId;
153 key.stationId = stationId;
154 key.sectorId = sectorId;
156 key.layerId = layerId;
159 data.noiseFlag = noiseFlag;
160 data.feMask = feMask;
161 data.tdcMask = tdcMask;
162 data.trigMask = trigMask;
163 data.deadFlag = deadFlag;
164 data.nohvFlag = nohvFlag;
166 dataList.push_back(std::pair<const DTStatusFlagId, DTStatusFlagData>(
key,
data));
167 dBuf->
insert(chanKey.begin(), chanKey.end(), ientry);
175 const DTWireId&
id,
bool noiseFlag,
bool feMask,
bool tdcMask,
bool trigMask,
bool deadFlag,
bool nohvFlag) {
176 return set(
id.wheel(),
198 wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
199 set(wheelId, stationId, sectorId, slId, layerId, cellId,
flag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
215 wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
216 set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag,
mask, tdcMask, trigMask, deadFlag, nohvFlag);
225 int wheelId,
int stationId,
int sectorId,
int slId,
int layerId,
int cellId,
bool mask) {
233 wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
234 set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask,
mask, trigMask, deadFlag, nohvFlag);
243 int wheelId,
int stationId,
int sectorId,
int slId,
int layerId,
int cellId,
bool mask) {
251 wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
252 set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask,
mask, deadFlag, nohvFlag);
268 wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
269 set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask,
flag, nohvFlag);
285 wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag, nohvFlag);
286 set(wheelId, stationId, sectorId, slId, layerId, cellId, noiseFlag, feMask, tdcMask, trigMask, deadFlag,
flag);
299 std::stringstream
name;
309 std::vector<int> chanKey;
311 while (entryNum < entryMax) {
315 chanKey.push_back(
chan.wheelId);
316 chanKey.push_back(
chan.stationId);
317 chanKey.push_back(
chan.sectorId);
318 chanKey.push_back(
chan.slId);
319 chanKey.push_back(
chan.layerId);
320 chanKey.push_back(
chan.cellId);
321 dBuf->
insert(chanKey.begin(), chanKey.end(), entryNum++);
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool noiseFlag, bool feMask, bool tdcMask, bool trigMask, bool deadFlag, bool nohvFlag)
int setCellDead(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
const_iterator begin() const
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
int setCellTrigMask(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
U second(std::pair< T, U > const &p)
int setCellNoise(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > >::const_iterator const_iterator
Access methods to data.
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
void clear()
reset content
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
int setCellNoHV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
char data[epos_bytes_allocation]
int insert(ElementKey fKey, ElementKey lKey, Content cont)
const_iterator end() const
std::string mapName() const
int setCellTDCMask(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
int setCellFEMask(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool mask)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
const std::string & version() const
access version