Utility class that identifies a position within the strip tracker geometrical structure, down to the level of an APV25 chip. More...
#include <SiStripDetKey.h>
Public Member Functions | |
const uint16_t & | apvPairNumber () const |
const uint16_t & | apvWithinPair () const |
bool | isConsistent (const SiStripKey &) const |
bool | isEqual (const SiStripKey &) const |
bool | isInvalid () const |
bool | isInvalid (const sistrip::Granularity &) const |
bool | isValid () const |
bool | isValid (const sistrip::Granularity &) const |
const uint16_t & | partition () const |
virtual void | print (std::stringstream &ss) const |
SiStripDetKey (const uint16_t &partition) | |
SiStripDetKey (const DetId &det_id, const uint16_t &apv_pair_number=0, const uint16_t &apv_within_pair=0) | |
SiStripDetKey (const SiStripDetId &det_id) | |
SiStripDetKey (const uint32_t &det_key) | |
SiStripDetKey (const std::string &directory_path) | |
SiStripDetKey (const SiStripDetKey &) | |
SiStripDetKey (const SiStripKey &) | |
SiStripDetKey (const SiStripKey &, const sistrip::Granularity &) | |
SiStripDetKey () | |
virtual void | terse (std::stringstream &ss) const |
Public Member Functions inherited from SiStripKey | |
const uint16_t & | channel () const |
const sistrip::Granularity & | granularity () const |
const uint32_t & | key () const |
const SiStripKey & | operator= (const SiStripKey &) |
const std::string & | path () const |
SiStripKey (const uint32_t &key) | |
SiStripKey (const std::string &directory_path) | |
SiStripKey (const SiStripKey &) | |
SiStripKey () | |
virtual | ~SiStripKey () |
Private Member Functions | |
void | initFromKey () |
void | initFromPath () |
void | initFromValue () |
void | initGranularity () |
Private Attributes | |
uint16_t | apvPairNumber_ |
uint16_t | apvWithinPair_ |
uint16_t | partition_ |
Static Private Attributes | |
static const uint16_t | partitionMask_ = 0x07 |
static const uint16_t | partitionOffset_ = 29 |
Additional Inherited Members | |
Protected Member Functions inherited from SiStripKey | |
void | channel (const uint16_t &) |
void | granularity (const sistrip::Granularity &) |
void | key (const uint32_t &) |
void | path (const std::string &) |
Utility class that identifies a position within the strip tracker geometrical structure, down to the level of an APV25 chip.
NOTA BENE: *** NOT FINISHED ***
can generate another key that is NOT DetId and packs sistrip-specific data in a more condensed way, so that all levels can be encoded with "all" and "invalid" values, down to level of apv. also, need "conversion tool" that re-generates DetId key from this new key. this is only way...!!! maybe can "safeguard" use of this key as a DetId by reserving bits 22-24 as a flag (eg, set all high), so that if an attempt to build DetId using SiStripDetId class, we can understand if key is real DetId or not... what about going to level of apv?... what about levels about module?...
Definition at line 28 of file SiStripDetKey.h.
SiStripDetKey::SiStripDetKey | ( | const uint16_t & | partition | ) |
Constructor using partition.
Definition at line 9 of file SiStripDetKey.cc.
References initFromKey(), initFromPath(), initFromValue(), and initGranularity().
SiStripDetKey::SiStripDetKey | ( | const DetId & | det_id, |
const uint16_t & | apv_pair_number = 0 , |
||
const uint16_t & | apv_within_pair = 0 |
||
) |
Constructor using DetId, APV pair and APV pos within pair.
Definition at line 24 of file SiStripDetKey.cc.
References initFromKey(), initFromPath(), initFromValue(), and initGranularity().
SiStripDetKey::SiStripDetKey | ( | const SiStripDetId & | det_id | ) |
Constructor using SiStripDetId.
Definition at line 41 of file SiStripDetKey.cc.
References initFromKey(), initFromPath(), initFromValue(), and initGranularity().
SiStripDetKey::SiStripDetKey | ( | const uint32_t & | det_key | ) |
Constructor using 32-bit "DET key".
Definition at line 56 of file SiStripDetKey.cc.
References initFromKey(), initFromPath(), initFromValue(), and initGranularity().
SiStripDetKey::SiStripDetKey | ( | const std::string & | directory_path | ) |
Constructor using directory path.
Definition at line 71 of file SiStripDetKey.cc.
References initFromKey(), initFromPath(), initFromValue(), and initGranularity().
SiStripDetKey::SiStripDetKey | ( | const SiStripDetKey & | input | ) |
Copy constructor.
Definition at line 86 of file SiStripDetKey.cc.
References SiStripKey::granularity(), SiStripKey::key(), and SiStripKey::path().
SiStripDetKey::SiStripDetKey | ( | const SiStripKey & | input | ) |
Copy constructor using base class.
Definition at line 99 of file SiStripDetKey.cc.
References apvPairNumber(), apvPairNumber_, apvWithinPair(), apvWithinPair_, SiStripKey::granularity(), input, SiStripKey::key(), partition(), partition_, and SiStripKey::path().
SiStripDetKey::SiStripDetKey | ( | const SiStripKey & | input, |
const sistrip::Granularity & | gran | ||
) |
Copy to level specified by granularity.
Definition at line 118 of file SiStripDetKey.cc.
References initFromKey(), initFromPath(), initFromValue(), initGranularity(), input, sistrip::PARTITION, partition(), and partition_.
SiStripDetKey::SiStripDetKey | ( | ) |
|
inline |
Returns APV pair number.
Definition at line 142 of file SiStripDetKey.h.
References apvPairNumber_.
Referenced by isConsistent(), isEqual(), and SiStripDetKey().
|
inline |
Returns APV position within pair.
Definition at line 143 of file SiStripDetKey.h.
References apvWithinPair_.
Referenced by isConsistent(), isEqual(), and SiStripDetKey().
|
privatevirtual |
Reimplemented from SiStripKey.
Definition at line 229 of file SiStripDetKey.cc.
References sistrip::invalid32_, sistrip::invalid_, SiStripKey::key(), partition_, partitionMask_, and partitionOffset_.
Referenced by SiStripDetKey().
|
privatevirtual |
Reimplemented from SiStripKey.
Definition at line 262 of file SiStripDetKey.cc.
References sistrip::detectorView_, dir, sistrip::dir_, spr::find(), GetRecoTauVFromDQM_MC_cff::next, sistrip::null_, partition(), sistrip::partition_, partition_, SiStripKey::path(), sistrip::root_, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by SiStripDetKey().
|
privatevirtual |
Reimplemented from SiStripKey.
Definition at line 215 of file SiStripDetKey.cc.
References sistrip::invalid_, and partition_.
Referenced by SiStripDetKey().
|
privatevirtual |
Reimplemented from SiStripKey.
Definition at line 328 of file SiStripDetKey.cc.
References SiStripKey::channel(), SiStripKey::granularity(), sistrip::invalid_, sistrip::PARTITION, partition_, sistrip::TRACKER, and sistrip::UNKNOWN_GRAN.
Referenced by SiStripDetKey().
|
virtual |
"Consistent" means identical and/or null (ie, "all") data.
Reimplemented from SiStripKey.
Definition at line 164 of file SiStripDetKey.cc.
References apvPairNumber(), apvPairNumber_, apvWithinPair(), apvWithinPair_, input, isEqual(), SiStripKey::key(), partition(), and partition_.
|
virtual |
Identifies key objects with identical member data.
Reimplemented from SiStripKey.
Definition at line 152 of file SiStripDetKey.cc.
References apvPairNumber(), apvPairNumber_, apvWithinPair(), apvWithinPair_, input, SiStripKey::key(), partition(), and partition_.
Referenced by isConsistent().
|
virtual |
Identifies all member data as being invalid.
Reimplemented from SiStripKey.
Definition at line 196 of file SiStripDetKey.cc.
References sistrip::APV.
|
virtual |
All member data to level of "Granularity" are invalid. If sistrip::Granularity is "undefined", returns true.
Reimplemented from SiStripKey.
Definition at line 202 of file SiStripDetKey.cc.
References sistrip::invalid_, sistrip::PARTITION, partition_, sistrip::TRACKER, sistrip::UNDEFINED_GRAN, and sistrip::UNKNOWN_GRAN.
|
virtual |
Identifies all member data as being "valid" or null ("all").
Reimplemented from SiStripKey.
Definition at line 177 of file SiStripDetKey.cc.
References sistrip::APV.
Referenced by print(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
virtual |
All member data to level of "Granularity" are valid. If sistrip::Granularity is "undefined", returns false.
Reimplemented from SiStripKey.
Definition at line 183 of file SiStripDetKey.cc.
References sistrip::invalid_, sistrip::PARTITION, partition_, sistrip::TRACKER, sistrip::UNDEFINED_GRAN, and sistrip::UNKNOWN_GRAN.
Referenced by core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
Returns partition.
Definition at line 141 of file SiStripDetKey.h.
References partition_.
Referenced by initFromPath(), isConsistent(), isEqual(), print(), SiStripDetKey(), and terse().
|
virtual |
Print member data of the key
Reimplemented from SiStripKey.
Definition at line 351 of file SiStripDetKey.cc.
References SiStripKey::channel(), TauDecayModes::dec, SiStripEnumsAndStrings::granularity(), SiStripKey::granularity(), isValid(), SiStripKey::key(), partition(), and SiStripKey::path().
Referenced by operator<<().
|
virtual |
A terse summary of the key
Reimplemented from SiStripKey.
Definition at line 344 of file SiStripDetKey.cc.
References partition().
|
private |
APV pair number [0,1-3,invalid].
Definition at line 126 of file SiStripDetKey.h.
Referenced by apvPairNumber(), isConsistent(), isEqual(), and SiStripDetKey().
|
private |
APV position within pair [0,1-2,invalid].
Definition at line 129 of file SiStripDetKey.h.
Referenced by apvWithinPair(), isConsistent(), isEqual(), and SiStripDetKey().
|
private |
partition [0,1-4,invalid].
Definition at line 123 of file SiStripDetKey.h.
Referenced by initFromKey(), initFromPath(), initFromValue(), initGranularity(), isConsistent(), isEqual(), isInvalid(), isValid(), partition(), and SiStripDetKey().
|
staticprivate |
Definition at line 135 of file SiStripDetKey.h.
Referenced by initFromKey().
|
staticprivate |
Definition at line 132 of file SiStripDetKey.h.
Referenced by initFromKey().