test
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 
4 #include <iomanip>
5 
6 // -----------------------------------------------------------------------------
7 //
9 
10 // -----------------------------------------------------------------------------
11 //
13  if ( &dynamic_cast<const SiStripNullKey&>(input) ) { return true; }
14  else { return false; }
15 }
16 
17 // -----------------------------------------------------------------------------
18 //
20  return isEqual(input);
21 }
22 
23 // -----------------------------------------------------------------------------
24 //
25 bool SiStripNullKey::isValid() const {
26  return false;
27 }
28 
29 // -----------------------------------------------------------------------------
30 //
31 bool SiStripNullKey::isValid( const sistrip::Granularity& gran ) const {
32  return false;
33 }
34 
35 // -----------------------------------------------------------------------------
36 //
38  return true;
39 }
40 
41 // -----------------------------------------------------------------------------
42 //
44  return true;
45 }
46 
47 // -----------------------------------------------------------------------------
48 //
50 
51 // -----------------------------------------------------------------------------
52 //
54 
55 // -----------------------------------------------------------------------------
56 //
58 
59 // -----------------------------------------------------------------------------
60 //
62 
63 // -----------------------------------------------------------------------------
64 //
65 void SiStripNullKey::print( std::stringstream& ss ) const {
66  ss << " [SiStripNullKey::print]" << std::endl
67  << std::hex
68  << " 32-bit key : 0x"
69  << std::setfill('0')
70  << std::setw(8) << key() << std::endl
71  << std::setfill(' ')
72  << std::dec
73  << " Directory : " << path() << std::endl
74  << " Granularity : "
76  << " Channel : " << channel() << std::endl
77  << " isValid : " << isValid();
78 }
79 
80 // -----------------------------------------------------------------------------
81 //
82 std::ostream& operator<< ( std::ostream& os, const SiStripNullKey& input ) {
83  std::stringstream ss;
84  input.print(ss);
85  os << ss.str();
86  return os;
87 }
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:188
static std::string const input
Definition: EdmProvDump.cc:44
const uint32_t & key() const
Definition: SiStripKey.h:125
const sistrip::Granularity & granularity() const
Definition: SiStripKey.h:127
void initGranularity()
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:23
const std::string & path() const
Definition: SiStripKey.h:126
bool isValid() const
const uint16_t & channel() const
Definition: SiStripKey.h:128
Concrete implementation of abstract base, signifying null values or an &quot;unknown&quot; position or view...
bool isInvalid() const