#include <DTTtrig.h>
Public Types | |
typedef std::vector< std::pair < DTTtrigId, DTTtrigData > >::const_iterator | const_iterator |
Access methods to data. More... | |
Public Member Functions | |
const_iterator | begin () const |
void | clear () |
reset content More... | |
DTTtrig () | |
DTTtrig (const std::string &version) | |
const_iterator | end () const |
int | get (int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const |
get content More... | |
int | get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const |
int | get (const DTSuperLayerId &id, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const |
int | get (const DetId &id, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const |
int | get (int wheelId, int stationId, int sectorId, int slId, float &tTrig, DTTimeUnits::type unit) const |
int | get (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &tTrig, DTTimeUnits::type unit) const |
int | get (const DTSuperLayerId &id, float &tTrig, DTTimeUnits::type unit) const |
int | get (const DetId &id, float &tTrig, DTTimeUnits::type unit) const |
int | set (int wheelId, int stationId, int sectorId, int slId, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit) |
int | set (int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit) |
int | set (const DTSuperLayerId &id, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit) |
int | set (const DetId &id, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit) |
void | setUnit (float unit) |
float | unit () const |
const std::string & | version () const |
access version More... | |
std::string & | version () |
~DTTtrig () | |
Private Member Functions | |
void | cacheMap () const |
read and store full content More... | |
DTTtrig (const DTTtrig &src)=delete | |
std::string | mapName () const |
DTTtrig & | operator= (const DTTtrig &rhs)=delete |
Private Attributes | |
std::vector< std::pair < DTTtrigId, DTTtrigData > > | dataList |
std::string | dataVersion |
std::atomic< DTBufferTree< int, int > * > | dBuf |
float | nsPerCount |
Description: Class to hold drift tubes TTrigs ( SL by SL time offsets )
typedef std::vector< std::pair<DTTtrigId, DTTtrigData> >::const_iterator DTTtrig::const_iterator |
DTTtrig::DTTtrig | ( | ) |
Constructor
Definition at line 34 of file DTTtrig.cc.
References dataList, and dBuf.
DTTtrig::DTTtrig | ( | const std::string & | version | ) |
Definition at line 42 of file DTTtrig.cc.
References dataList, and dBuf.
DTTtrig::~DTTtrig | ( | ) |
|
privatedelete |
DTTtrig::const_iterator DTTtrig::begin | ( | void | ) | const |
Definition at line 376 of file DTTtrig.cc.
References dataList.
Referenced by DTtTrigDBValidation::beginRun(), DTTTrigCalibration::dumpTTrigMap(), and DTTTrigCalibration::plotTTrig().
|
private |
read and store full content
Definition at line 393 of file DTTtrig.cc.
References dataList, dBuf, and DTTtrigId::stationId.
Referenced by get(), and set().
void DTTtrig::clear | ( | void | ) |
reset content
Definition at line 252 of file DTTtrig.cc.
References dataList, and dBuf.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
DTTtrig::const_iterator DTTtrig::end | ( | void | ) | const |
Definition at line 381 of file DTTtrig.cc.
References dataList.
Referenced by DTtTrigDBValidation::beginRun(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), DTTTrigCalibration::dumpTTrigMap(), and DTTTrigCalibration::plotTTrig().
int DTTtrig::get | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
float & | tTrig, | ||
float & | tTrms, | ||
float & | kFact, | ||
DTTimeUnits::type | unit | ||
) | const |
get content
Operations
Definition at line 86 of file DTTtrig.cc.
References unit().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), DTtTrigDBValidation::beginRun(), dtCalibration::DTTTrigFillWithAverage::correction(), dtCalibration::DTTTrigConstantShift::correction(), DTTTrigSyncFromDB::emulatorOffset(), DTTTrigOffsetCalibration::endJob(), DTTTrigCorrection::endJob(), dtCalibration::DTTTrigFillWithAverage::getAverage(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and DTTTrigSyncFromDB::offset().
int DTTtrig::get | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId, | ||
float & | tTrig, | ||
float & | tTrms, | ||
float & | kFact, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 101 of file DTTtrig.cc.
References cacheMap(), data, dataList, dBuf, spr::find(), DTTtrigData::kFact, DTTimeUnits::ns, nsPerCount, edm::second(), DTTtrigData::tTrig, and DTTtrigData::tTrms.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
int DTTtrig::get | ( | const DTSuperLayerId & | id, |
float & | tTrig, | ||
float & | tTrms, | ||
float & | kFact, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 152 of file DTTtrig.cc.
References unit().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
int DTTtrig::get | ( | const DetId & | id, |
float & | tTrig, | ||
float & | tTrms, | ||
float & | kFact, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 165 of file DTTtrig.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().
int DTTtrig::get | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
float & | tTrig, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 181 of file DTTtrig.cc.
References unit().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
int DTTtrig::get | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId, | ||
float & | tTrig, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 192 of file DTTtrig.cc.
References ntuplemaker::status, and unit().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
int DTTtrig::get | ( | const DTSuperLayerId & | id, |
float & | tTrig, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 211 of file DTTtrig.cc.
References unit().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
int DTTtrig::get | ( | const DetId & | id, |
float & | tTrig, | ||
DTTimeUnits::type | unit | ||
) | const |
Definition at line 222 of file DTTtrig.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().
|
private |
Definition at line 386 of file DTTtrig.cc.
References dataVersion, and mergeVDriftHistosByStation::name.
int DTTtrig::set | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
float | tTrig, | ||
float | tTrms, | ||
float | kFact, | ||
DTTimeUnits::type | unit | ||
) |
Definition at line 261 of file DTTtrig.cc.
Referenced by DTTTrigCorrectionFirst::endJob(), DTTTrigCorrection::endJob(), DTTTrigOffsetCalibration::endJob(), DTTTrigCalibration::endJob(), betterConfigParser.BetterConfigParser::getGeneral(), DTTtrigHandler::getNewObjects(), DTFakeTTrigESProducer::produce(), and set().
int DTTtrig::set | ( | int | wheelId, |
int | stationId, | ||
int | sectorId, | ||
int | slId, | ||
int | layerId, | ||
int | cellId, | ||
float | tTrig, | ||
float | tTrms, | ||
float | kFact, | ||
DTTimeUnits::type | unit | ||
) |
Definition at line 276 of file DTTtrig.cc.
References cacheMap(), data, dataList, dBuf, spr::find(), edm::eventsetup::heterocontainer::insert(), combine::key, DTTtrigData::kFact, DTTimeUnits::ns, nsPerCount, edm::second(), DTTtrigId::stationId, DTTtrigData::tTrig, and DTTtrigData::tTrms.
Referenced by betterConfigParser.BetterConfigParser::getGeneral().
int DTTtrig::set | ( | const DTSuperLayerId & | id, |
float | tTrig, | ||
float | tTrms, | ||
float | kFact, | ||
DTTimeUnits::type | unit | ||
) |
Definition at line 342 of file DTTtrig.cc.
References set(), and relativeConstraints::station.
Referenced by betterConfigParser.BetterConfigParser::getGeneral().
int DTTtrig::set | ( | const DetId & | id, |
float | tTrig, | ||
float | tTrms, | ||
float | kFact, | ||
DTTimeUnits::type | unit | ||
) |
Definition at line 355 of file DTTtrig.cc.
References DTLayerId::layer(), DTChamberId::sector(), set(), DTChamberId::station(), DTSuperLayerId::superLayer(), unit(), DTChamberId::wheel(), and DTWireId::wire().
Referenced by betterConfigParser.BetterConfigParser::getGeneral().
void DTTtrig::setUnit | ( | float | unit | ) |
float DTTtrig::unit | ( | ) | const |
Definition at line 236 of file DTTtrig.cc.
References nsPerCount.
const std::string & DTTtrig::version | ( | ) | const |
access version
Definition at line 242 of file DTTtrig.cc.
References dataVersion.
Referenced by DTTTrigSyncFromDB::setES().
std::string & DTTtrig::version | ( | ) |
|
private |
|
private |
|
mutableprivate |
Definition at line 202 of file DTTtrig.h.
Referenced by cacheMap(), clear(), DTTtrig(), get(), set(), and ~DTTtrig().