CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
DTMtime Class Reference

#include <DTMtime.h>

Public Types

typedef std::vector< std::pair
< DTMtimeId, DTMtimeData >
>::const_iterator 
const_iterator
 Access methods to data. More...
 

Public Member Functions

const_iterator begin () const
 
void clear ()
 reset content More...
 
 DTMtime ()
 
 DTMtime (const std::string &version)
 
const_iterator end () const
 
int get (int wheelId, int stationId, int sectorId, int slId, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 
int get (int wheelId, int stationId, int sectorId, int slId, float &mTime, float &mTrms, DTVelocityUnits::type unit) const
 
int get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 
int get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &mTime, float &mTrms, DTVelocityUnits::type unit) const
 
int get (const DTSuperLayerId &id, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 
int get (const DTSuperLayerId &id, float &mTime, float &mTrms, DTVelocityUnits::type unit) const
 
int get (const DetId &id, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 
int get (const DetId &id, float &mTime, float &mTrms, DTVelocityUnits::type unit) const
 
int set (int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
 
int set (int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTVelocityUnits::type unit)
 
int set (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float mTime, float mTrms, DTTimeUnits::type unit)
 
int set (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float mTime, float mTrms, DTVelocityUnits::type unit)
 
int set (const DTSuperLayerId &id, float mTime, float mTrms, DTTimeUnits::type unit)
 
int set (const DTSuperLayerId &id, float mTime, float mTrms, DTVelocityUnits::type unit)
 
int set (const DetId &id, float mTime, float mTrms, DTTimeUnits::type unit)
 
int set (const DetId &id, float mTime, float mTrms, DTVelocityUnits::type unit)
 
int setSLMtime (int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
 
int setSLMtime (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float mTime, float mTrms, DTTimeUnits::type unit)
 
int setSLMtime (const DTSuperLayerId &id, float mTime, float mTrms, DTTimeUnits::type unit)
 
int setSLMtime (const DetId &id, float mTime, float mTrms, DTTimeUnits::type unit)
 
void setUnit (float unit)
 
int slMtime (int wheelId, int stationId, int sectorId, int slId, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 get content More...
 
int slMtime (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 
int slMtime (const DTSuperLayerId &id, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 
int slMtime (const DetId &id, float &mTime, float &mTrms, DTTimeUnits::type unit) const
 
float unit () const
 
const std::string & version () const
 access version More...
 
std::string & version ()
 
 ~DTMtime ()
 

Private Member Functions

void cacheMap () const
 read and store full content More...
 
std::string mapName () const
 

Private Attributes

std::vector< std::pair
< DTMtimeId, DTMtimeData > > 
dataList
 
std::string dataVersion
 
DTBufferTree< int, int > * dBuf
 
float nsPerCount
 

Detailed Description

Description: Class to hold drift tubes mean-times ( SL by SL mean-time calculation )

Date:
2008/09/29 13:10:34
Revision:
1.8
Author
Paolo Ronchese INFN Padova

Definition at line 69 of file DTMtime.h.

Member Typedef Documentation

typedef std::vector< std::pair<DTMtimeId, DTMtimeData> >::const_iterator DTMtime::const_iterator

Access methods to data.

Definition at line 256 of file DTMtime.h.

Constructor & Destructor Documentation

DTMtime::DTMtime ( )

Constructor

Definition at line 34 of file DTMtime.cc.

References dataList, and dBuf.

34  :
35  dataVersion( " " ),
36  nsPerCount( 25.0 / 32.0 ) {
37  dataList.reserve( 1000 );
38  dBuf = 0;
39 }
float nsPerCount
Definition: DTMtime.h:263
DTBufferTree< int, int > * dBuf
Definition: DTMtime.h:267
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:265
std::string dataVersion
Definition: DTMtime.h:262
DTMtime::DTMtime ( const std::string &  version)

Definition at line 42 of file DTMtime.cc.

References dataList, and dBuf.

42  :
44  nsPerCount( 25.0 / 32.0 ) {
45  dataList.reserve( 1000 );
46  dBuf = 0;
47 }
float nsPerCount
Definition: DTMtime.h:263
DTBufferTree< int, int > * dBuf
Definition: DTMtime.h:267
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:265
const std::string & version() const
access version
Definition: DTMtime.cc:247
std::string dataVersion
Definition: DTMtime.h:262
DTMtime::~DTMtime ( )

Destructor

Definition at line 69 of file DTMtime.cc.

References dBuf.

69  {
70 // DTDataBuffer<int,int>::dropBuffer( mapName() );
71  delete dBuf;
72 }
DTBufferTree< int, int > * dBuf
Definition: DTMtime.h:267

Member Function Documentation

DTMtime::const_iterator DTMtime::begin ( void  ) const

Definition at line 439 of file DTMtime.cc.

References dataList.

439  {
440  return dataList.begin();
441 }
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:265
void DTMtime::cacheMap ( ) const
private

read and store full content

Definition at line 456 of file DTMtime.cc.

References dataList, dBuf, DTBufferTree< Key, Content >::insert(), and DTMtimeId::stationId.

Referenced by get(), and set().

456  {
457 
458 // std::string mName = mapName();
459 // DTBufferTree<int,int>* dBuf =
460 // DTDataBuffer<int,int>::openBuffer( mName );
461  DTBufferTree<int,int>** pBuf;
462  pBuf = const_cast<DTBufferTree<int,int>**>( &dBuf );
463  *pBuf = new DTBufferTree<int,int>;
464 
465  int entryNum = 0;
466  int entryMax = dataList.size();
467  std::vector<int> chanKey;
468  chanKey.reserve(6);
469  while ( entryNum < entryMax ) {
470 
471  const DTMtimeId& chan = dataList[entryNum].first;
472 
473  chanKey.clear();
474  chanKey.push_back( chan. wheelId );
475  chanKey.push_back( chan.stationId );
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++ );
481 
482  }
483 
484  return;
485 
486 }
int stationId
Definition: DTMtime.h:47
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
DTBufferTree< int, int > * dBuf
Definition: DTMtime.h:267
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:265
void DTMtime::clear ( void  )
DTMtime::const_iterator DTMtime::end ( void  ) const

Definition at line 444 of file DTMtime.cc.

References dataList.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

444  {
445  return dataList.end();
446 }
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:265
int DTMtime::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const
int DTMtime::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float &  mTime,
float &  mTrms,
DTVelocityUnits::type  unit 
) const

Definition at line 100 of file DTMtime.cc.

References unit().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

106  {
107  return get( wheelId, stationId, sectorId,
108  slId, 0, 0,
109  mTime, mTrms, unit );
110 
111 }
float unit() const
Definition: DTMtime.cc:241
int DTMtime::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const

Definition at line 114 of file DTMtime.cc.

References cacheMap(), data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTMtimeData::mTime, DTMtimeData::mTrms, DTTimeUnits::ns, nsPerCount, and edm::second().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

122  {
123 
124  mTime =
125  mTrms = 0.0;
126 
127 // std::string mName = mapName();
128 // DTBufferTree<int,int>* dBuf =
129 // DTDataBuffer<int,int>::findBuffer( mName );
130 // if ( dBuf == 0 ) {
131 // cacheMap();
132 // dBuf =
133 // DTDataBuffer<int,int>::findBuffer( mName );
134 // }
135  if ( dBuf == 0 ) cacheMap();
136 
137  std::vector<int> chanKey;
138  chanKey.reserve(6);
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 );
145  int ientry;
146  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
147  if ( !searchStatus ) {
148  const DTMtimeData& data( dataList[ientry].second );
149  mTime = data.mTime;
150  mTrms = data.mTrms;
151  if ( unit == DTTimeUnits::ns ) {
152  mTime *= nsPerCount;
153  mTrms *= nsPerCount;
154  }
155  }
156 
157  return searchStatus;
158 
159 }
float nsPerCount
Definition: DTMtime.h:263
U second(std::pair< T, U > const &p)
void cacheMap() const
read and store full content
Definition: DTMtime.cc:456
DTBufferTree< int, int > * dBuf
Definition: DTMtime.h:267
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:265
int find(ElementKey fKey, ElementKey lKey, Content &cont)
float unit() const
Definition: DTMtime.cc:241
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
int DTMtime::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
float &  mTime,
float &  mTrms,
DTVelocityUnits::type  unit 
) const

Definition at line 162 of file DTMtime.cc.

References DTVelocityUnits::cm_per_count, DTVelocityUnits::cm_per_ns, DTTimeUnits::counts, nsPerCount, and ntuplemaker::status.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

170  {
171  int status = get( wheelId, stationId, sectorId,
172  slId, layerId, cellId,
173  mTime, mTrms, DTTimeUnits::counts );
175  mTime = 2.1 / mTime;
176  mTrms *= mTime;
177  }
178  if ( unit == DTVelocityUnits::cm_per_ns ) {
179  mTime = 2.1 / mTime;
180  mTrms *= mTime;
181  mTime /= nsPerCount;
182  }
183  return status;
184 }
float nsPerCount
Definition: DTMtime.h:263
float unit() const
Definition: DTMtime.cc:241
tuple status
Definition: ntuplemaker.py:245
int DTMtime::get ( const DTSuperLayerId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const

Definition at line 187 of file DTMtime.cc.

References unit().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

190  {
191  return get( id.wheel(),
192  id.station(),
193  id.sector(),
194  id.superLayer(), 0, 0,
195  mTime, mTrms, unit );
196 }
float unit() const
Definition: DTMtime.cc:241
int DTMtime::get ( const DTSuperLayerId id,
float &  mTime,
float &  mTrms,
DTVelocityUnits::type  unit 
) const

Definition at line 199 of file DTMtime.cc.

References unit().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

202  {
203  return get( id.wheel(),
204  id.station(),
205  id.sector(),
206  id.superLayer(), 0, 0,
207  mTime, mTrms, unit );
208 }
float unit() const
Definition: DTMtime.cc:241
int DTMtime::get ( const DetId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const

Definition at line 211 of file DTMtime.cc.

References DTLayerId::layer(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), unit(), DTChamberId::wheel(), and DTWireId::wire().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

214  {
215  DTWireId wireId( id.rawId() );
216  return get( wireId.wheel(),
217  wireId.station(),
218  wireId.sector(),
219  wireId.superLayer(),
220  wireId.layer(),
221  wireId.wire(),
222  mTime, mTrms, unit );
223 }
float unit() const
Definition: DTMtime.cc:241
int DTMtime::get ( const DetId id,
float &  mTime,
float &  mTrms,
DTVelocityUnits::type  unit 
) const

Definition at line 226 of file DTMtime.cc.

References DTLayerId::layer(), DTChamberId::sector(), DTChamberId::station(), DTSuperLayerId::superLayer(), unit(), DTChamberId::wheel(), and DTWireId::wire().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().

229  {
230  DTWireId wireId( id.rawId() );
231  return get( wireId.wheel(),
232  wireId.station(),
233  wireId.sector(),
234  wireId.superLayer(),
235  wireId.layer(),
236  wireId.wire(),
237  mTime, mTrms, unit );
238 }
float unit() const
Definition: DTMtime.cc:241
std::string DTMtime::mapName ( ) const
private

Definition at line 449 of file DTMtime.cc.

References dataVersion, and mergeVDriftHistosByStation::name.

449  {
450  std::stringstream name;
451  name << dataVersion << "_map_Mtime" << this;
452  return name.str();
453 }
std::string dataVersion
Definition: DTMtime.h:262
int DTMtime::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)

Definition at line 266 of file DTMtime.cc.

Referenced by DTVDriftWriter::endJob(), DTVDriftCalibration::endJob(), betterConfigParser.BetterConfigParser::getGeneral(), DTMtimeHandler::getNewObjects(), DTFakeVDriftESProducer::produce(), set(), and setSLMtime().

272  {
273  return set( wheelId, stationId, sectorId,
274  slId, 0, 0,
275  mTime, mTrms, unit );
276 }
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float  mTime,
float  mTrms,
DTVelocityUnits::type  unit 
)

Definition at line 279 of file DTMtime.cc.

References set().

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

285  {
286  return set( wheelId, stationId, sectorId,
287  slId, 0, 0,
288  mTime, mTrms, unit );
289 }
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)

Definition at line 292 of file DTMtime.cc.

References cacheMap(), data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTBufferTree< Key, Content >::insert(), combine::key, DTMtimeData::mTime, DTMtimeData::mTrms, DTTimeUnits::ns, nsPerCount, edm::second(), and DTMtimeId::stationId.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

300  {
301 
302  if ( unit == DTTimeUnits::ns ) {
303  mTime /= nsPerCount;
304  mTrms /= nsPerCount;
305  }
306 
307 // std::string mName = mapName();
308 // DTBufferTree<int,int>* dBuf =
309 // DTDataBuffer<int,int>::findBuffer( mName );
310 // if ( dBuf == 0 ) {
311 // cacheMap();
312 // dBuf =
313 // DTDataBuffer<int,int>::findBuffer( mName );
314 // }
315  if ( dBuf == 0 ) cacheMap();
316  std::vector<int> chanKey;
317  chanKey.reserve(6);
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 );
324  int ientry;
325  int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
326 
327  if ( !searchStatus ) {
328  DTMtimeData& data( dataList[ientry].second );
329  data.mTime = mTime;
330  data.mTrms = mTrms;
331  return -1;
332  }
333  else {
334  DTMtimeId key;
335  key. wheelId = wheelId;
336  key.stationId = stationId;
337  key. sectorId = sectorId;
338  key. slId = slId;
339  key. layerId = layerId;
340  key. cellId = cellId;
342  data.mTime = mTime;
343  data.mTrms = mTrms;
344  ientry = dataList.size();
345  dataList.push_back( std::pair<DTMtimeId,DTMtimeData>( key, data ) );
346  dBuf->insert( chanKey.begin(), chanKey.end(), ientry );
347  return 0;
348  }
349 
350  return 99;
351 
352 }
int stationId
Definition: DTMtime.h:47
float nsPerCount
Definition: DTMtime.h:263
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
U second(std::pair< T, U > const &p)
void cacheMap() const
read and store full content
Definition: DTMtime.cc:456
DTBufferTree< int, int > * dBuf
Definition: DTMtime.h:267
float mTrms
Definition: DTMtime.h:64
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:265
int find(ElementKey fKey, ElementKey lKey, Content &cont)
float unit() const
Definition: DTMtime.cc:241
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
list key
Definition: combine.py:13
float mTime
Definition: DTMtime.h:63
int DTMtime::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
float  mTime,
float  mTrms,
DTVelocityUnits::type  unit 
)

