File indexing completed on 2024-04-06 12:05:13
0001
0002 #ifndef DataFormats_SiStripCommon_SiStripNullKey_H
0003 #define DataFormats_SiStripCommon_SiStripNullKey_H
0004
0005 #include "DataFormats/SiStripCommon/interface/ConstantsForGranularity.h"
0006 #include "DataFormats/SiStripCommon/interface/SiStripKey.h"
0007
0008 class SiStripNullKey;
0009
0010
0011 std::ostream& operator<<(std::ostream&, const SiStripNullKey&);
0012
0013
0014
0015
0016
0017
0018
0019
0020 class SiStripNullKey : public SiStripKey {
0021 public:
0022
0023
0024
0025 SiStripNullKey();
0026
0027
0028
0029
0030 bool isEqual(const SiStripKey&) const override;
0031
0032
0033 bool isConsistent(const SiStripKey&) const override;
0034
0035
0036 bool isValid() const override;
0037
0038
0039
0040 bool isValid(const sistrip::Granularity&) const override;
0041
0042
0043 bool isInvalid() const override;
0044
0045
0046
0047 bool isInvalid(const sistrip::Granularity&) const override;
0048
0049
0050
0051
0052 void print(std::stringstream& ss) const override;
0053
0054
0055 void terse(std::stringstream& ss) const override { ; }
0056
0057 private:
0058
0059
0060 void initFromValue() override;
0061 void initFromKey() override;
0062 void initFromPath() override;
0063 void initGranularity() override;
0064 };
0065
0066 #endif