CMS 3D CMS Logo

SiStripNullKey.h
Go to the documentation of this file.
1 
2 #ifndef DataFormats_SiStripCommon_SiStripNullKey_H
3 #define DataFormats_SiStripCommon_SiStripNullKey_H
4 
7 
8 class SiStripNullKey;
9 
11 std::ostream& operator<<(std::ostream&, const SiStripNullKey&);
12 
20 class SiStripNullKey : public SiStripKey {
21 public:
22  // ---------- Constructors ----------
23 
26 
27  // ---------- Utility methods ----------
28 
30  bool isEqual(const SiStripKey&) const override;
31 
33  bool isConsistent(const SiStripKey&) const override;
34 
36  bool isValid() const override;
37 
40  bool isValid(const sistrip::Granularity&) const override;
41 
43  bool isInvalid() const override;
44 
47  bool isInvalid(const sistrip::Granularity&) const override;
48 
49  // ---------- Print methods ----------
50 
52  void print(std::stringstream& ss) const override;
53 
55  void terse(std::stringstream& ss) const override { ; }
56 
57 private:
58  // ---------- Private methods ----------
59 
60  void initFromValue() override;
61  void initFromKey() override;
62  void initFromPath() override;
63  void initGranularity() override;
64 };
65 
66 #endif // DataFormats_SiStripCommon_SiStripNullKey_H
sistrip::Granularity
Granularity
Definition: ConstantsForGranularity.h:60
SiStripKey.h
SiStripNullKey::SiStripNullKey
SiStripNullKey()
Definition: SiStripNullKey.cc:8
SiStripNullKey::isConsistent
bool isConsistent(const SiStripKey &) const override
Definition: SiStripNullKey.cc:22
ConstantsForGranularity.h
Constants and enumerated type for sistrip::Granularity.
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
SiStripNullKey::initGranularity
void initGranularity() override
Definition: SiStripNullKey.cc:54
SiStripNullKey::print
void print(std::stringstream &ss) const override
Definition: SiStripNullKey.cc:58
SiStripNullKey::initFromKey
void initFromKey() override
Definition: SiStripNullKey.cc:46
SiStripNullKey::initFromValue
void initFromValue() override
Definition: SiStripNullKey.cc:42
SiStripNullKey::isInvalid
bool isInvalid() const override
Definition: SiStripNullKey.cc:34
SiStripNullKey
Concrete implementation of abstract base, signifying null values or an "unknown" position or view.
Definition: SiStripNullKey.h:20
SiStripNullKey::isEqual
bool isEqual(const SiStripKey &) const override
Definition: SiStripNullKey.cc:12
operator<<
std::ostream & operator<<(std::ostream &, const SiStripNullKey &)
Definition: SiStripNullKey.cc:69
SiStripNullKey::initFromPath
void initFromPath() override
Definition: SiStripNullKey.cc:50
SiStripNullKey::isValid
bool isValid() const override
Definition: SiStripNullKey.cc:26
SiStripNullKey::terse
void terse(std::stringstream &ss) const override
Definition: SiStripNullKey.h:55
SiStripKey
Base utility class that identifies a position within a logical structure of the strip tracker.
Definition: SiStripKey.h:23