37 dataVersion( version ) {
94 bool& nohvFlag )
const {
113 std::vector<int> chanKey;
115 chanKey.push_back( wheelId );
116 chanKey.push_back( stationId );
117 chanKey.push_back( sectorId );
118 chanKey.push_back( slId );
119 chanKey.push_back( layerId );
120 chanKey.push_back( cellId );
122 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
123 if ( !searchStatus ) {
126 feMask = data. feMask;
127 tdcMask = data. tdcMask;
128 trigMask = data. trigMask;
129 deadFlag = data. deadFlag;
130 nohvFlag = data. nohvFlag;
144 bool& nohvFlag )
const {
145 return get(
id.wheel(),
151 noiseFlag, feMask, tdcMask,
152 trigMask, deadFlag, nohvFlag );
198 std::vector<int> chanKey;
200 chanKey.push_back( wheelId );
201 chanKey.push_back( stationId );
202 chanKey.push_back( sectorId );
203 chanKey.push_back( slId );
204 chanKey.push_back( layerId );
205 chanKey.push_back( cellId );
207 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
209 if ( !searchStatus ) {
212 data. feMask = feMask;
213 data. tdcMask = tdcMask;
214 data. trigMask = trigMask;
215 data. deadFlag = deadFlag;
216 data. nohvFlag = nohvFlag;
221 key. wheelId = wheelId;
223 key. sectorId = sectorId;
225 key. layerId = layerId;
226 key. cellId = cellId;
229 data. feMask = feMask;
230 data. tdcMask = tdcMask;
231 data. trigMask = trigMask;
232 data. deadFlag = deadFlag;
233 data. nohvFlag = nohvFlag;
237 dBuf->
insert( chanKey.begin(), chanKey.end(), ientry );
253 return set(
id.wheel(),
259 noiseFlag, feMask, tdcMask,
260 trigMask, deadFlag, nohvFlag );
278 int status =
get( wheelId,
333 int status =
get( wheelId,
388 int status =
get( wheelId,
443 int status =
get( wheelId,
498 int status =
get( wheelId,
553 int status =
get( wheelId,
605 std::stringstream
name;
622 std::vector<int> chanKey;
624 while ( entryNum < entryMax ) {
629 chanKey.push_back( chan. wheelId );
631 chanKey.push_back( chan. sectorId );
632 chanKey.push_back( chan. slId );
633 chanKey.push_back( chan. layerId );
634 chanKey.push_back( chan. cellId );
635 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)
const_iterator end() const
int setCellDead(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
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)
U second(std::pair< T, U > const &p)
std::vector< std::pair< DTStatusFlagId, DTStatusFlagData > > dataList
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.
void cacheMap() const
read and store full content
int find(ElementKey fKey, ElementKey lKey, Content &cont)
const std::string & version() const
access version
void clear()
reset content
int setCellNoHV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
std::string mapName() const
DTBufferTree< int, int > * dBuf
char data[epos_bytes_allocation]
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)
volatile std::atomic< bool > shutdown_flag false
const_iterator begin() const