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 // Last commit: $Id: SiStripNullKey.h,v 1.4 2008/02/06 14:32:48 bainbrid Exp $
2 
3 #ifndef DataFormats_SiStripCommon_SiStripNullKey_H
4 #define DataFormats_SiStripCommon_SiStripNullKey_H
5 
8 
9 class SiStripNullKey;
10 
12 std::ostream& operator<< ( std::ostream&, const SiStripNullKey& );
13 
21 class SiStripNullKey : public SiStripKey {
22 
23  public:
24 
25  // ---------- Constructors ----------
26 
29 
30  // ---------- Utility methods ----------
31 
33  bool isEqual( const SiStripKey& ) const;
34 
36  bool isConsistent( const SiStripKey& ) const;
37 
39  bool isValid() const;
40 
43  bool isValid( const sistrip::Granularity& ) const;
44 
46  bool isInvalid() const;
47 
50  bool isInvalid( const sistrip::Granularity& ) const;
51 
52  // ---------- Print methods ----------
53 
55  virtual void print( std::stringstream& ss ) const;
56 
58  virtual void terse( std::stringstream& ss ) const {;}
59 
60  private:
61 
62  // ---------- Private methods ----------
63 
64  void initFromValue();
65  void initFromKey();
66  void initFromPath();
67  void initGranularity();
68 
69 };
70 
71 #endif // DataFormats_SiStripCommon_SiStripNullKey_H
72 
73 
74 
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:24
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