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)) {
14  return true;
15  } else {
16  return false;
17  }
18 }
19 
20 // -----------------------------------------------------------------------------
21 //
23 
24 // -----------------------------------------------------------------------------
25 //
26 bool SiStripNullKey::isValid() const { return false; }
27 
28 // -----------------------------------------------------------------------------
29 //
30 bool SiStripNullKey::isValid(const sistrip::Granularity& gran) const { return false; }
31 
32 // -----------------------------------------------------------------------------
33 //
34 bool SiStripNullKey::isInvalid() const { return true; }
35 
36 // -----------------------------------------------------------------------------
37 //
38 bool SiStripNullKey::isInvalid(const sistrip::Granularity& gran) const { return true; }
39 
40 // -----------------------------------------------------------------------------
41 //
43 
44 // -----------------------------------------------------------------------------
45 //
47 
48 // -----------------------------------------------------------------------------
49 //
51 
52 // -----------------------------------------------------------------------------
53 //
55 
56 // -----------------------------------------------------------------------------
57 //
58 void SiStripNullKey::print(std::stringstream& ss) const {
59  ss << " [SiStripNullKey::print]" << std::endl
60  << std::hex << " 32-bit key : 0x" << std::setfill('0') << std::setw(8) << key() << std::endl
61  << std::setfill(' ') << std::dec << " Directory : " << path() << std::endl
62  << " Granularity : " << SiStripEnumsAndStrings::granularity(granularity()) << std::endl
63  << " Channel : " << channel() << std::endl
64  << " isValid : " << isValid();
65 }
66 
67 // -----------------------------------------------------------------------------
68 //
69 std::ostream& operator<<(std::ostream& os, const SiStripNullKey& input) {
70  std::stringstream ss;
71  input.print(ss);
72  os << ss.str();
73  return os;
74 }
const uint16_t & channel() const
Definition: SiStripKey.h:123
std::ostream & operator<<(std::ostream &os, const SiStripNullKey &input)
const std::string & path() const
Definition: SiStripKey.h:121
static std::string granularity(const sistrip::Granularity &)
void initFromPath() override
bool isValid() const override
static std::string const input
Definition: EdmProvDump.cc:50
const uint32_t & key() const
Definition: SiStripKey.h:120
Base utility class that identifies a position within a logical structure of the strip tracker...
Definition: SiStripKey.h:23
bool isEqual(const SiStripKey &) const override
void initFromKey() override
bool isConsistent(const SiStripKey &) const override
void initGranularity() override
bool isInvalid() const override
void initFromValue() override
void print(std::stringstream &ss) const override
Concrete implementation of abstract base, signifying null values or an "unknown" position or view...
const sistrip::Granularity & granularity() const
Definition: SiStripKey.h:122