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) ) {
44 const uint32_t& key_value,
79 std::stringstream
title;
117 position +=
title_.substr(position).find( histo_type ) + histo_type.size() + (
sizeof(
sistrip::sep_) - 1);
119 else if ( position >= length ) {
return; }
125 position +=
title_.substr(position).find( run_type ) + run_type.size() + (
sizeof(
sistrip::sep_) - 1);
126 if ( position >= length ) {
return; }
132 position +=
title_.substr(position).find( key_type ) + key_type.size() + (
sizeof(
sistrip::hex_) - 1);
133 if ( position >= length ) {
return; }
137 std::stringstream
key;
138 key <<
title_.substr(position,siz);
141 if ( position >= length ) {
return; }
145 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
149 position +=
title_.substr(position).find( gran ) + gran.size();
150 if ( position > length ) {
return; }
154 if ( pos == std::string::npos || pos < position ) { siz = std::string::npos -
position; }
156 if ( position == length || !siz ) {
160 std::stringstream
chan;
161 chan <<
title_.substr(position,siz);
165 if ( position >= length ) {
return; }
175 std::stringstream ss;
176 ss <<
"[SiStripHistoTitle::print]" << std::endl
177 <<
" Title : " << title.
title() << std::endl
181 <<
" KeyValue (hex) : " << std::hex << std::setfill(
'0') << std::setw(8) << title.
keyValue() <<
std::dec << std::endl
183 <<
" Channel : " << title.
channel() << std::endl
186 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
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
std::ostream & operator<<(std::ostream &os, const SiStripHistoTitle &title)
sistrip::KeyType keyType_
const uint16_t & channel() const
static std::string keyType(const sistrip::KeyType &)
static const uint16_t invalid_
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
static int position[264][3]
const uint16_t & channel() const
const sistrip::HistoType & histoType() const