test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
22  public:
23 
24  // ---------- Constructors ----------
25 
28 
29  // ---------- Utility methods ----------
30 
32  bool isEqual( const SiStripKey& ) const;
33 
35  bool isConsistent( const SiStripKey& ) const;
36 
38  bool isValid() const;
39 
42  bool isValid( const sistrip::Granularity& ) const;
43 
45  bool isInvalid() const;
46 
49  bool isInvalid( const sistrip::Granularity& ) const;
50 
51  // ---------- Print methods ----------
52 
54  virtual void print( std::stringstream& ss ) const;
55 
57  virtual void terse( std::stringstream& ss ) const {;}
58 
59  private:
60 
61  // ---------- Private methods ----------
62 
63  void initFromValue();
64  void initFromKey();
65  void initFromPath();
66  void initGranularity();
67 
68 };
69 
70 #endif // DataFormats_SiStripCommon_SiStripNullKey_H
71 
72 
73 
virtual void print(std::stringstream &ss) const
bool isEqual(const SiStripKey &) const
bool isConsistent(const SiStripKey &) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
Constants and enumerated type for sistrip::Granularity.
void initGranularity()
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:23
bool isValid() const
Concrete implementation of abstract base, signifying null values or an &quot;unknown&quot; position or view...
virtual void terse(std::stringstream &ss) const
bool isInvalid() const