CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
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 (DTMtime const &)=delete
 
 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
 
void initialize ()
 
DTMtimeoperator= (DTMtime const &)=delete
 
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

std::string mapName () const
 read and store full content More...
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

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

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

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

Author
Paolo Ronchese INFN Padova

Definition at line 68 of file DTMtime.h.

Member Typedef Documentation

◆ const_iterator

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

Access methods to data.

Definition at line 186 of file DTMtime.h.

Constructor & Destructor Documentation

◆ DTMtime() [1/3]

DTMtime::DTMtime ( )

Constructor

Definition at line 31 of file DTMtime.cc.

References dataList.

31  : dataVersion(" "), nsPerCount(25.0 / 32.0), dBuf(new DTBufferTree<int, int>) {
32  dataList.reserve(1000);
33 }
float nsPerCount
Definition: DTMtime.h:194
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTMtime.h:198
std::string dataVersion
Definition: DTMtime.h:193
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196

◆ DTMtime() [2/3]

DTMtime::DTMtime ( DTMtime const &  )
delete

◆ DTMtime() [3/3]

DTMtime::DTMtime ( const std::string &  version)

Definition at line 35 of file DTMtime.cc.

References dataList.

37  dataList.reserve(1000);
38 }
float nsPerCount
Definition: DTMtime.h:194
const std::string & version() const
access version
Definition: DTMtime.cc:158
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTMtime.h:198
std::string dataVersion
Definition: DTMtime.h:193
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196

◆ ~DTMtime()

DTMtime::~DTMtime ( )

Destructor

Definition at line 47 of file DTMtime.cc.

47 {}

Member Function Documentation

◆ begin()

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

Definition at line 284 of file DTMtime.cc.

References dataList.

284 { return dataList.begin(); }
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196

◆ clear()

void DTMtime::clear ( void  )

reset content

Definition at line 162 of file DTMtime.cc.

References dataList, and initialize().

162  {
163  dataList.clear();
164  initialize();
165  return;
166 }
void initialize()
Definition: DTMtime.cc:294
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196

◆ end()

DTMtime::const_iterator DTMtime::end ( void  ) const

Definition at line 286 of file DTMtime.cc.

References dataList.

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

286 { return dataList.end(); }
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196

◆ get() [1/8]

int DTMtime::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const

◆ get() [2/8]

int DTMtime::get ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float &  mTime,
float &  mTrms,
DTVelocityUnits::type  unit 
) const

◆ get() [3/8]

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 66 of file DTMtime.cc.

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

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

74  {
75  mTime = mTrms = 0.0;
76 
77  std::vector<int> chanKey;
78  chanKey.reserve(6);
79  chanKey.push_back(wheelId);
80  chanKey.push_back(stationId);
81  chanKey.push_back(sectorId);
82  chanKey.push_back(slId);
83  chanKey.push_back(layerId);
84  chanKey.push_back(cellId);
85  int ientry;
86  int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
87  if (!searchStatus) {
88  const DTMtimeData& data(dataList[ientry].second);
89  mTime = data.mTime;
90  mTrms = data.mTrms;
91  if (unit == DTTimeUnits::ns) {
92  mTime *= nsPerCount;
93  mTrms *= nsPerCount;
94  }
95  }
96 
97  return searchStatus;
98 }
float nsPerCount
Definition: DTMtime.h:194
U second(std::pair< T, U > const &p)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTMtime.h:198
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196
float unit() const
Definition: DTMtime.cc:156

◆ get() [4/8]

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 100 of file DTMtime.cc.

References DTVelocityUnits::cm_per_count, DTVelocityUnits::cm_per_ns, DTTimeUnits::counts, nsPerCount, mps_update::status, and unit().

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

