File indexing completed on 2024-04-06 12:05:14
0001
0002 #include "DataFormats/SiStripCommon/interface/SiStripNullKey.h"
0003 #include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
0004 #include <iomanip>
0005
0006
0007
0008 SiStripNullKey::SiStripNullKey() : SiStripKey() { ; }
0009
0010
0011
0012 bool SiStripNullKey::isEqual(const SiStripKey& input) const {
0013 if (&dynamic_cast<const SiStripNullKey&>(input)) {
0014 return true;
0015 } else {
0016 return false;
0017 }
0018 }
0019
0020
0021
0022 bool SiStripNullKey::isConsistent(const SiStripKey& input) const { return isEqual(input); }
0023
0024
0025
0026 bool SiStripNullKey::isValid() const { return false; }
0027
0028
0029
0030 bool SiStripNullKey::isValid(const sistrip::Granularity& gran) const { return false; }
0031
0032
0033
0034 bool SiStripNullKey::isInvalid() const { return true; }
0035
0036
0037
0038 bool SiStripNullKey::isInvalid(const sistrip::Granularity& gran) const { return true; }
0039
0040
0041
0042 void SiStripNullKey::initFromValue() { ; }
0043
0044
0045
0046 void SiStripNullKey::initFromKey() { ; }
0047
0048
0049
0050 void SiStripNullKey::initFromPath() { ; }
0051
0052
0053
0054 void SiStripNullKey::initGranularity() { ; }
0055
0056
0057
0058 void SiStripNullKey::print(std::stringstream& ss) const {
0059 ss << " [SiStripNullKey::print]" << std::endl
0060 << std::hex << " 32-bit key : 0x" << std::setfill('0') << std::setw(8) << key() << std::endl
0061 << std::setfill(' ') << std::dec << " Directory : " << path() << std::endl
0062 << " Granularity : " << SiStripEnumsAndStrings::granularity(granularity()) << std::endl
0063 << " Channel : " << channel() << std::endl
0064 << " isValid : " << isValid();
0065 }
0066
0067
0068
0069 std::ostream& operator<<(std::ostream& os, const SiStripNullKey& input) {
0070 std::stringstream ss;
0071 input.print(ss);
0072 os << ss.str();
0073 return os;
0074 }