#include <DTT0.h>
Public Types | |
typedef std::vector< std::pair < DTT0Id, DTT0Data > >::const_iterator | const_iterator |
Access methods to data. More... | |
Public Member Functions | |
const_iterator | begin () const |
int | cellT0 (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const |
get content More... | |
int | cellT0 (const DTWireId &id, float &t0mean, float &t0rms, DTTimeUnits::type unit) const |
void | clear () |
reset content More... | |
DTT0 () | |
DTT0 (const std::string &version) | |
const_iterator | end () const |
int | get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const |
int | get (const DTWireId &id, float &t0mean, float &t0rms, DTTimeUnits::type unit) const |
int | set (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float t0mean, float t0rms, DTTimeUnits::type unit) |
int | set (const DTWireId &id, float t0mean, float t0rms, DTTimeUnits::type unit) |
int | setCellT0 (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float t0mean, float t0rms, DTTimeUnits::type unit) |
int | setCellT0 (const DTWireId &id, float t0mean, float t0rms, DTTimeUnits::type unit) |
void | setUnit (float unit) |
void | sortData () |
float | unit () const |
const std::string & | version () const |
access version More... | |
std::string & | version () |
~DTT0 () | |
Private Member Functions | |
void | cacheMap () const |
bool | checkOrder () const |
read and store full content More... | |
int | getRandom (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const |
int | getSorted (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const |
std::string | mapName () const |
int | maxCellsPerLayer () const |
Private Attributes | |
std::vector< std::pair< DTT0Id, DTT0Data > > | dataList |
std::string | dataVersion |
DTBufferTree< int, int > * | dBuf |
float | nsPerCount |
std::vector< int > * | sequencePtr |
DTBufferTree< int, int > * | sortedLayers |
Description: Class to hold drift tubes T0s ( cell by cell time offsets )
typedef std::vector< std::pair<DTT0Id, DTT0Data> >::const_iterator DTT0::const_iterator |
DTT0::DTT0 | ( | ) |
Constructor
Definition at line 35 of file DTT0.cc.
References dataList, dBuf, sequencePtr, and sortedLayers.
DTT0::DTT0 | ( | const std::string & | version | ) |
DTT0::~DTT0 | ( | ) |
DTT0::const_iterator DTT0::begin | ( | void | ) | const |
Definition at line 384 of file DTT0.cc.
References dataList.
Referenced by DTT0Calibration::endJob(), and DTT0CalibrationNew::endJob().
|
private |
Definition at line 507 of file DTT0.cc.
References dataList, dBuf, DTBufferTree< Key, Content >::insert(), sortedLayers, and DTT0Id::stationId.
Referenced by checkOrder(), and set().
|
inline |
|
inline |
|
private |
read and store full content
Definition at line 401 of file DTT0.cc.
References cacheMap(), DTT0Id::cellId, dataList, DTBufferTree< Key, Content >::find(), DTSequentialLayerNumber::id(), DTBufferTree< Key, Content >::insert(), DTSequentialLayerNumber::max(), maxCellsPerLayer(), evf::evtn::offset(), sequencePtr, sortedLayers, and DTT0Id::stationId.
Referenced by get(), and sortData().
void DTT0::clear | ( | void | ) |
reset content
Definition at line 271 of file DTT0.cc.
References dataList, and dBuf.
Referenced by python.Vispa.Views.WidgetView.WidgetView::closeEvent(), python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), python.Vispa.Views.WidgetView.WidgetView::setDataObjects(), python.Vispa.Views.TreeView.TreeView::updateContent(), python.Vispa.Views.TableView.TableView::updateContent(), python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and python.Vispa.Views.PropertyView.PropertyView::updateContent().
DTT0::const_iterator DTT0::end | ( | void | ) | const |
Definition at line 389 of file DTT0.cc.
References dataList.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), DTT0Calibration::endJob(), and DTT0CalibrationNew::endJob().
int DTT0::get | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId, | ||
float & | t0mean, | ||
float & | t0rms, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 94 of file DTT0.cc.
References checkOrder(), dBuf, getRandom(), getSorted(), and sortedLayers.
Referenced by Options.Options::__getitem__(), and DTConfigPedestals::getOffset().
int DTT0::get | ( | const DTWireId & | id, |
float & | t0mean, | ||
float & | t0rms, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 241 of file DTT0.cc.
References unit().
Referenced by Options.Options::__getitem__().
|
private |
Definition at line 120 of file DTT0.cc.
References runTheMatrix::data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTTimeUnits::ns, nsPerCount, edm::second(), DTT0Data::t0mean, and DTT0Data::t0rms.
Referenced by get().
|
private |
Definition at line 168 of file DTT0.cc.
References runTheMatrix::data, dataList, DTBufferTree< Key, Content >::find(), DTSequentialLayerNumber::id(), maxCellsPerLayer(), DTTimeUnits::ns, nsPerCount, edm::second(), sequencePtr, sortedLayers, DTT0Data::t0mean, and DTT0Data::t0rms.
Referenced by get().
|
private |
Definition at line 394 of file DTT0.cc.
References dataVersion, and mergeVDriftHistosByStation::name.
|
private |
Definition at line 163 of file DTT0.cc.
Referenced by checkOrder(), and getSorted().
int DTT0::set | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId, | ||
float | t0mean, | ||
float | t0rms, | ||
DTTimeUnits::type | unit | ||
) |
Definition at line 279 of file DTT0.cc.
References cacheMap(), runTheMatrix::data, dataList, dBuf, DTBufferTree< Key, Content >::find(), DTBufferTree< Key, Content >::insert(), combine::key, DTTimeUnits::ns, nsPerCount, edm::second(), DTT0Id::stationId, DTT0Data::t0mean, and DTT0Data::t0rms.
Referenced by DTT0Calibration::endJob(), DTT0CalibrationNew::endJob(), DTT0Handler::getNewObjects(), DTFakeT0ESProducer::produce(), set(), and setCellT0().
int DTT0::set | ( | const DTWireId & | id, |
float | t0mean, | ||
float | t0rms, | ||
DTTimeUnits::type | unit | ||
) |
Definition at line 345 of file DTT0.cc.
References set(), and relativeConstraints::station.
|
inline |
Definition at line 123 of file DTT0.h.
References set().
|
inline |
Definition at line 134 of file DTT0.h.
References set().
void DTT0::setUnit | ( | float | unit | ) |
void DTT0::sortData | ( | ) |
Definition at line 364 of file DTT0.cc.
References checkOrder(), DTBufferTree< Key, Content >::contList(), dataList, dBuf, and sortedLayers.
float DTT0::unit | ( | ) | const |
Definition at line 255 of file DTT0.cc.
References nsPerCount.
const std::string & DTT0::version | ( | ) | const |
std::string & DTT0::version | ( | ) |
Definition at line 266 of file DTT0.cc.
References dataVersion.
Definition at line 167 of file DTT0.h.
Referenced by begin(), cacheMap(), checkOrder(), clear(), DTT0(), end(), getRandom(), getSorted(), set(), and sortData().
|
private |
|
mutableprivate |
Definition at line 171 of file DTT0.h.
Referenced by cacheMap(), clear(), DTT0(), get(), getRandom(), set(), sortData(), and ~DTT0().
|
private |
Definition at line 165 of file DTT0.h.
Referenced by getRandom(), getSorted(), set(), setUnit(), and unit().
|
mutableprivate |
Definition at line 169 of file DTT0.h.
Referenced by checkOrder(), DTT0(), getSorted(), and ~DTT0().
|
mutableprivate |
Definition at line 170 of file DTT0.h.
Referenced by cacheMap(), checkOrder(), DTT0(), get(), getSorted(), sortData(), and ~DTT0().