19 histoType_(histo_type),
25 extraInfo_(extra_info)
27 if ( &dynamic_cast<const SiStripFedKey&>(key_object) ) {
29 }
else if ( &dynamic_cast<const SiStripFecKey&>(key_object) ) {
47 const uint32_t& key_value,
49 const uint16_t& channel,
52 histoType_(histo_type),
58 extraInfo_(extra_info)
66 : title_(histo_title),
82 std::stringstream
title;
91 << std::setfill(
'0') << std::setw(8) << std::hex <<
keyValue_ << std::dec
120 position +=
title_.substr(position).find( histo_type ) + histo_type.size() + (
sizeof(
sistrip::sep_) - 1);
122 else if ( position >= length ) {
return; }
128 position +=
title_.substr(position).find( run_type ) + run_type.size() + (
sizeof(
sistrip::sep_) - 1);
129 if ( position >= length ) {
return; }
135 position +=
title_.substr(position).find( key_type ) + key_type.size() + (
sizeof(
sistrip::hex_) - 1);
136 if ( position >= length ) {
return; }
140 std::stringstream
key;
141 key <<
title_.substr(position,siz);
144 if ( position >= length ) {
return; }
148 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
152 position +=
title_.substr(position).find( gran ) + gran.size();
153 if ( position > length ) {
return; }
157 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
159 if ( position == length || !siz ) {
163 std::stringstream chan;
164 chan <<
title_.substr(position,siz);
168 if ( position >= length ) {
return; }
178 std::stringstream ss;
179 ss <<
"[SiStripHistoTitle::print]" << std::endl
180 <<
" Title : " << title.
title() << std::endl
184 <<
" KeyValue (hex) : " << std::hex << std::setfill(
'0') << std::setw(8) << title.
keyValue() << std::dec << std::endl
186 <<
" Channel : " << title.
channel() << std::endl
189 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)
static int position[TOTALCHAMBERS][3]
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_
const uint16_t & channel() const
const sistrip::HistoType & histoType() const