108  {
109  int status = get(wheelId, stationId, sectorId, slId, layerId, cellId, mTime, mTrms, DTTimeUnits::counts);
111  mTime = 2.1 / mTime;
112  mTrms *= mTime;
113  }
115  mTime = 2.1 / mTime;
116  mTrms *= mTime;
117  mTime /= nsPerCount;
118  }
119  return status;
120 }
float nsPerCount
Definition: DTMtime.h:194
float unit() const
Definition: DTMtime.cc:156

◆ get() [5/8]

int DTMtime::get ( const DTSuperLayerId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const

◆ get() [6/8]

int DTMtime::get ( const DTSuperLayerId id,
float &  mTime,
float &  mTrms,
DTVelocityUnits::type  unit 
) const

◆ get() [7/8]

int DTMtime::get ( const DetId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const

◆ get() [8/8]

int DTMtime::get ( const DetId id,
float &  mTime,
float &  mTrms,
DTVelocityUnits::type  unit 
) const

◆ initialize()

void DTMtime::initialize ( )

Definition at line 294 of file DTMtime.cc.

References officialStyle::chan, DTBufferTree< Key, Content >::clear(), dataList, dBuf, and DTBufferTree< Key, Content >::insert().

Referenced by clear().

294  {
295  dBuf->clear();
296 
297  int entryNum = 0;
298  int entryMax = dataList.size();
299  std::vector<int> chanKey;
300  chanKey.reserve(6);
301  while (entryNum < entryMax) {
302  const DTMtimeId& chan = dataList[entryNum].first;
303 
304  chanKey.clear();
305  chanKey.push_back(chan.wheelId);
306  chanKey.push_back(chan.stationId);
307  chanKey.push_back(chan.sectorId);
308  chanKey.push_back(chan.slId);
309  chanKey.push_back(chan.layerId);
310  chanKey.push_back(chan.cellId);
311  dBuf->insert(chanKey.begin(), chanKey.end(), entryNum++);
312  }
313 
314  return;
315 }
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTMtime.h:198
int insert(ElementKey fKey, ElementKey lKey, Content cont)
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196

◆ mapName()

std::string DTMtime::mapName ( ) const
private

read and store full content

Definition at line 288 of file DTMtime.cc.

References dataVersion, and Skims_PA_cff::name.

288  {
289  std::stringstream name;
290  name << dataVersion << "_map_Mtime" << this;
291  return name.str();
292 }
std::string dataVersion
Definition: DTMtime.h:193

◆ operator=()

DTMtime& DTMtime::operator= ( DTMtime const &  )
delete

◆ serialize()

template<class Archive >
void DTMtime::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ set() [1/8]

int DTMtime::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)

Definition at line 168 of file DTMtime.cc.

References unit().

168  {
169  return set(wheelId, stationId, sectorId, slId, 0, 0, mTime, mTrms, unit);
170 }
float unit() const
Definition: DTMtime.cc:156

◆ set() [2/8]

int DTMtime::set ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float  mTime,
float  mTrms,
DTVelocityUnits::type  unit 
)

Definition at line 172 of file DTMtime.cc.

References unit().

173  {
174  return set(wheelId, stationId, sectorId, slId, 0, 0, mTime, mTrms, unit);
175 }
float unit() const
Definition: DTMtime.cc:156

◆ set() [3/8]

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 177 of file DTMtime.cc.

References data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTBufferTree< Key, Content >::insert(), crabWrapper::key, DTTimeUnits::ns, nsPerCount, edm::second(), and unit().

