17 const std::string& extra_info )
19 histoType_(histo_type),
25 extraInfo_(extra_info)
28 if ( &dynamic_cast<SiStripFedKey&>(temp) ) {
30 }
else if ( &dynamic_cast<SiStripFecKey&>(temp) ) {
48 const uint32_t& key_value,
50 const uint16_t& channel,
51 const std::string& extra_info )
53 histoType_(histo_type),
59 extraInfo_(extra_info)
67 : title_(histo_title),
83 std::stringstream
title;
92 << std::setfill(
'0') << std::setw(8) << std::hex <<
keyValue_ << std::dec
121 position +=
title_.substr(position).find( histo_type ) + histo_type.size() + (
sizeof(
sistrip::sep_) - 1);
123 else if ( position >= length ) {
return; }
129 position +=
title_.substr(position).find( run_type ) + run_type.size() + (
sizeof(
sistrip::sep_) - 1);
130 if ( position >= length ) {
return; }
136 position +=
title_.substr(position).find( key_type ) + key_type.size() + (
sizeof(
sistrip::hex_) - 1);
137 if ( position >= length ) {
return; }
141 std::stringstream
key;
142 key <<
title_.substr(position,siz);
145 if ( position >= length ) {
return; }
149 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
153 position +=
title_.substr(position).find( gran ) + gran.size();
154 if ( position > length ) {
return; }
158 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
160 if ( position == length || !siz ) {
164 std::stringstream chan;
165 chan <<
title_.substr(position,siz);
169 if ( position >= length ) {
return; }
179 std::stringstream ss;
180 ss <<
"[SiStripHistoTitle::print]" << std::endl
181 <<
" Title : " << title.
title() << std::endl
185 <<
" KeyValue (hex) : " << std::hex << std::setfill(
'0') << std::setw(8) << title.
keyValue() << std::dec << std::endl
187 <<
" Channel : " << title.
channel() << std::endl
190 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