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 }
sistrip::Granularity
Granularity
Definition: ConstantsForGranularity.h:60
input
static const std::string input
Definition: EdmProvDump.cc:48
SiStripNullKey::SiStripNullKey
SiStripNullKey()
Definition: SiStripNullKey.cc:8
SiStripKey::key
const uint32_t & key() const
Definition: SiStripKey.h:120
SiStripNullKey::isConsistent
bool isConsistent(const SiStripKey &) const override
Definition: SiStripNullKey.cc:22
SiStripKey::granularity
const sistrip::Granularity & granularity() const
Definition: SiStripKey.h:122
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
SiStripKey::channel
const uint16_t & channel() const
Definition: SiStripKey.h:123
SiStripNullKey::initGranularity
void initGranularity() override
Definition: SiStripNullKey.cc:54
SiStripNullKey::print
void print(std::stringstream &ss) const override
Definition: SiStripNullKey.cc:58
SiStripNullKey::initFromKey
void initFromKey() override
Definition: SiStripNullKey.cc:46
SiStripNullKey::initFromValue
void initFromValue() override
Definition: SiStripNullKey.cc:42
SiStripEnumsAndStrings::granularity
static std::string granularity(const sistrip::Granularity &)
Definition: SiStripEnumsAndStrings.cc:265
SiStripNullKey.h
SiStripNullKey::isInvalid
bool isInvalid() const override
Definition: SiStripNullKey.cc:34
SiStripKey::path
const std::string & path() const
Definition: SiStripKey.h:121
SiStripNullKey
Concrete implementation of abstract base, signifying null values or an "unknown" position or view.
Definition: SiStripNullKey.h:20
SiStripNullKey::isEqual
bool isEqual(const SiStripKey &) const override
Definition: SiStripNullKey.cc:12
SiStripEnumsAndStrings.h
operator<<
std::ostream & operator<<(std::ostream &os, const SiStripNullKey &input)
Definition: SiStripNullKey.cc:69
SiStripNullKey::initFromPath
void initFromPath() override
Definition: SiStripNullKey.cc:50
SiStripNullKey::isValid
bool isValid() const override
Definition: SiStripNullKey.cc:26
SiStripKey
Base utility class that identifies a position within a logical structure of the strip tracker.
Definition: SiStripKey.h:23
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142