Definition at line 355 of file DTMtime.cc.

References DTVelocityUnits::cm_per_count, DTVelocityUnits::cm_per_ns, DTTimeUnits::counts, nsPerCount, and set().

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

363  {
365  mTrms /= mTime;
366  mTime = 2.1 / mTime;
367  }
368  if ( unit == DTVelocityUnits::cm_per_ns ) {
369  mTime *= nsPerCount;
370  mTrms /= mTime;
371  mTime = 2.1 / mTime;
372  }
373  return set( wheelId, stationId, sectorId,
374  slId, layerId, cellId,
375  mTime, mTrms, DTTimeUnits::counts );
376 
377 }
float nsPerCount
Definition: DTMtime.h:263
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::set ( const DTSuperLayerId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)

Definition at line 380 of file DTMtime.cc.

References set(), and relativeConstraints::station.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

383  {
384  return set( id.wheel(),
385  id.station(),
386  id.sector(),
387  id.superLayer(), 0, 0,
388  mTime, mTrms, unit );
389 }
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::set ( const DTSuperLayerId id,
float  mTime,
float  mTrms,
DTVelocityUnits::type  unit 
)

Definition at line 392 of file DTMtime.cc.

References set(), and relativeConstraints::station.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

395  {
396  return set( id.wheel(),
397  id.station(),
398  id.sector(),
399  id.superLayer(), 0, 0,
400  mTime, mTrms, unit );
401 }
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::set ( const DetId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)

