36 nsPerCount( 25.0 / 32.0 ) {
43 dataVersion( version ),
44 nsPerCount( 25.0 / 32.0 ) {
93 return get( wheelId, stationId, sectorId,
107 return get( wheelId, stationId, sectorId,
109 mTime, mTrms,
unit );
137 std::vector<int> chanKey;
139 chanKey.push_back( wheelId );
140 chanKey.push_back( stationId );
141 chanKey.push_back( sectorId );
142 chanKey.push_back( slId );
143 chanKey.push_back( layerId );
144 chanKey.push_back( cellId );
146 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
147 if ( !searchStatus ) {
171 int status =
get( wheelId, stationId, sectorId,
172 slId, layerId, cellId,
191 return get(
id.wheel(),
194 id.superLayer(), 0, 0,
195 mTime, mTrms,
unit );
203 return get(
id.wheel(),
206 id.superLayer(), 0, 0,
207 mTime, mTrms,
unit );
216 return get( wireId.
wheel(),
222 mTime, mTrms,
unit );
231 return get( wireId.
wheel(),
237 mTime, mTrms,
unit );
273 return set( wheelId, stationId, sectorId,
275 mTime, mTrms, unit );
286 return set( wheelId, stationId, sectorId,
288 mTime, mTrms, unit );
316 std::vector<int> chanKey;
318 chanKey.push_back( wheelId );
319 chanKey.push_back( stationId );
320 chanKey.push_back( sectorId );
321 chanKey.push_back( slId );
322 chanKey.push_back( layerId );
323 chanKey.push_back( cellId );
325 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
327 if ( !searchStatus ) {
335 key. wheelId = wheelId;
337 key. sectorId = sectorId;
339 key. layerId = layerId;
340 key. cellId = cellId;
345 dataList.push_back( std::pair<DTMtimeId,DTMtimeData>( key, data ) );
346 dBuf->
insert( chanKey.begin(), chanKey.end(), ientry );
373 return set( wheelId, stationId, sectorId,
374 slId, layerId, cellId,
384 return set(
id.wheel(),
387 id.superLayer(), 0, 0,
388 mTime, mTrms, unit );
396 return set(
id.wheel(),
399 id.superLayer(), 0, 0,
400 mTime, mTrms, unit );
415 mTime, mTrms,
unit );
430 mTime, mTrms,
unit );
450 std::stringstream
name;
467 std::vector<int> chanKey;
469 while ( entryNum < entryMax ) {
474 chanKey.push_back( chan. wheelId );
476 chanKey.push_back( chan. sectorId );
477 chanKey.push_back( chan. slId );
478 chanKey.push_back( chan. layerId );
479 chanKey.push_back( chan. cellId );
480 dBuf->
insert( chanKey.begin(), chanKey.end(), entryNum++ );
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
int layer() const
Return the layer number.
U second(std::pair< T, U > const &p)
void cacheMap() const
read and store full content
DTBufferTree< int, int > * dBuf
int superLayer() const
Return the superlayer number.
int wire() const
Return the wire number.
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
const_iterator begin() const
std::vector< std::pair< DTMtimeId, DTMtimeData > >::const_iterator const_iterator
Access methods to data.
std::string mapName() const
int find(ElementKey fKey, ElementKey lKey, Content &cont)
const std::string & version() const
access version
int get(int wheelId, int stationId, int sectorId, int slId, float &mTime, float &mTrms, DTTimeUnits::type unit) const
char data[epos_bytes_allocation]
const_iterator end() const
void clear()
reset content
int station() const
Return the station number.
int wheel() const
Return the wheel number.