CMS 3D CMS Logo

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 }
bool isValid() const override
bool isInvalid() const override
std::ostream & operator<<(std::ostream &os, const SiStripNullKey &input)
bool isConsistent(const SiStripKey &) const override
static std::string granularity(const sistrip::Granularity &)
void initFromPath() override
static std::string const input
Definition: EdmProvDump.cc:48
const uint32_t & key() const
Definition: SiStripKey.h:125
const sistrip::Granularity & granularity() const
Definition: SiStripKey.h:127
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
void initFromKey() override
const uint16_t & channel() const
Definition: SiStripKey.h:128
void initGranularity() override
void print(std::stringstream &ss) const override
void initFromValue() override
bool isEqual(const SiStripKey &) const override
Concrete implementation of abstract base, signifying null values or an "unknown" position or view...