Definition at line 404 of file DTMtime.cc.

References DTLayerId::layer(), DTChamberId::sector(), set(), DTChamberId::station(), DTSuperLayerId::superLayer(), unit(), DTChamberId::wheel(), and DTWireId::wire().

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

407  {
408  DTWireId wireId( id.rawId() );
409  return set( wireId.wheel(),
410  wireId.station(),
411  wireId.sector(),
412  wireId.superLayer(),
413  wireId.layer(),
414  wireId.wire(),
415  mTime, mTrms, unit );
416 }
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::set ( const DetId id,
float  mTime,
float  mTrms,
DTVelocityUnits::type  unit 
)

Definition at line 419 of file DTMtime.cc.

References DTLayerId::layer(), DTChamberId::sector(), set(), DTChamberId::station(), DTSuperLayerId::superLayer(), unit(), DTChamberId::wheel(), and DTWireId::wire().

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

422  {
423  DTWireId wireId( id.rawId() );
424  return set( wireId.wheel(),
425  wireId.station(),
426  wireId.sector(),
427  wireId.superLayer(),
428  wireId.layer(),
429  wireId.wire(),
430  mTime, mTrms, unit );
431 }
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::setSLMtime ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)
inline

Definition at line 173 of file DTMtime.h.

References set().

180  { return set( wheelId, stationId, sectorId, slId, 0, 0,
181  mTime, mTrms, unit ); };
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::setSLMtime ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)
inline