185  {
186  if (unit == DTTimeUnits::ns) {
187  mTime /= nsPerCount;
188  mTrms /= nsPerCount;
189  }
190 
191  std::vector<int> chanKey;
192  chanKey.reserve(6);
193  chanKey.push_back(wheelId);
194  chanKey.push_back(stationId);
195  chanKey.push_back(sectorId);
196  chanKey.push_back(slId);
197  chanKey.push_back(layerId);
198  chanKey.push_back(cellId);
199  int ientry;
200  int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
201 
202  if (!searchStatus) {
203  DTMtimeData& data(dataList[ientry].second);
204  data.mTime = mTime;
205  data.mTrms = mTrms;
206  return -1;
207  } else {
208  DTMtimeId key;
209  key.wheelId = wheelId;
210  key.stationId = stationId;
211  key.sectorId = sectorId;
212  key.slId = slId;
213  key.layerId = layerId;
214  key.cellId = cellId;
216  data.mTime = mTime;
217  data.mTrms = mTrms;
218  ientry = dataList.size();
219  dataList.push_back(std::pair<DTMtimeId, DTMtimeData>(key, data));
220  dBuf->insert(chanKey.begin(), chanKey.end(), ientry);
221  return 0;
222  }
223 
224  return 99;
225 }
float nsPerCount
Definition: DTMtime.h:194
U second(std::pair< T, U > const &p)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTMtime.h:198
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
int insert(ElementKey fKey, ElementKey lKey, Content cont)
std::vector< std::pair< DTMtimeId, DTMtimeData > > dataList
Definition: DTMtime.h:196
float unit() const
Definition: DTMtime.cc:156

◆ set() [4/8]

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 227 of file DTMtime.cc.

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

235  {
237  mTrms /= mTime;
238  mTime = 2.1 / mTime;
239  }
241  mTime *= nsPerCount;
242  mTrms /= mTime;
243  mTime = 2.1 / mTime;
244  }
245  return set(wheelId, stationId, sectorId, slId, layerId, cellId, mTime, mTrms, DTTimeUnits::counts);
246 }
float nsPerCount
Definition: DTMtime.h:194
float unit() const
Definition: DTMtime.cc:156

◆ set() [5/8]

int DTMtime::set ( const DTSuperLayerId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)

Definition at line 248 of file DTMtime.cc.

References unit().

248  {
249  return set(id.wheel(), id.station(), id.sector(), id.superLayer(), 0, 0, mTime, mTrms, unit);
250 }
float unit() const
Definition: DTMtime.cc:156

◆ set() [6/8]

int DTMtime::set ( const DTSuperLayerId id,
float  mTime,
float  mTrms,
DTVelocityUnits::type  unit 
)

Definition at line 252 of file DTMtime.cc.

References unit().

252  {
253  return set(id.wheel(), id.station(), id.sector(), id.superLayer(), 0, 0, mTime, mTrms, unit);
254 }
float unit() const
Definition: DTMtime.cc:156

◆ set() [7/8]

int DTMtime::set ( const DetId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)

Definition at line 256 of file DTMtime.cc.

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

256  {
257  DTWireId wireId(id.rawId());
258  return set(wireId.wheel(),
259  wireId.station(),
260  wireId.sector(),
261  wireId.superLayer(),
262  wireId.layer(),
263  wireId.wire(),
264  mTime,
265  mTrms,
266  unit);
267 }
float unit() const
Definition: DTMtime.cc:156

◆ set() [8/8]

int DTMtime::set ( const DetId id,
float  mTime,
float  mTrms,
DTVelocityUnits::type  unit 
)

Definition at line 269 of file DTMtime.cc.

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

269  {
270  DTWireId wireId(id.rawId());
271  return set(wireId.wheel(),
272  wireId.station(),
273  wireId.sector(),
274  wireId.superLayer(),
275  wireId.layer(),
276  wireId.wire(),
277  mTime,
278  mTrms,
279  unit);
280 }
float unit() const
Definition: DTMtime.cc:156

◆ setSLMtime() [1/4]

int DTMtime::setSLMtime ( int  wheelId,
int  stationId,
int  sectorId,
int  slId,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)
inline

Definition at line 139 of file DTMtime.h.

References unit().

139  {
140  return set(wheelId, stationId, sectorId, slId, 0, 0, mTime, mTrms, unit);
141  };
float unit() const
Definition: DTMtime.cc:156

◆ setSLMtime() [2/4]

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 142 of file DTMtime.h.

References unit().

