CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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)) {
14  return true;
15  } else {
16  return false;
17  }
18 }
19 
20 // -----------------------------------------------------------------------------
21 //
22 bool SiStripNullKey::isConsistent(const SiStripKey& input) const { return isEqual(input); }
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 }
static std::string granularity(const sistrip::Granularity &)
void initFromPath() override
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
bool isValid() const override
static std::string const input
Definition: EdmProvDump.cc:47
const uint32_t & key() const
Definition: SiStripKey.h:120
const sistrip::Granularity & granularity() const
Definition: SiStripKey.h:122
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:121
bool isEqual(const SiStripKey &) const override
void initFromKey() override
bool isConsistent(const SiStripKey &) const override
const uint16_t & channel() const
Definition: SiStripKey.h:123
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 &quot;unknown&quot; position or view...