Definition at line 182 of file DTMtime.h.

References set().

191  { return set( wheelId, stationId, sectorId, slId, layerId, cellId,
192  mTime, mTrms, unit ); };
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::setSLMtime ( const DTSuperLayerId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)
inline

Definition at line 193 of file DTMtime.h.

References set().

197  { return set( id, mTime, mTrms, unit ); };
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
int DTMtime::setSLMtime ( const DetId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)
inline

Definition at line 198 of file DTMtime.h.

References set().

202  { return set( id, mTime, mTrms, unit ); };
int set(int wheelId, int stationId, int sectorId, int slId, float mTime, float mTrms, DTTimeUnits::type unit)
Definition: DTMtime.cc:266
float unit() const
Definition: DTMtime.cc:241
void DTMtime::setUnit ( float  unit)

Definition at line 434 of file DTMtime.cc.

References nsPerCount, and unit().

434  {
435  nsPerCount = unit;
436 }
float nsPerCount
Definition: DTMtime.h:263
float unit() const
Definition: DTMtime.cc:241
int DTMtime::slMtime ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const
inline

get content

Operations

Definition at line 85 of file DTMtime.h.

92  { return get( wheelId, stationId, sectorId, slId, 0, 0,
93  mTime, mTrms, unit ); };
float unit() const
Definition: DTMtime.cc:241
int DTMtime::slMtime ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
int  layerId,
int  cellId,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const
inline

