CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripNullKey.cc
Go to the documentation of this file.
1 // Last commit: $Id: SiStripNullKey.cc,v 1.5 2012/07/04 19:04:53 eulisse Exp $
2 
5 #include <iomanip>
6 
7 // -----------------------------------------------------------------------------
8 //
10 
11 // -----------------------------------------------------------------------------
12 //
14  if ( &dynamic_cast<const SiStripNullKey&>(input) ) { return true; }
15  else { return false; }
16 }
17 
18 // -----------------------------------------------------------------------------
19 //
21  return isEqual(input);
22 }
23 
24 // -----------------------------------------------------------------------------
25 //
26 bool SiStripNullKey::isValid() const {
27  return false;
28 }
29 
30 // -----------------------------------------------------------------------------
31 //
32 bool SiStripNullKey::isValid( const sistrip::Granularity& gran ) const {
33  return false;
34 }
35 
36 // -----------------------------------------------------------------------------
37 //
39  return true;
40 }
41 
42 // -----------------------------------------------------------------------------
43 //
45  return true;
46 }
47 
48 // -----------------------------------------------------------------------------
49 //
51 
52 // -----------------------------------------------------------------------------
53 //
55 
56 // -----------------------------------------------------------------------------
57 //
59 
60 // -----------------------------------------------------------------------------
61 //
63 
64 // -----------------------------------------------------------------------------
65 //
66 void SiStripNullKey::print( std::stringstream& ss ) const {
67  ss << " [SiStripNullKey::print]" << std::endl
68  << std::hex
69  << " 32-bit key : 0x"
70  << std::setfill('0')
71  << std::setw(8) << key() << std::endl
72  << std::setfill(' ')
73  << std::dec
74  << " Directory : " << path() << std::endl
75  << " Granularity : "
77  << " Channel : " << channel() << std::endl
78  << " isValid : " << isValid();
79 }
80 
81 // -----------------------------------------------------------------------------
82 //
83 std::ostream& operator<< ( std::ostream& os, const SiStripNullKey& input ) {
84  std::stringstream ss;
85  input.print(ss);
86  os << ss.str();
87  return os;
88 }
virtual void print(std::stringstream &ss) const
bool isEqual(const SiStripKey &) const
bool isConsistent(const SiStripKey &) const
static std::string granularity(const sistrip::Granularity &)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
const uint32_t & key() const
Definition: SiStripKey.h:126
const sistrip::Granularity & granularity() const
Definition: SiStripKey.h:128
void initGranularity()
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:24
const std::string & path() const
Definition: SiStripKey.h:127
bool isValid() const
const uint16_t & channel() const
Definition: SiStripKey.h:129
Concrete implementation of abstract base, signifying null values or an &quot;unknown&quot; position or view...
bool isInvalid() const