Base utility class that identifies a position within a logical structure of the strip tracker. More...
#include <SiStripKey.h>
Public Member Functions | |
const uint16_t & | channel () const |
const sistrip::Granularity & | granularity () const |
virtual bool | isConsistent (const SiStripKey &) const |
virtual bool | isEqual (const SiStripKey &) const |
virtual bool | isInvalid () const |
virtual bool | isInvalid (const sistrip::Granularity &) const |
virtual bool | isValid () const |
virtual bool | isValid (const sistrip::Granularity &) const |
const uint32_t & | key () const |
const SiStripKey & | operator= (const SiStripKey &) |
const std::string & | path () const |
virtual void | print (std::stringstream &ss) const |
SiStripKey (const uint32_t &key) | |
SiStripKey (const std::string &directory_path) | |
SiStripKey (const SiStripKey &) | |
SiStripKey () | |
virtual void | terse (std::stringstream &ss) const |
virtual | ~SiStripKey () |
Protected Member Functions | |
void | channel (const uint16_t &) |
void | granularity (const sistrip::Granularity &) |
virtual void | initFromKey () |
virtual void | initFromPath () |
virtual void | initFromValue () |
virtual void | initGranularity () |
void | key (const uint32_t &) |
void | path (const std::string &) |
Private Attributes | |
uint16_t | channel_ |
sistrip::Granularity | granularity_ |
uint32_t | key_ |
std::string | path_ |
Base utility class that identifies a position within a logical structure of the strip tracker.
Definition at line 23 of file SiStripKey.h.
SiStripKey::SiStripKey | ( | const uint32_t & | key | ) |
SiStripKey::SiStripKey | ( | const std::string & | directory_path | ) |
SiStripKey::SiStripKey | ( | const SiStripKey & | input | ) |
Copy constructor.
Definition at line 27 of file SiStripKey.cc.
SiStripKey::SiStripKey | ( | ) |
|
inlinevirtual |
Virtual destructor.
Definition at line 45 of file SiStripKey.h.
References channel(), granularity(), isConsistent(), isEqual(), isInvalid(), isValid(), key(), path(), print(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Returns channel for key granularity.
Definition at line 128 of file SiStripKey.h.
References channel_.
Referenced by CommissioningHistosUsingDb::deviceIsPresent(), SummaryGeneratorControlView::fill(), SiStripCommissioningSource::fillCablingHistos(), initGranularity(), SiStripDetKey::initGranularity(), SiStripFecKey::initGranularity(), SiStripFedKey::initGranularity(), isEqual(), operator=(), SiStripNullKey::print(), print(), SiStripDetKey::print(), SiStripFecKey::print(), SiStripFedKey::print(), SiStripHistoTitle::SiStripHistoTitle(), ApvTimingHistosUsingDb::update(), OptoScanHistosUsingDb::update(), VpspScanHistosUsingDb::update(), and ~SiStripKey().
|
inlineprotected |
Definition at line 133 of file SiStripKey.h.
References officialStyle::chan, and channel_.
|
inline |
Returns granularity to which key is unambiguous.
Definition at line 127 of file SiStripKey.h.
References granularity_.
Referenced by CommissioningHistograms::extractHistograms(), initGranularity(), SiStripDetKey::initGranularity(), SiStripFecKey::initGranularity(), SiStripFedKey::initGranularity(), isEqual(), operator=(), SiStripNullKey::print(), print(), SiStripDetKey::print(), SiStripFecKey::print(), SiStripFedKey::print(), SiStripDetKey::SiStripDetKey(), SiStripFecKey::SiStripFecKey(), SiStripFedKey::SiStripFedKey(), SiStripHistoTitle::SiStripHistoTitle(), and ~SiStripKey().
|
inlineprotected |
|
inlineprotectedvirtual |
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 96 of file SiStripKey.h.
|
inlineprotectedvirtual |
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 97 of file SiStripKey.h.
|
inlineprotectedvirtual |
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 95 of file SiStripKey.h.
|
inlineprotectedvirtual |
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 98 of file SiStripKey.h.
References channel(), granularity(), key(), path(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
"Consistent" means identical and/or null (ie, "all") data.
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 67 of file SiStripKey.cc.
References isEqual().
Referenced by ~SiStripKey().
|
virtual |
Identifies key objects with identical member data.
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 56 of file SiStripKey.cc.
References channel(), channel_, granularity(), granularity_, key(), key_, path(), and path_.
Referenced by isConsistent(), and ~SiStripKey().
|
virtual |
Identifies all member data as being invalid.
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 88 of file SiStripKey.cc.
References channel_, granularity_, sistrip::invalid32_, sistrip::invalid_, key_, sistrip::null_, path_, and sistrip::UNDEFINED_GRAN.
Referenced by isInvalid(), and ~SiStripKey().
|
virtual |
All member data to level of "Granularity" are invalid. If sistrip::Granularity is "undefined", returns true.
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 97 of file SiStripKey.cc.
References isInvalid().
|
virtual |
Identifies all member data as being "valid" or null ("all").
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 73 of file SiStripKey.cc.
References channel_, granularity_, sistrip::invalid32_, sistrip::invalid_, key_, sistrip::null_, path_, and sistrip::UNDEFINED_GRAN.
Referenced by ntupleDataFormat._Object::_checkIsValid(), isValid(), core.AutoHandle.AutoHandle::ReallyLoad(), and ~SiStripKey().
|
virtual |
All member data to level of "Granularity" are valid. If sistrip::Granularity is "undefined", returns false.
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 82 of file SiStripKey.cc.
References isValid().
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
Returns 32-bit key.
Definition at line 125 of file SiStripKey.h.
References key_.
Referenced by FedCablingAlgorithm::analyse(), FineDelayTask::book(), LatencyTask::book(), CommissioningHistosUsingDb::buildDetInfo(), SiStripFedCablingBuilderFromDb::buildFecCablingFromDetIds(), ViewTranslator::buildMaps(), CommissioningHistosUsingDb::detInfo(), CalibrationSummaryFactory::extract(), CommissioningHistograms::extractHistograms(), SiStripCommissioningSource::fillCablingHistos(), SiStripDetKey::initFromKey(), SiStripFecKey::initFromKey(), SiStripFedKey::initFromKey(), SiStripFecKey::initFromValue(), initGranularity(), SiStripDetKey::isConsistent(), SiStripFecKey::isConsistent(), SiStripFedKey::isConsistent(), isEqual(), SiStripDetKey::isEqual(), SiStripFecKey::isEqual(), SiStripFedKey::isEqual(), key(), SiStripFedCablingFakeESSource::make(), ConsistentWithKey::operator()(), operator<(), operator=(), SiStripNullKey::print(), print(), SiStripDetKey::print(), SiStripFecKey::print(), SiStripFedKey::print(), SiStripConfigDb::printAnalysisDescriptions(), SiStripConfigDb::printDeviceDescriptions(), SiStripDetKey::SiStripDetKey(), SiStripFecKey::SiStripFecKey(), SiStripFedKey::SiStripFedKey(), SiStripHistoTitle::SiStripHistoTitle(), PedsOnlyAnalysis::summary(), VpspScanAnalysis::summary(), NoiseAnalysis::summary(), PedestalsAnalysis::summary(), OptoScanAnalysis::summary(), DaqScopeModeAnalysis::summary(), FastFedCablingAnalysis::summary(), PedsFullNoiseAnalysis::summary(), PedestalsHistosUsingDb::update(), PedsFullNoiseHistosUsingDb::update(), OptoScanHistosUsingDb::update(), PedsOnlyHistosUsingDb::update(), NoiseHistosUsingDb::update(), ApvTimingHistosUsingDb::update(), DaqScopeModeHistosUsingDb::update(), VpspScanHistosUsingDb::update(), LatencyHistosUsingDb::update(), FastFedCablingHistosUsingDb::update(), FineDelayHistosUsingDb::update(), and ~SiStripKey().
|
inlineprotected |
Definition at line 130 of file SiStripKey.h.
const SiStripKey & SiStripKey::operator= | ( | const SiStripKey & | rhs | ) |
Assignment.
Definition at line 36 of file SiStripKey.cc.
References channel(), channel_, granularity(), granularity_, key(), key_, path(), and path_.
|
inline |
Returns directory path.
Definition at line 126 of file SiStripKey.h.
References path_.
Referenced by CommissioningHistosUsingDb::addDcuDetIds(), SiStripTFile::addDevice(), FineDelayTask::book(), LatencyTask::book(), SPYHistograms::bookFEDHistograms(), CommissioningHistograms::copyCustomInformation(), SummaryGeneratorReadoutView::fill(), SummaryGeneratorControlView::fill(), SiStripDetKey::initFromPath(), SiStripFecKey::initFromPath(), SiStripFedKey::initFromPath(), initGranularity(), isEqual(), operator=(), path(), SiStripNullKey::print(), print(), SiStripDetKey::print(), SiStripFecKey::print(), SiStripFedKey::print(), CommissioningHistograms::runNumber(), CommissioningHistograms::runType(), SiStripDetKey::SiStripDetKey(), SiStripFecKey::SiStripFecKey(), SiStripFedKey::SiStripFedKey(), FastFedCablingAnalysis::summary(), and ~SiStripKey().
|
inlineprotected |
Definition at line 131 of file SiStripKey.h.
|
virtual |
Print member data of the key
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 103 of file SiStripKey.cc.
References channel(), TauDecayModes::dec, SiStripEnumsAndStrings::granularity(), granularity(), key(), and path().
Referenced by operator<<(), and ~SiStripKey().
|
inlinevirtual |
A terse summary of the key
Reimplemented in SiStripFedKey, SiStripFecKey, SiStripDetKey, and SiStripNullKey.
Definition at line 89 of file SiStripKey.h.
|
private |
Channel of key granularity.
Definition at line 119 of file SiStripKey.h.
Referenced by channel(), isEqual(), isInvalid(), isValid(), and operator=().
|
private |
Granularity to which FED key is unambiguous.
Definition at line 116 of file SiStripKey.h.
Referenced by granularity(), isEqual(), isInvalid(), isValid(), and operator=().
|
private |
32-bit key.
Definition at line 110 of file SiStripKey.h.
Referenced by isEqual(), isInvalid(), isValid(), key(), and operator=().
|
private |
Directory path.
Definition at line 113 of file SiStripKey.h.
Referenced by valtools.comparison::comparisonOnWebSite(), valtools.comparison::comparisonUrl(), isEqual(), isInvalid(), isValid(), operator=(), path(), and valtools.comparison::submit().