Definition at line 94 of file DTMtime.h.

References unit().

103  { return get( wheelId, stationId, sectorId, slId, layerId, cellId,
104  mTime, mTrms, unit ); };
float unit() const
Definition: DTMtime.cc:241
int DTMtime::slMtime ( const DTSuperLayerId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const
inline

Definition at line 105 of file DTMtime.h.

References unit().

109  { return get( id, mTime, mTrms, unit ); };
float unit() const
Definition: DTMtime.cc:241
int DTMtime::slMtime ( const DetId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const
inline

Definition at line 110 of file DTMtime.h.

References unit().

114  { return get( id, mTime, mTrms, unit ); };
float unit() const
Definition: DTMtime.cc:241
float DTMtime::unit ( ) const

Definition at line 241 of file DTMtime.cc.

References nsPerCount.

Referenced by get(), set(), setUnit(), and slMtime().

241  {
242  return nsPerCount;
243 }
float nsPerCount
Definition: DTMtime.h:263
const std::string & DTMtime::version ( ) const

access version

Definition at line 247 of file DTMtime.cc.

References dataVersion.

Referenced by DTLinearDriftFromDBAlgo::setES().

247  {
248  return dataVersion;
249 }
std::string dataVersion
Definition: DTMtime.h:262
std::string & DTMtime::version ( )

Definition at line 252 of file DTMtime.cc.

References dataVersion.

252  {
253  return dataVersion;
254 }
std::string dataVersion
Definition: DTMtime.h:262

Member Data Documentation

std::vector< std::pair<DTMtimeId,DTMtimeData> > DTMtime::dataList
private

Definition at line 265 of file DTMtime.h.

Referenced by begin(), cacheMap(), clear(), DTMtime(), end(), get(), and set().

std::string DTMtime::dataVersion
private

Definition at line 262 of file DTMtime.h.

Referenced by mapName(), and version().

DTBufferTree<int,int>* DTMtime::dBuf
private

Definition at line 267 of file DTMtime.h.

Referenced by cacheMap(), clear(), DTMtime(), get(), set(), and ~DTMtime().

float DTMtime::nsPerCount
private

Definition at line 263 of file DTMtime.h.

Referenced by get(), set(), setUnit(), and unit().