36 nsPerCount( 25.0 / 32.0 ) {
43 dataVersion( version ),
44 nsPerCount( 25.0 / 32.0 ) {
95 return get( wheelId, stationId, sectorId,
97 tTrig, tTrms, kFact,
unit );
127 std::vector<int> chanKey;
129 chanKey.push_back( wheelId );
130 chanKey.push_back( stationId );
131 chanKey.push_back( sectorId );
132 chanKey.push_back( slId );
133 chanKey.push_back( layerId );
134 chanKey.push_back( cellId );
136 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
137 if ( !searchStatus ) {
158 return get(
id.wheel(),
161 id.superLayer(), 0, 0,
162 tTrig, tTrms, kFact,
unit );
172 return get( wireId.
wheel(),
178 tTrig, tTrms, kFact,
unit );
188 return get( wheelId, stationId, sectorId,
189 slId, 0, 0, tTrig,
unit );
204 int status =
get( wheelId, stationId, sectorId,
205 slId, layerId, cellId,
206 tMean, tTrms, kFact,
unit );
207 tTrig = tMean + ( kFact * tTrms );
215 return get(
id.wheel(),
218 id.superLayer(), 0, 0,
227 return get( wireId.
wheel(),
270 return set( wheelId, stationId, sectorId,
272 tTrig, tTrms, kFact, unit );
302 std::vector<int> chanKey;
304 chanKey.push_back( wheelId );
305 chanKey.push_back( stationId );
306 chanKey.push_back( sectorId );
307 chanKey.push_back( slId );
308 chanKey.push_back( layerId );
309 chanKey.push_back( cellId );
311 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
313 if ( !searchStatus ) {
322 key. wheelId = wheelId;
324 key. sectorId = sectorId;
326 key. layerId = layerId;
327 key. cellId = cellId;
333 dataList.push_back( std::pair<DTTtrigId,DTTtrigData>( key, data ) );
334 dBuf->
insert( chanKey.begin(), chanKey.end(), ientry );
348 return set(
id.wheel(),
351 id.superLayer(), 0, 0,
352 tTrig, tTrms, kFact, unit );
368 tTrig, tTrms, kFact,
unit );
388 std::stringstream
name;
405 std::vector<int> chanKey;
407 while ( entryNum < entryMax ) {
412 chanKey.push_back( chan. wheelId );
414 chanKey.push_back( chan. sectorId );
415 chanKey.push_back( chan. slId );
416 chanKey.push_back( chan. layerId );
417 chanKey.push_back( chan. cellId );
418 dBuf->
insert( chanKey.begin(), chanKey.end(), entryNum++ );
int set(int wheelId, int stationId, int sectorId, int slId, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit)
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
const std::string & version() const
access version
int layer() const
Return the layer number.
std::vector< std::pair< DTTtrigId, DTTtrigData > > dataList
void clear()
reset content
std::vector< std::pair< DTTtrigId, DTTtrigData > >::const_iterator const_iterator
Access methods to data.
DTBufferTree< int, int > * dBuf
U second(std::pair< T, U > const &p)
int superLayer() const
Return the superlayer number.
std::string mapName() const
void cacheMap() const
read and store full content
int wire() const
Return the wire number.
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
int find(ElementKey fKey, ElementKey lKey, Content &cont)
char data[epos_bytes_allocation]
const_iterator begin() const
int station() const
Return the station number.
const_iterator end() const
int wheel() const
Return the wheel number.