150  {
151  return set(wheelId, stationId, sectorId, slId, layerId, cellId, mTime, mTrms, unit);
152  };
float unit() const
Definition: DTMtime.cc:156

◆ setSLMtime() [3/4]

int DTMtime::setSLMtime ( const DTSuperLayerId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)
inline

Definition at line 153 of file DTMtime.h.

References triggerObjects_cff::id, and unit().

153  {
154  return set(id, mTime, mTrms, unit);
155  };
float unit() const
Definition: DTMtime.cc:156

◆ setSLMtime() [4/4]

int DTMtime::setSLMtime ( const DetId id,
float  mTime,
float  mTrms,
DTTimeUnits::type  unit 
)
inline

Definition at line 156 of file DTMtime.h.

References triggerObjects_cff::id, and unit().

156  {
157  return set(id, mTime, mTrms, unit);
158  };
float unit() const
Definition: DTMtime.cc:156

◆ setUnit()

void DTMtime::setUnit ( float  unit)

Definition at line 282 of file DTMtime.cc.

References nsPerCount, and unit().

282 { nsPerCount = unit; }
float nsPerCount
Definition: DTMtime.h:194
float unit() const
Definition: DTMtime.cc:156

◆ slMtime() [1/4]

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 84 of file DTMtime.h.

85  {
86  return get(wheelId, stationId, sectorId, slId, 0, 0, mTime, mTrms, unit);
87  };
float unit() const
Definition: DTMtime.cc:156

◆ slMtime() [2/4]

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 88 of file DTMtime.h.

References unit().

96  {
97  return get(wheelId, stationId, sectorId, slId, layerId, cellId, mTime, mTrms, unit);
98  };
float unit() const
Definition: DTMtime.cc:156

◆ slMtime() [3/4]

int DTMtime::slMtime ( const DTSuperLayerId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const
inline

Definition at line 99 of file DTMtime.h.

References triggerObjects_cff::id, and unit().

99  {
100  return get(id, mTime, mTrms, unit);
101  };
float unit() const
Definition: DTMtime.cc:156

◆ slMtime() [4/4]

int DTMtime::slMtime ( const DetId id,
float &  mTime,
float &  mTrms,
DTTimeUnits::type  unit 
) const
inline

Definition at line 102 of file DTMtime.h.

References triggerObjects_cff::id, and unit().

102  {
103  return get(id, mTime, mTrms, unit);
104  };
float unit() const
Definition: DTMtime.cc:156

◆ unit()

float DTMtime::unit ( ) const

Definition at line 156 of file DTMtime.cc.

References nsPerCount.

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

156 { return nsPerCount; }
float nsPerCount
Definition: DTMtime.h:194

◆ version() [1/2]

const std::string & DTMtime::version ( ) const

access version

Definition at line 158 of file DTMtime.cc.

References dataVersion.

Referenced by validation.Sample::datasetpattern(), validation.Sample::filename(), and DTLinearDriftFromDBAlgo::setES().

158 { return dataVersion; }
std::string dataVersion
Definition: DTMtime.h:193

◆ version() [2/2]

std::string & DTMtime::version ( )

Definition at line 160 of file DTMtime.cc.

References dataVersion.

Referenced by validation.Sample::datasetpattern(), and validation.Sample::filename().

160 { return dataVersion; }
std::string dataVersion
Definition: DTMtime.h:193

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 203 of file DTMtime.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 203 of file DTMtime.h.

Member Data Documentation

◆ dataList

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

Definition at line 196 of file DTMtime.h.

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

◆ dataVersion

std::string DTMtime::dataVersion
private

Definition at line 193 of file DTMtime.h.

Referenced by mapName(), and version().

◆ dBuf

edm::ConstRespectingPtr<DTBufferTree<int, int> > DTMtime::dBuf
private

Definition at line 198 of file DTMtime.h.

Referenced by get(), initialize(), and set().

◆ nsPerCount

float DTMtime::nsPerCount
private

Definition at line 194 of file DTMtime.h.

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