18 histoType_(histo_type),
24 extraInfo_(extra_info)
26 if ( &dynamic_cast<const SiStripFedKey&>(key_object) ) {
28 }
else if ( &dynamic_cast<const SiStripFecKey&>(key_object) ) {
46 const uint32_t& key_value,
48 const uint16_t& channel,
51 histoType_(histo_type),
57 extraInfo_(extra_info)
65 : title_(histo_title),
81 std::stringstream
title;
90 << std::setfill(
'0') << std::setw(8) << std::hex <<
keyValue_ << std::dec
119 position +=
title_.substr(position).find( histo_type ) + histo_type.size() + (
sizeof(
sistrip::sep_) - 1);
121 else if ( position >= length ) {
return; }
127 position +=
title_.substr(position).find( run_type ) + run_type.size() + (
sizeof(
sistrip::sep_) - 1);
128 if ( position >= length ) {
return; }
134 position +=
title_.substr(position).find( key_type ) + key_type.size() + (
sizeof(
sistrip::hex_) - 1);
135 if ( position >= length ) {
return; }
139 std::stringstream
key;
140 key <<
title_.substr(position,siz);
143 if ( position >= length ) {
return; }
147 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
151 position +=
title_.substr(position).find( gran ) + gran.size();
152 if ( position > length ) {
return; }
156 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
158 if ( position == length || !siz ) {
162 std::stringstream chan;
163 chan <<
title_.substr(position,siz);
167 if ( position >= length ) {
return; }
177 std::stringstream
ss;
178 ss <<
"[SiStripHistoTitle::print]" << std::endl
179 <<
" Title : " << title.
title() << std::endl
183 <<
" KeyValue (hex) : " << std::hex << std::setfill(
'0') << std::setw(8) << title.
keyValue() << std::dec << std::endl
185 <<
" Channel : " << title.
channel() << std::endl
188 else { ss <<
"(none)"; }
Utility class that holds histogram title.
const std::string & title() const
static const uint32_t invalid32_
sistrip::Granularity granularity_
sistrip::RunType runType_
static std::string granularity(const sistrip::Granularity &)
const sistrip::Granularity & granularity() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const uint32_t & key() const
const sistrip::Granularity & granularity() const
static std::string runType(const sistrip::RunType &)
const std::string & extraInfo() const
sistrip::HistoType histoType_
const sistrip::KeyType & keyType() const
const uint32_t & keyValue() const
static std::string histoType(const sistrip::HistoType &)
Base utility class that identifies a position within a logical structure of the strip tracker...
const sistrip::RunType & runType() const
sistrip::KeyType keyType_
const uint16_t & channel() const
static std::string keyType(const sistrip::KeyType &)
static const uint16_t invalid_
static int position[264][3]
const uint16_t & channel() const
const sistrip::HistoType & histoType() const