CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
SiStripEnumsAndStrings Class Reference

#include <SiStripEnumsAndStrings.h>

Static Public Member Functions

static std::string apvReadoutMode (const sistrip::ApvReadoutMode &)
 
static sistrip::ApvReadoutMode apvReadoutMode (const std::string &apv_readout_mode)
 
static std::string cablingSource (const sistrip::CablingSource &)
 
static sistrip::CablingSource cablingSource (const std::string &cabling_source)
 
static std::string fedReadoutMode (const sistrip::FedReadoutMode &)
 
static sistrip::FedReadoutMode fedReadoutMode (const std::string &fed_readout_mode)
 
static std::string granularity (const sistrip::Granularity &)
 
static sistrip::Granularity granularity (const std::string &granularity)
 
static std::string histoType (const sistrip::HistoType &)
 
static sistrip::HistoType histoType (const std::string &histo_type)
 
static std::string keyType (const sistrip::KeyType &)
 
static sistrip::KeyType keyType (const std::string &key_type)
 
static std::string monitorable (const sistrip::Monitorable &)
 
static sistrip::Monitorable monitorable (const std::string &histo_monitorable)
 
static std::string presentation (const sistrip::Presentation &)
 
static sistrip::Presentation presentation (const std::string &histo_presentation)
 
static std::string runType (const sistrip::RunType &)
 
static sistrip::RunType runType (const std::string &run_type)
 
static sistrip::RunType runType (const uint16_t &)
 
static std::string view (const sistrip::View &)
 
static sistrip::View view (const std::string &directory)
 

Detailed Description

Definition at line 10 of file SiStripEnumsAndStrings.h.

Member Function Documentation

std::string SiStripEnumsAndStrings::apvReadoutMode ( const sistrip::ApvReadoutMode mode)
static

Definition at line 229 of file SiStripEnumsAndStrings.cc.

References sistrip::APV_DECON_MODE, sistrip::APV_MULTI_MODE, sistrip::APV_PEAK_MODE, sistrip::apvDeconMode_, sistrip::apvMultiMode_, sistrip::apvPeakMode_, sistrip::UNDEFINED_APV_READOUT_MODE, sistrip::undefinedApvReadoutMode_, and sistrip::unknownApvReadoutMode_.

Referenced by operator<<().

sistrip::ApvReadoutMode SiStripEnumsAndStrings::apvReadoutMode ( const std::string &  apv_readout_mode)
static

Definition at line 239 of file SiStripEnumsAndStrings.cc.

References sistrip::APV_DECON_MODE, sistrip::APV_MULTI_MODE, sistrip::APV_PEAK_MODE, sistrip::apvDeconMode_, sistrip::apvMultiMode_, sistrip::apvPeakMode_, sistrip::UNDEFINED_APV_READOUT_MODE, sistrip::undefinedApvReadoutMode_, and sistrip::UNKNOWN_APV_READOUT_MODE.

239  {
240  if ( mode.find( sistrip::apvPeakMode_ ) != std::string::npos ) { return sistrip::APV_PEAK_MODE; }
241  else if ( mode.find( sistrip::apvDeconMode_ ) != std::string::npos ) { return sistrip::APV_DECON_MODE; }
242  else if ( mode.find( sistrip::apvMultiMode_ ) != std::string::npos ) { return sistrip::APV_MULTI_MODE; }
243  else if ( mode.find( sistrip::undefinedApvReadoutMode_ ) != std::string::npos ) { return sistrip::UNDEFINED_APV_READOUT_MODE; }
244  else if ( mode.empty() ) { return sistrip::UNDEFINED_APV_READOUT_MODE; }
245  else { return sistrip::UNKNOWN_APV_READOUT_MODE; }
246 }
static const char apvDeconMode_[]
static const char apvPeakMode_[]
static const char undefinedApvReadoutMode_[]
static const char apvMultiMode_[]
std::string SiStripEnumsAndStrings::cablingSource ( const sistrip::CablingSource source)
static

Definition at line 550 of file SiStripEnumsAndStrings.cc.

References sistrip::CABLING_FROM_CONNS, sistrip::CABLING_FROM_DETIDS, sistrip::CABLING_FROM_DEVICES, sistrip::cablingFromConns_, sistrip::cablingFromDetIds_, sistrip::cablingFromDevices_, sistrip::UNDEFINED_CABLING_SOURCE, sistrip::undefinedCablingSource_, and sistrip::unknownCablingSource_.

Referenced by SiStripFedCablingBuilderFromDb::buildFecCabling(), and SiStripFedCablingBuilderFromDb::SiStripFedCablingBuilderFromDb().

sistrip::CablingSource SiStripEnumsAndStrings::cablingSource ( const std::string &  cabling_source)
static

Definition at line 560 of file SiStripEnumsAndStrings.cc.

References sistrip::CABLING_FROM_CONNS, sistrip::CABLING_FROM_DETIDS, sistrip::CABLING_FROM_DEVICES, sistrip::cablingFromConns_, sistrip::cablingFromDetIds_, sistrip::cablingFromDevices_, sistrip::UNDEFINED_CABLING_SOURCE, sistrip::undefinedCablingSource_, and sistrip::UNKNOWN_CABLING_SOURCE.

560  {
561  if ( source.find( sistrip::cablingFromConns_ ) != std::string::npos ) { return sistrip::CABLING_FROM_CONNS; }
562  else if ( source.find( sistrip::cablingFromDevices_ ) != std::string::npos ) { return sistrip::CABLING_FROM_DEVICES; }
563  else if ( source.find( sistrip::cablingFromDetIds_ ) != std::string::npos ) { return sistrip::CABLING_FROM_DETIDS; }
564  else if ( source.find( sistrip::undefinedCablingSource_ ) != std::string::npos ) { return sistrip::UNDEFINED_CABLING_SOURCE; }
565  else if ( source.empty() ) { return sistrip::UNDEFINED_CABLING_SOURCE; }
566  else if ( source == "CONNECTIONS" ) { return sistrip::CABLING_FROM_CONNS; }
567  else if ( source == "DEVICES" ) { return sistrip::CABLING_FROM_DEVICES; }
568  else if ( source == "DETIDS" ) { return sistrip::CABLING_FROM_DETIDS; }
569  else if ( source == "UNDEFINED" ) { return sistrip::UNDEFINED_CABLING_SOURCE; }
570  else { return sistrip::UNKNOWN_CABLING_SOURCE; }
571 }
static const char undefinedCablingSource_[]
static const char cablingFromDevices_[]
static const char cablingFromConns_[]
static const char cablingFromDetIds_[]
std::string SiStripEnumsAndStrings::fedReadoutMode ( const sistrip::FedReadoutMode mode)
static

Definition at line 250 of file SiStripEnumsAndStrings.cc.

References sistrip::FED_PROC_RAW, sistrip::FED_SCOPE_MODE, sistrip::FED_VIRGIN_RAW, sistrip::FED_ZERO_SUPPR, sistrip::FED_ZERO_SUPPR_LITE, sistrip::fedProcRaw_, sistrip::fedScopeMode_, sistrip::fedVirginRaw_, sistrip::fedZeroSuppr_, sistrip::fedZeroSupprLite_, sistrip::UNDEFINED_FED_READOUT_MODE, sistrip::undefinedFedReadoutMode_, and sistrip::unknownFedReadoutMode_.

Referenced by SiStripCommissioningSource::analyze(), and operator<<().

250  {
252  else if ( mode == sistrip::FED_VIRGIN_RAW ) { return sistrip::fedVirginRaw_; }
253  else if ( mode == sistrip::FED_PROC_RAW ) { return sistrip::fedProcRaw_; }
254  else if ( mode == sistrip::FED_ZERO_SUPPR ) { return sistrip::fedZeroSuppr_; }
257  else { return sistrip::unknownFedReadoutMode_; }
258 }
static const char fedZeroSupprLite_[]
static const char fedProcRaw_[]
static const char fedVirginRaw_[]
static const char unknownFedReadoutMode_[]
static const char fedScopeMode_[]
static const char undefinedFedReadoutMode_[]
static const char fedZeroSuppr_[]
sistrip::FedReadoutMode SiStripEnumsAndStrings::fedReadoutMode ( const std::string &  fed_readout_mode)
static

Definition at line 262 of file SiStripEnumsAndStrings.cc.

References sistrip::FED_PROC_RAW, sistrip::FED_SCOPE_MODE, sistrip::FED_VIRGIN_RAW, sistrip::FED_ZERO_SUPPR, sistrip::FED_ZERO_SUPPR_LITE, sistrip::fedProcRaw_, sistrip::fedScopeMode_, sistrip::fedVirginRaw_, sistrip::fedZeroSuppr_, sistrip::fedZeroSupprLite_, sistrip::UNDEFINED_FED_READOUT_MODE, sistrip::undefinedFedReadoutMode_, and sistrip::UNKNOWN_FED_READOUT_MODE.

262  {
263  if ( mode.find( sistrip::fedScopeMode_ ) != std::string::npos ) { return sistrip::FED_SCOPE_MODE; }
264  else if ( mode.find( sistrip::fedVirginRaw_ ) != std::string::npos ) { return sistrip::FED_VIRGIN_RAW; }
265  else if ( mode.find( sistrip::fedProcRaw_ ) != std::string::npos ) { return sistrip::FED_PROC_RAW; }
266  else if ( mode.find( sistrip::fedZeroSuppr_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR; }
267  else if ( mode.find( sistrip::fedZeroSupprLite_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE; }
268  else if ( mode.find( sistrip::undefinedFedReadoutMode_ ) != std::string::npos ) { return sistrip::UNDEFINED_FED_READOUT_MODE; }
269  else if ( mode.empty() ) { return sistrip::UNDEFINED_FED_READOUT_MODE; }
270  else { return sistrip::UNKNOWN_FED_READOUT_MODE; }
271 }
static const char fedZeroSupprLite_[]
static const char fedProcRaw_[]
static const char fedVirginRaw_[]
static const char fedScopeMode_[]
static const char undefinedFedReadoutMode_[]
static const char fedZeroSuppr_[]
std::string SiStripEnumsAndStrings::granularity ( const sistrip::Granularity granularity)
static

Definition at line 150 of file SiStripEnumsAndStrings.cc.

References sistrip::APV, sistrip::apv_, sistrip::CCU_ADDR, sistrip::CCU_CHAN, sistrip::ccuAddr_, sistrip::ccuChan_, sistrip::DISK, sistrip::disk_, sistrip::FE_CHAN, sistrip::FE_DRIVER, sistrip::FE_UNIT, sistrip::FEC_CRATE, sistrip::FEC_RING, sistrip::FEC_SLOT, sistrip::FEC_SYSTEM, sistrip::fecCrate_, sistrip::feChan_, sistrip::fecRing_, sistrip::fecSlot_, sistrip::fecSystem_, sistrip::FED_APV, sistrip::FED_CHANNEL, sistrip::FED_SYSTEM, sistrip::fedApv_, sistrip::fedChannel_, sistrip::feDriver_, sistrip::fedSystem_, sistrip::feUnit_, sistrip::LAYER, sistrip::layer_, sistrip::LLD_CHAN, sistrip::lldChan_, sistrip::MODULE, sistrip::module_, sistrip::PARTITION, sistrip::partition_, sistrip::PETAL, sistrip::petal_, sistrip::RING, sistrip::ring_, sistrip::ROD, sistrip::rod_, sistrip::STRING, sistrip::string_, sistrip::TEC, sistrip::tec_, sistrip::TIB, sistrip::tib_, sistrip::TOB, sistrip::tob_, sistrip::TRACKER, sistrip::tracker_, sistrip::UNDEFINED_GRAN, sistrip::undefinedGranularity_, and sistrip::unknownGranularity_.

Referenced by SiStripHistoTitle::extractTitle(), SummaryGeneratorControlView::fill(), SummaryGeneratorReadoutView::fill(), SummaryGenerator::format(), SummaryPlotFactoryBase::init(), operator<<(), SamplingAnalysis::print(), SiStripNullKey::print(), SummaryPlot::print(), SiStripKey::print(), SiStripDetKey::print(), SiStripFecKey::print(), SiStripFedKey::print(), SiStripHistoTitle::setTitle(), and SummaryPlot::SummaryPlot().

150  {
151  // System
152  if ( granularity == sistrip::TRACKER ) { return sistrip::tracker_; }
153  else if ( granularity == sistrip::PARTITION ) { return sistrip::partition_; }
154  else if ( granularity == sistrip::TIB ) { return sistrip::tib_; }
155  else if ( granularity == sistrip::TOB ) { return sistrip::tob_; }
156  else if ( granularity == sistrip::TEC ) { return sistrip::tec_; }
157  // Sub-structure
158  else if ( granularity == sistrip::LAYER ) { return sistrip::layer_; }
159  else if ( granularity == sistrip::ROD ) { return sistrip::rod_; }
160  else if ( granularity == sistrip::STRING ) { return sistrip::string_; }
161  else if ( granularity == sistrip::DISK ) { return sistrip::disk_; }
162  else if ( granularity == sistrip::PETAL ) { return sistrip::petal_; }
163  else if ( granularity == sistrip::RING ) { return sistrip::ring_; }
164  // Module and below
165  else if ( granularity == sistrip::MODULE ) { return sistrip::module_; }
166  else if ( granularity == sistrip::LLD_CHAN ) { return sistrip::lldChan_; }
167  else if ( granularity == sistrip::APV ) { return sistrip::apv_; }
168  // Readout
169  else if ( granularity == sistrip::FED_SYSTEM ) { return sistrip::fedSystem_; }
170  else if ( granularity == sistrip::FE_DRIVER ) { return sistrip::feDriver_; }
171  else if ( granularity == sistrip::FE_UNIT ) { return sistrip::feUnit_; }
172  else if ( granularity == sistrip::FE_CHAN ) { return sistrip::feChan_; }
173  else if ( granularity == sistrip::FED_APV ) { return sistrip::fedApv_; }
174  else if ( granularity == sistrip::FED_CHANNEL ) { return sistrip::fedChannel_; }
175  // Control
176  else if ( granularity == sistrip::FEC_SYSTEM ) { return sistrip::fecSystem_; }
177  else if ( granularity == sistrip::FEC_CRATE ) { return sistrip::fecCrate_; }
178  else if ( granularity == sistrip::FEC_SLOT ) { return sistrip::fecSlot_; }
179  else if ( granularity == sistrip::FEC_RING ) { return sistrip::fecRing_; }
180  else if ( granularity == sistrip::CCU_ADDR ) { return sistrip::ccuAddr_; }
181  else if ( granularity == sistrip::CCU_CHAN ) { return sistrip::ccuChan_; }
182  // Unknown
184  else { return sistrip::unknownGranularity_; }
185 }
static const char module_[]
static const char feDriver_[]
static const char layer_[]
static const char tec_[]
static const char tracker_[]
static const char tob_[]
static std::string granularity(const sistrip::Granularity &)
static const char rod_[]
static const char string_[]
static const char fecSlot_[]
static const char ccuChan_[]
static const char ccuAddr_[]
static const char lldChan_[]
static const char undefinedGranularity_[]
static const char partition_[]
static const char fedApv_[]
static const char unknownGranularity_[]
static const char ring_[]
static const char fecCrate_[]
static const char fedChannel_[]
static const char apv_[]
static const char tib_[]
static const char feChan_[]
static const char fedSystem_[]
static const char fecRing_[]
static const char feUnit_[]
static const char fecSystem_[]
static const char disk_[]
static const char petal_[]
sistrip::Granularity SiStripEnumsAndStrings::granularity ( const std::string &  granularity)
static

Definition at line 189 of file SiStripEnumsAndStrings.cc.

References sistrip::APV, sistrip::apv_, sistrip::CCU_ADDR, sistrip::CCU_CHAN, sistrip::ccuAddr_, sistrip::ccuChan_, sistrip::DISK, sistrip::disk_, sistrip::FE_CHAN, sistrip::FE_DRIVER, sistrip::FE_UNIT, sistrip::FEC_CRATE, sistrip::FEC_RING, sistrip::FEC_SLOT, sistrip::FEC_SYSTEM, sistrip::fecCrate_, sistrip::feChan_, sistrip::fecRing_, sistrip::fecSlot_, sistrip::fecSystem_, sistrip::FED_APV, sistrip::FED_CHANNEL, sistrip::FED_SYSTEM, sistrip::fedApv_, sistrip::fedChannel_, sistrip::feDriver_, sistrip::fedSystem_, sistrip::feUnit_, sistrip::LAYER, sistrip::layer_, sistrip::LLD_CHAN, sistrip::lldChan_, sistrip::MODULE, sistrip::module_, sistrip::PARTITION, sistrip::partition_, sistrip::PETAL, sistrip::petal_, sistrip::RING, sistrip::ring_, sistrip::ROD, sistrip::rod_, sistrip::STRING, sistrip::string_, sistrip::TEC, sistrip::tec_, sistrip::TIB, sistrip::tib_, sistrip::TOB, sistrip::tob_, sistrip::TRACKER, sistrip::tracker_, sistrip::UNDEFINED_GRAN, sistrip::undefinedGranularity_, and sistrip::UNKNOWN_GRAN.

189  {
190  // System
191  if ( granularity.find( sistrip::tracker_ ) != std::string::npos ) { return sistrip::TRACKER; }
192  else if ( granularity.find( sistrip::partition_ ) != std::string::npos ) { return sistrip::PARTITION; }
193  else if ( granularity.find( sistrip::tib_ ) != std::string::npos ) { return sistrip::TIB; }
194  else if ( granularity.find( sistrip::tob_ ) != std::string::npos ) { return sistrip::TOB; }
195  else if ( granularity.find( sistrip::tec_ ) != std::string::npos ) { return sistrip::TEC; }
196  // Readout
197  else if ( granularity.find( sistrip::fedSystem_ ) != std::string::npos ) { return sistrip::FED_SYSTEM; }
198  else if ( granularity.find( sistrip::feDriver_ ) != std::string::npos ) { return sistrip::FE_DRIVER; }
199  else if ( granularity.find( sistrip::feUnit_ ) != std::string::npos ) { return sistrip::FE_UNIT; }
200  else if ( granularity.find( sistrip::feChan_ ) != std::string::npos ) { return sistrip::FE_CHAN; }
201  else if ( granularity.find( sistrip::fedApv_ ) != std::string::npos ) { return sistrip::FED_APV; }
202  else if ( granularity.find( sistrip::fedChannel_ ) != std::string::npos ) { return sistrip::FED_CHANNEL; }
203  // Control
204  else if ( granularity.find( sistrip::fecSystem_ ) != std::string::npos ) { return sistrip::FEC_SYSTEM; }
205  else if ( granularity.find( sistrip::fecCrate_ ) != std::string::npos ) { return sistrip::FEC_CRATE; }
206  else if ( granularity.find( sistrip::fecSlot_ ) != std::string::npos ) { return sistrip::FEC_SLOT; }
207  else if ( granularity.find( sistrip::fecRing_ ) != std::string::npos ) { return sistrip::FEC_RING; }
208  else if ( granularity.find( sistrip::ccuAddr_ ) != std::string::npos ) { return sistrip::CCU_ADDR; }
209  else if ( granularity.find( sistrip::ccuChan_ ) != std::string::npos ) { return sistrip::CCU_CHAN; }
210  // Sub-structure
211  else if ( granularity.find( sistrip::layer_ ) != std::string::npos ) { return sistrip::LAYER; }
212  else if ( granularity.find( sistrip::rod_ ) != std::string::npos ) { return sistrip::ROD; }
213  else if ( granularity.find( sistrip::string_ ) != std::string::npos ) { return sistrip::STRING; }
214  else if ( granularity.find( sistrip::disk_ ) != std::string::npos ) { return sistrip::DISK; }
215  else if ( granularity.find( sistrip::petal_ ) != std::string::npos ) { return sistrip::PETAL; }
216  else if ( granularity.find( sistrip::ring_ ) != std::string::npos ) { return sistrip::RING; }
217  // Module and below
218  else if ( granularity.find( sistrip::module_ ) != std::string::npos ) { return sistrip::MODULE; }
219  else if ( granularity.find( sistrip::lldChan_ ) != std::string::npos ) { return sistrip::LLD_CHAN; }
220  else if ( granularity.find( sistrip::apv_ ) != std::string::npos ) { return sistrip::APV; } //@@ bug if before "FedApv"!
221  // Unknown
222  else if ( granularity.find( sistrip::undefinedGranularity_ ) != std::string::npos ) { return sistrip::UNDEFINED_GRAN; }
223  else if ( granularity.empty() ) { return sistrip::UNDEFINED_GRAN; }
224  else { return sistrip::UNKNOWN_GRAN; }
225 }
static const char module_[]
static const char feDriver_[]
static const char layer_[]
static const char tec_[]
static const char tracker_[]
static const char tob_[]
static std::string granularity(const sistrip::Granularity &)
static const char rod_[]
static const char string_[]
static const char fecSlot_[]
static const char ccuChan_[]
static const char ccuAddr_[]
static const char lldChan_[]
static const char undefinedGranularity_[]
static const char partition_[]
static const char fedApv_[]
static const char ring_[]
static const char fecCrate_[]
static const char fedChannel_[]
static const char apv_[]
static const char tib_[]
static const char feChan_[]
static const char fedSystem_[]
static const char fecRing_[]
static const char feUnit_[]
static const char fecSystem_[]
static const char disk_[]
static const char petal_[]
std::string SiStripEnumsAndStrings::histoType ( const sistrip::HistoType type)
static
sistrip::HistoType SiStripEnumsAndStrings::histoType ( const std::string &  histo_type)
static

Definition at line 284 of file SiStripEnumsAndStrings.cc.

References sistrip::EXPERT_HISTO, sistrip::expertHisto_, sistrip::SUMMARY_HISTO, sistrip::summaryHisto_, sistrip::UNDEFINED_HISTO_TYPE, sistrip::undefinedHistoType_, and sistrip::UNKNOWN_HISTO_TYPE.

284  {
285  if ( type.find( sistrip::expertHisto_ ) != std::string::npos ) { return sistrip::EXPERT_HISTO; }
286  else if ( type.find( sistrip::summaryHisto_ ) != std::string::npos ) { return sistrip::SUMMARY_HISTO; }
287  else if ( type.find( sistrip::undefinedHistoType_ ) != std::string::npos ) { return sistrip::UNDEFINED_HISTO_TYPE; }
288  else if ( type.empty() ) { return sistrip::UNDEFINED_HISTO_TYPE; }
289  else { return sistrip::UNKNOWN_HISTO_TYPE; }
290 }
type
Definition: HCALResponse.h:22
static const char summaryHisto_[]
static const char expertHisto_[]
static const char undefinedHistoType_[]
std::string SiStripEnumsAndStrings::keyType ( const sistrip::KeyType key_type)
static

Definition at line 129 of file SiStripEnumsAndStrings.cc.

References sistrip::DET_KEY, sistrip::detKey_, sistrip::FEC_KEY, sistrip::fecKey_, sistrip::FED_KEY, sistrip::fedKey_, sistrip::UNDEFINED_KEY, sistrip::undefinedKey_, and sistrip::unknownKey_.

Referenced by SiStripHistoTitle::extractTitle(), operator<<(), and SiStripHistoTitle::setTitle().

129  {
130  if ( key_type == sistrip::FED_KEY ) { return sistrip::fedKey_; }
131  else if ( key_type == sistrip::FEC_KEY ) { return sistrip::fecKey_; }
132  else if ( key_type == sistrip::DET_KEY ) { return sistrip::detKey_; }
133  else if ( key_type == sistrip::UNDEFINED_KEY ) { return sistrip::undefinedKey_; }
134  else { return sistrip::unknownKey_; }
135 }
static const char undefinedKey_[]
static const char unknownKey_[]
static const char fedKey_[]
static const char fecKey_[]
static const char detKey_[]
sistrip::KeyType SiStripEnumsAndStrings::keyType ( const std::string &  key_type)
static

Definition at line 139 of file SiStripEnumsAndStrings.cc.

References sistrip::DET_KEY, sistrip::detKey_, sistrip::FEC_KEY, sistrip::fecKey_, sistrip::FED_KEY, sistrip::fedKey_, sistrip::UNDEFINED_KEY, sistrip::undefinedKey_, and sistrip::UNKNOWN_KEY.

139  {
140  if ( key_type.find ( sistrip::fedKey_) != std::string::npos ) { return sistrip::FED_KEY; }
141  else if ( key_type.find( sistrip::fecKey_) != std::string::npos ) { return sistrip::FEC_KEY; }
142  else if ( key_type.find( sistrip::detKey_) != std::string::npos ) { return sistrip::DET_KEY; }
143  else if ( key_type.find( sistrip::undefinedKey_) != std::string::npos ) { return sistrip::UNDEFINED_KEY; }
144  else if ( key_type.empty() ) { return sistrip::UNDEFINED_KEY; }
145  else { return sistrip::UNKNOWN_KEY; }
146 }
static const char undefinedKey_[]
static const char fedKey_[]
static const char fecKey_[]
static const char detKey_[]
std::string SiStripEnumsAndStrings::monitorable ( const sistrip::Monitorable mon)
static

Definition at line 294 of file SiStripEnumsAndStrings.cc.

References sistrip::APV_TIMING_BASE, sistrip::APV_TIMING_DELAY, sistrip::APV_TIMING_ERROR, sistrip::APV_TIMING_HEIGHT, sistrip::APV_TIMING_MAX_TIME, sistrip::APV_TIMING_PEAK, sistrip::APV_TIMING_TIME, sistrip::apvTimingBase_, sistrip::apvTimingDelay_, sistrip::apvTimingError_, sistrip::apvTimingHeight_, sistrip::apvTimingMax_, sistrip::apvTimingPeak_, sistrip::apvTimingTime_, sistrip::CALIBRATION_AMPLITUDE, sistrip::CALIBRATION_AMPLITUDE_ALLSTRIPS, sistrip::CALIBRATION_AMPLITUDE_MAX, sistrip::CALIBRATION_AMPLITUDE_MIN, sistrip::CALIBRATION_CHI2, sistrip::CALIBRATION_CHI2_ALLSTRIPS, sistrip::CALIBRATION_CHI2_MAX, sistrip::CALIBRATION_CHI2_MIN, sistrip::CALIBRATION_RISETIME, sistrip::CALIBRATION_RISETIME_ALLSTRIPS, sistrip::CALIBRATION_RISETIME_MAX, sistrip::CALIBRATION_RISETIME_MIN, sistrip::CALIBRATION_SMEARING, sistrip::CALIBRATION_SMEARING_ALLSTRIPS, sistrip::CALIBRATION_SMEARING_MAX, sistrip::CALIBRATION_SMEARING_MIN, sistrip::CALIBRATION_TAIL, sistrip::CALIBRATION_TAIL_ALLSTRIPS, sistrip::CALIBRATION_TAIL_MAX, sistrip::CALIBRATION_TAIL_MIN, sistrip::CALIBRATION_TIMECONSTANT, sistrip::CALIBRATION_TIMECONSTANT_ALLSTRIPS, sistrip::CALIBRATION_TIMECONSTANT_MAX, sistrip::CALIBRATION_TIMECONSTANT_MIN, sistrip::calibrationAmplitude_, sistrip::calibrationAmplitudeAS_, sistrip::calibrationAmplitudeMax_, sistrip::calibrationAmplitudeMin_, sistrip::calibrationChi2_, sistrip::calibrationChi2AS_, sistrip::calibrationChi2Max_, sistrip::calibrationChi2Min_, sistrip::calibrationRiseTime_, sistrip::calibrationRiseTimeAS_, sistrip::calibrationRiseTimeMax_, sistrip::calibrationRiseTimeMin_, sistrip::calibrationSmearing_, sistrip::calibrationSmearingAS_, sistrip::calibrationSmearingMax_, sistrip::calibrationSmearingMin_, sistrip::calibrationTail_, sistrip::calibrationTailAS_, sistrip::calibrationTailMax_, sistrip::calibrationTailMin_, sistrip::calibrationTimeConstant_, sistrip::calibrationTimeConstantAS_, sistrip::calibrationTimeConstantMax_, sistrip::calibrationTimeConstantMin_, sistrip::DAQ_SCOPE_MODE_MEAN_SIGNAL, sistrip::daqScopeModeMeanSignal_, sistrip::FAST_CABLING_CONNS_PER_FED, sistrip::FAST_CABLING_DCU_ID, sistrip::FAST_CABLING_HIGH_LEVEL, sistrip::FAST_CABLING_HIGH_RMS, sistrip::FAST_CABLING_LLD_CH, sistrip::FAST_CABLING_LOW_LEVEL, sistrip::FAST_CABLING_LOW_RMS, sistrip::FAST_CABLING_MAX, sistrip::FAST_CABLING_MIN, sistrip::fastCablingConnsPerFed_, sistrip::fastCablingDcuId_, sistrip::fastCablingHighLevel_, sistrip::fastCablingHighRms_, sistrip::fastCablingLldCh_, sistrip::fastCablingLowLevel_, sistrip::fastCablingLowRms_, sistrip::fastCablingMax_, sistrip::fastCablingMin_, sistrip::FED_CABLING_ADC_LEVEL, sistrip::FED_CABLING_FED_CH, sistrip::FED_CABLING_FED_ID, sistrip::FED_TIMING_BASE, sistrip::FED_TIMING_DELAY, sistrip::FED_TIMING_ERROR, sistrip::FED_TIMING_HEIGHT, sistrip::FED_TIMING_MAX_TIME, sistrip::FED_TIMING_PEAK, sistrip::FED_TIMING_TIME, sistrip::fedCablingAdcLevel_, sistrip::fedCablingFedCh_, sistrip::fedCablingFedId_, sistrip::fedTimingBase_, sistrip::fedTimingDelay_, sistrip::fedTimingError_, sistrip::fedTimingHeight_, sistrip::fedTimingMax_, sistrip::fedTimingPeak_, sistrip::fedTimingTime_, sistrip::FINE_DELAY_ERROR, sistrip::FINE_DELAY_POS, sistrip::fineDelayErr_, sistrip::fineDelayPos_, sistrip::NOISE_ALL_STRIPS, sistrip::NOISE_BIN_84_ALL_STRIPS, sistrip::NOISE_CHI2_ALL_STRIPS, sistrip::NOISE_GAUS_ALL_STRIPS, sistrip::NOISE_KS_ALL_STRIPS, sistrip::NOISE_MAX, sistrip::NOISE_MEAN, sistrip::NOISE_MIN, sistrip::NOISE_RMS_ALL_STRIPS, sistrip::NOISE_SIGNIF_ALL_STRIPS, sistrip::NOISE_SPREAD, sistrip::noiseAllStrips_, sistrip::noiseBin84AllStrips_, sistrip::noiseChi2AllStrips_, sistrip::noiseGausAllStrips_, sistrip::noiseKSAllStrips_, sistrip::noiseMax_, sistrip::noiseMean_, sistrip::noiseMin_, sistrip::noiseRMSAllStrips_, sistrip::noiseSignif_, sistrip::noiseSpread_, sistrip::NUM_OF_DEAD, sistrip::NUM_OF_NOISY, sistrip::numOfDead_, sistrip::numOfNoisy_, sistrip::OPTO_SCAN_BASELINE_LIFT_OFF, sistrip::OPTO_SCAN_LASER_THRESHOLD, sistrip::OPTO_SCAN_LINK_NOISE, sistrip::OPTO_SCAN_LLD_BIAS_SETTING, sistrip::OPTO_SCAN_LLD_GAIN_SETTING, sistrip::OPTO_SCAN_MEASURED_GAIN, sistrip::OPTO_SCAN_TICK_HEIGHT, sistrip::OPTO_SCAN_ZERO_LIGHT_LEVEL, sistrip::optoScanBaseLiftOff_, sistrip::optoScanLaserThresh_, sistrip::optoScanLinkNoise_, sistrip::optoScanLldBias_, sistrip::optoScanLldGain_, sistrip::optoScanMeasGain_, sistrip::optoScanTickHeight_, sistrip::optoScanZeroLight_, sistrip::PEDESTALS_ALL_STRIPS, sistrip::PEDESTALS_MAX, sistrip::PEDESTALS_MEAN, sistrip::PEDESTALS_MIN, sistrip::PEDESTALS_SPREAD, sistrip::pedestalsAllStrips_, sistrip::pedestalsMax_, sistrip::pedestalsMean_, sistrip::pedestalsMin_, sistrip::pedestalsSpread_, sistrip::UNDEFINED_MONITORABLE, sistrip::undefinedMonitorable_, sistrip::unknownMonitorable_, sistrip::VPSP_SCAN_ADC_LEVEL, sistrip::VPSP_SCAN_APV0_SETTING, sistrip::VPSP_SCAN_APV1_SETTING, sistrip::VPSP_SCAN_APV_SETTINGS, sistrip::VPSP_SCAN_DIGITAL_HIGH, sistrip::VPSP_SCAN_DIGITAL_LOW, sistrip::vpspScanAdcLevel_, sistrip::vpspScanApv0_, sistrip::vpspScanApv1_, sistrip::vpspScanBothApvs_, sistrip::vpspScanDigitalHigh_, and sistrip::vpspScanDigitalLow_.

Referenced by ApvTimingSummaryFactory::extract(), PedestalsSummaryFactory::extract(), PedsFullNoiseSummaryFactory::extract(), PedsOnlySummaryFactory::extract(), SamplingSummaryFactory::extract(), CalibrationSummaryFactory::extract(), FastFedCablingSummaryFactory::extract(), NoiseSummaryFactory::extract(), OptoScanSummaryFactory::extract(), VpspScanSummaryFactory::extract(), SummaryHistogramFactory< FedTimingAnalysis >::extract(), SummaryPlotFactory< FedCablingAnalysis * >::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), SummaryHistogramFactory< FedTimingAnalysis >::fill(), PedsFullNoiseSummaryFactory::format(), OptoScanSummaryFactory::format(), SamplingSummaryFactory::format(), PedestalsSummaryFactory::format(), VpspScanSummaryFactory::format(), CalibrationSummaryFactory::format(), ApvTimingSummaryFactory::format(), PedsOnlySummaryFactory::format(), NoiseSummaryFactory::format(), FastFedCablingSummaryFactory::format(), SummaryPlotFactory< FedCablingAnalysis * >::init(), SummaryPlotFactoryBase::init(), SummaryGenerator::name(), SummaryPlot::print(), and SummaryPlot::SummaryPlot().

294  {
295 
296  // fed cabling
298  else if ( mon == sistrip::FED_CABLING_FED_CH ) { return sistrip::fedCablingFedCh_; }
300 
301  // fast fed cabling
308  else if ( mon == sistrip::FAST_CABLING_MAX ) { return sistrip::fastCablingMax_; }
309  else if ( mon == sistrip::FAST_CABLING_MIN ) { return sistrip::fastCablingMin_; }
311 
312  // apv timing
313  else if ( mon == sistrip::APV_TIMING_TIME ) { return sistrip::apvTimingTime_; }
314  else if ( mon == sistrip::APV_TIMING_MAX_TIME ) { return sistrip::apvTimingMax_; }
315  else if ( mon == sistrip::APV_TIMING_DELAY ) { return sistrip::apvTimingDelay_; }
316  else if ( mon == sistrip::APV_TIMING_ERROR ) { return sistrip::apvTimingError_; }
317  else if ( mon == sistrip::APV_TIMING_BASE ) { return sistrip::apvTimingBase_; }
318  else if ( mon == sistrip::APV_TIMING_PEAK ) { return sistrip::apvTimingPeak_; }
319  else if ( mon == sistrip::APV_TIMING_HEIGHT ) { return sistrip::apvTimingHeight_; }
320 
321  // fed timing
322  else if ( mon == sistrip::FED_TIMING_TIME ) { return sistrip::fedTimingTime_; }
323  else if ( mon == sistrip::FED_TIMING_MAX_TIME ) { return sistrip::fedTimingMax_; }
324  else if ( mon == sistrip::FED_TIMING_DELAY ) { return sistrip::fedTimingDelay_; }
325  else if ( mon == sistrip::FED_TIMING_ERROR ) { return sistrip::fedTimingError_; }
326  else if ( mon == sistrip::FED_TIMING_BASE ) { return sistrip::fedTimingBase_; }
327  else if ( mon == sistrip::FED_TIMING_PEAK ) { return sistrip::fedTimingPeak_; }
328  else if ( mon == sistrip::FED_TIMING_HEIGHT ) { return sistrip::fedTimingHeight_; }
329 
330  // opto scan
339 
340  // vpsp scan
347 
348  // pedestals / noise
350  else if ( mon == sistrip::PEDESTALS_MEAN ) { return sistrip::pedestalsMean_; }
351  else if ( mon == sistrip::PEDESTALS_SPREAD ) { return sistrip::pedestalsSpread_; }
352  else if ( mon == sistrip::PEDESTALS_MAX ) { return sistrip::pedestalsMax_; }
353  else if ( mon == sistrip::PEDESTALS_MIN ) { return sistrip::pedestalsMin_; }
354  else if ( mon == sistrip::NOISE_ALL_STRIPS ) { return sistrip::noiseAllStrips_; }
355  else if ( mon == sistrip::NOISE_MEAN ) { return sistrip::noiseMean_; }
356  else if ( mon == sistrip::NOISE_SPREAD ) { return sistrip::noiseSpread_; }
357  else if ( mon == sistrip::NOISE_MAX ) { return sistrip::noiseMax_; }
358  else if ( mon == sistrip::NOISE_MIN ) { return sistrip::noiseMin_; }
359  else if ( mon == sistrip::NUM_OF_DEAD ) { return sistrip::numOfDead_; }
360  else if ( mon == sistrip::NUM_OF_NOISY ) { return sistrip::numOfNoisy_; }
367 
368  // fine delay
369  else if ( mon == sistrip::FINE_DELAY_POS) { return sistrip::fineDelayPos_; }
370  else if ( mon == sistrip::FINE_DELAY_ERROR) { return sistrip::fineDelayErr_; }
371 
372  // calibration
397 
398  // scope mode
400 
401  // unknown
403  else { return sistrip::unknownMonitorable_; }
404 
405 }
static const char optoScanLinkNoise_[]
static const char calibrationAmplitude_[]
static const char fastCablingDcuId_[]
static const char optoScanLldGain_[]
static const char calibrationAmplitudeAS_[]
static const char calibrationTimeConstantMax_[]
static const char calibrationRiseTimeMax_[]
static const char noiseKSAllStrips_[]
static const char fedTimingError_[]
static const char noiseMean_[]
static const char fastCablingMin_[]
static const char numOfDead_[]
static const char calibrationTimeConstantMin_[]
static const char fedCablingAdcLevel_[]
static const char calibrationAmplitudeMax_[]
static const char apvTimingHeight_[]
static const char apvTimingMax_[]
static const char optoScanTickHeight_[]
static const char fineDelayPos_[]
static const char noiseMax_[]
static const char calibrationSmearingAS_[]
static const char noiseMin_[]
static const char calibrationTimeConstantAS_[]
static const char optoScanMeasGain_[]
static const char pedestalsMean_[]
static const char fedTimingHeight_[]
static const char fedCablingFedId_[]
static const char fedCablingFedCh_[]
static const char optoScanLldBias_[]
static const char calibrationAmplitudeMin_[]
static const char apvTimingDelay_[]
static const char calibrationSmearing_[]
static const char numOfNoisy_[]
static const char calibrationTailMin_[]
static const char vpspScanDigitalHigh_[]
static const char undefinedMonitorable_[]
static const char fastCablingLowRms_[]
static const char optoScanBaseLiftOff_[]
static const char calibrationTailMax_[]
static const char fastCablingLldCh_[]
static const char optoScanZeroLight_[]
static const char vpspScanDigitalLow_[]
static const char calibrationTimeConstant_[]
static const char calibrationTailAS_[]
static const char noiseGausAllStrips_[]
static const char unknownMonitorable_[]
static const char noiseSpread_[]
static const char fastCablingMax_[]
static const char pedestalsMin_[]
static const char fineDelayErr_[]
static const char noiseBin84AllStrips_[]
static const char fastCablingLowLevel_[]
static const char calibrationRiseTime_[]
static const char apvTimingError_[]
static const char fedTimingPeak_[]
static const char fastCablingConnsPerFed_[]
static const char calibrationRiseTimeMin_[]
static const char fedTimingMax_[]
static const char calibrationChi2_[]
static const char calibrationSmearingMin_[]
static const char apvTimingBase_[]
static const char fedTimingBase_[]
static const char optoScanLaserThresh_[]
static const char vpspScanAdcLevel_[]
static const char apvTimingTime_[]
static const char fedTimingDelay_[]
static const char daqScopeModeMeanSignal_[]
static const char calibrationSmearingMax_[]
static const char calibrationTail_[]
static const char noiseAllStrips_[]
static const char noiseChi2AllStrips_[]
static const char fedTimingTime_[]
static const char calibrationChi2Min_[]
static const char calibrationChi2Max_[]
static const char pedestalsMax_[]
static const char fastCablingHighLevel_[]
static const char vpspScanApv1_[]
static const char noiseRMSAllStrips_[]
static const char calibrationRiseTimeAS_[]
static const char calibrationChi2AS_[]
static const char apvTimingPeak_[]
static const char vpspScanApv0_[]
static const char pedestalsSpread_[]
static const char vpspScanBothApvs_[]
static const char fastCablingHighRms_[]
static const char noiseSignif_[]
static const char pedestalsAllStrips_[]
sistrip::Monitorable SiStripEnumsAndStrings::monitorable ( const std::string &  histo_monitorable)
static

Definition at line 409 of file SiStripEnumsAndStrings.cc.

References sistrip::APV_TIMING_BASE, sistrip::APV_TIMING_DELAY, sistrip::APV_TIMING_ERROR, sistrip::APV_TIMING_HEIGHT, sistrip::APV_TIMING_MAX_TIME, sistrip::APV_TIMING_PEAK, sistrip::APV_TIMING_TIME, sistrip::apvTimingBase_, sistrip::apvTimingDelay_, sistrip::apvTimingError_, sistrip::apvTimingHeight_, sistrip::apvTimingMax_, sistrip::apvTimingPeak_, sistrip::apvTimingTime_, sistrip::CALIBRATION_AMPLITUDE, sistrip::CALIBRATION_AMPLITUDE_ALLSTRIPS, sistrip::CALIBRATION_AMPLITUDE_MAX, sistrip::CALIBRATION_AMPLITUDE_MIN, sistrip::CALIBRATION_CHI2, sistrip::CALIBRATION_CHI2_ALLSTRIPS, sistrip::CALIBRATION_CHI2_MAX, sistrip::CALIBRATION_CHI2_MIN, sistrip::CALIBRATION_RISETIME, sistrip::CALIBRATION_RISETIME_ALLSTRIPS, sistrip::CALIBRATION_RISETIME_MAX, sistrip::CALIBRATION_RISETIME_MIN, sistrip::CALIBRATION_SMEARING, sistrip::CALIBRATION_SMEARING_ALLSTRIPS, sistrip::CALIBRATION_SMEARING_MAX, sistrip::CALIBRATION_SMEARING_MIN, sistrip::CALIBRATION_TAIL, sistrip::CALIBRATION_TAIL_ALLSTRIPS, sistrip::CALIBRATION_TAIL_MAX, sistrip::CALIBRATION_TAIL_MIN, sistrip::CALIBRATION_TIMECONSTANT, sistrip::CALIBRATION_TIMECONSTANT_ALLSTRIPS, sistrip::CALIBRATION_TIMECONSTANT_MAX, sistrip::CALIBRATION_TIMECONSTANT_MIN, sistrip::calibrationAmplitude_, sistrip::calibrationAmplitudeAS_, sistrip::calibrationAmplitudeMax_, sistrip::calibrationAmplitudeMin_, sistrip::calibrationChi2_, sistrip::calibrationChi2AS_, sistrip::calibrationChi2Max_, sistrip::calibrationChi2Min_, sistrip::calibrationRiseTime_, sistrip::calibrationRiseTimeAS_, sistrip::calibrationRiseTimeMax_, sistrip::calibrationRiseTimeMin_, sistrip::calibrationSmearing_, sistrip::calibrationSmearingAS_, sistrip::calibrationSmearingMax_, sistrip::calibrationSmearingMin_, sistrip::calibrationTail_, sistrip::calibrationTailAS_, sistrip::calibrationTailMax_, sistrip::calibrationTailMin_, sistrip::calibrationTimeConstant_, sistrip::calibrationTimeConstantAS_, sistrip::calibrationTimeConstantMax_, sistrip::calibrationTimeConstantMin_, sistrip::DAQ_SCOPE_MODE_MEAN_SIGNAL, sistrip::daqScopeModeMeanSignal_, sistrip::FAST_CABLING_CONNS_PER_FED, sistrip::FAST_CABLING_DCU_ID, sistrip::FAST_CABLING_HIGH_LEVEL, sistrip::FAST_CABLING_HIGH_RMS, sistrip::FAST_CABLING_LLD_CH, sistrip::FAST_CABLING_LOW_LEVEL, sistrip::FAST_CABLING_LOW_RMS, sistrip::FAST_CABLING_MAX, sistrip::FAST_CABLING_MIN, sistrip::fastCablingConnsPerFed_, sistrip::fastCablingDcuId_, sistrip::fastCablingHighLevel_, sistrip::fastCablingHighRms_, sistrip::fastCablingLldCh_, sistrip::fastCablingLowLevel_, sistrip::fastCablingLowRms_, sistrip::fastCablingMax_, sistrip::fastCablingMin_, sistrip::FED_CABLING_ADC_LEVEL, sistrip::FED_CABLING_FED_CH, sistrip::FED_CABLING_FED_ID, sistrip::FED_TIMING_BASE, sistrip::FED_TIMING_DELAY, sistrip::FED_TIMING_ERROR, sistrip::FED_TIMING_HEIGHT, sistrip::FED_TIMING_MAX_TIME, sistrip::FED_TIMING_PEAK, sistrip::FED_TIMING_TIME, sistrip::fedCablingAdcLevel_, sistrip::fedCablingFedCh_, sistrip::fedCablingFedId_, sistrip::fedTimingBase_, sistrip::fedTimingDelay_, sistrip::fedTimingError_, sistrip::fedTimingHeight_, sistrip::fedTimingMax_, sistrip::fedTimingPeak_, sistrip::fedTimingTime_, sistrip::FINE_DELAY_ERROR, sistrip::FINE_DELAY_POS, sistrip::fineDelayErr_, sistrip::fineDelayPos_, sistrip::NOISE_ALL_STRIPS, sistrip::NOISE_BIN_84_ALL_STRIPS, sistrip::NOISE_CHI2_ALL_STRIPS, sistrip::NOISE_GAUS_ALL_STRIPS, sistrip::NOISE_KS_ALL_STRIPS, sistrip::NOISE_MAX, sistrip::NOISE_MEAN, sistrip::NOISE_MIN, sistrip::NOISE_RMS_ALL_STRIPS, sistrip::NOISE_SIGNIF_ALL_STRIPS, sistrip::NOISE_SPREAD, sistrip::noiseAllStrips_, sistrip::noiseBin84AllStrips_, sistrip::noiseChi2AllStrips_, sistrip::noiseGausAllStrips_, sistrip::noiseKSAllStrips_, sistrip::noiseMax_, sistrip::noiseMean_, sistrip::noiseMin_, sistrip::noiseRMSAllStrips_, sistrip::noiseSignif_, sistrip::noiseSpread_, sistrip::NUM_OF_DEAD, sistrip::NUM_OF_NOISY, sistrip::numOfDead_, sistrip::numOfNoisy_, sistrip::OPTO_SCAN_BASELINE_LIFT_OFF, sistrip::OPTO_SCAN_LASER_THRESHOLD, sistrip::OPTO_SCAN_LINK_NOISE, sistrip::OPTO_SCAN_LLD_BIAS_SETTING, sistrip::OPTO_SCAN_LLD_GAIN_SETTING, sistrip::OPTO_SCAN_MEASURED_GAIN, sistrip::OPTO_SCAN_TICK_HEIGHT, sistrip::OPTO_SCAN_ZERO_LIGHT_LEVEL, sistrip::optoScanBaseLiftOff_, sistrip::optoScanLaserThresh_, sistrip::optoScanLinkNoise_, sistrip::optoScanLldBias_, sistrip::optoScanLldGain_, sistrip::optoScanMeasGain_, sistrip::optoScanTickHeight_, sistrip::optoScanZeroLight_, sistrip::PEDESTALS_ALL_STRIPS, sistrip::PEDESTALS_MAX, sistrip::PEDESTALS_MEAN, sistrip::PEDESTALS_MIN, sistrip::PEDESTALS_SPREAD, sistrip::pedestalsAllStrips_, sistrip::pedestalsMax_, sistrip::pedestalsMean_, sistrip::pedestalsMin_, sistrip::pedestalsSpread_, sistrip::UNDEFINED_MONITORABLE, sistrip::undefinedMonitorable_, sistrip::UNKNOWN_MONITORABLE, sistrip::VPSP_SCAN_ADC_LEVEL, sistrip::VPSP_SCAN_APV0_SETTING, sistrip::VPSP_SCAN_APV1_SETTING, sistrip::VPSP_SCAN_APV_SETTINGS, sistrip::VPSP_SCAN_DIGITAL_HIGH, sistrip::VPSP_SCAN_DIGITAL_LOW, sistrip::vpspScanAdcLevel_, sistrip::vpspScanApv0_, sistrip::vpspScanApv1_, sistrip::vpspScanBothApvs_, sistrip::vpspScanDigitalHigh_, and sistrip::vpspScanDigitalLow_.

409  {
410 
411  // fed cabling
412  if ( mon.find( sistrip::fedCablingFedId_ ) != std::string::npos ) { return sistrip::FED_CABLING_FED_ID; }
413  else if ( mon.find( sistrip::fedCablingFedCh_ ) != std::string::npos ) { return sistrip::FED_CABLING_FED_CH; }
414  else if ( mon.find( sistrip::fedCablingAdcLevel_ ) != std::string::npos ) { return sistrip::FED_CABLING_ADC_LEVEL; }
415 
416  // fed cabling
417  else if ( mon.find( sistrip::fastCablingDcuId_ ) != std::string::npos ) { return sistrip::FAST_CABLING_DCU_ID; }
418  else if ( mon.find( sistrip::fastCablingLldCh_ ) != std::string::npos ) { return sistrip::FAST_CABLING_LLD_CH; }
419  else if ( mon.find( sistrip::fastCablingHighLevel_ ) != std::string::npos ) { return sistrip::FAST_CABLING_HIGH_LEVEL; }
420  else if ( mon.find( sistrip::fastCablingHighRms_ ) != std::string::npos ) { return sistrip::FAST_CABLING_HIGH_RMS; }
421  else if ( mon.find( sistrip::fastCablingLowLevel_ ) != std::string::npos ) { return sistrip::FAST_CABLING_LOW_LEVEL; }
422  else if ( mon.find( sistrip::fastCablingLowRms_ ) != std::string::npos ) { return sistrip::FAST_CABLING_LOW_RMS; }
423  else if ( mon.find( sistrip::fastCablingMax_ ) != std::string::npos ) { return sistrip::FAST_CABLING_MAX; }
424  else if ( mon.find( sistrip::fastCablingMin_ ) != std::string::npos ) { return sistrip::FAST_CABLING_MIN; }
425  else if ( mon.find( sistrip::fastCablingConnsPerFed_ ) != std::string::npos ) { return sistrip::FAST_CABLING_CONNS_PER_FED; }
426 
427  // apv timing
428  else if ( mon.find( sistrip::apvTimingTime_ ) != std::string::npos ) { return sistrip::APV_TIMING_TIME; }
429  else if ( mon.find( sistrip::apvTimingMax_ ) != std::string::npos ) { return sistrip::APV_TIMING_MAX_TIME; }
430  else if ( mon.find( sistrip::apvTimingDelay_ ) != std::string::npos ) { return sistrip::APV_TIMING_DELAY; }
431  else if ( mon.find( sistrip::apvTimingError_ ) != std::string::npos ) { return sistrip::APV_TIMING_ERROR; }
432  else if ( mon.find( sistrip::apvTimingBase_ ) != std::string::npos ) { return sistrip::APV_TIMING_BASE; }
433  else if ( mon.find( sistrip::apvTimingPeak_ ) != std::string::npos ) { return sistrip::APV_TIMING_PEAK; }
434  else if ( mon.find( sistrip::apvTimingHeight_ ) != std::string::npos ) { return sistrip::APV_TIMING_HEIGHT; }
435 
436  // fed timing
437  else if ( mon.find( sistrip::fedTimingTime_ ) != std::string::npos ) { return sistrip::FED_TIMING_TIME; }
438  else if ( mon.find( sistrip::fedTimingMax_ ) != std::string::npos ) { return sistrip::FED_TIMING_MAX_TIME; }
439  else if ( mon.find( sistrip::fedTimingDelay_ ) != std::string::npos ) { return sistrip::FED_TIMING_DELAY; }
440  else if ( mon.find( sistrip::fedTimingError_ ) != std::string::npos ) { return sistrip::FED_TIMING_ERROR; }
441  else if ( mon.find( sistrip::fedTimingBase_ ) != std::string::npos ) { return sistrip::FED_TIMING_BASE; }
442  else if ( mon.find( sistrip::fedTimingPeak_ ) != std::string::npos ) { return sistrip::FED_TIMING_PEAK; }
443  else if ( mon.find( sistrip::fedTimingHeight_ ) != std::string::npos ) { return sistrip::FED_TIMING_HEIGHT; }
444 
445  // opto scan
446  else if ( mon.find( sistrip::optoScanLldGain_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LLD_GAIN_SETTING; }
447  else if ( mon.find( sistrip::optoScanLldBias_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LLD_BIAS_SETTING; }
448  else if ( mon.find( sistrip::optoScanMeasGain_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_MEASURED_GAIN; }
449  else if ( mon.find( sistrip::optoScanZeroLight_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_ZERO_LIGHT_LEVEL; }
450  else if ( mon.find( sistrip::optoScanLinkNoise_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LINK_NOISE; }
451  else if ( mon.find( sistrip::optoScanBaseLiftOff_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_BASELINE_LIFT_OFF; }
452  else if ( mon.find( sistrip::optoScanLaserThresh_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LASER_THRESHOLD; }
453  else if ( mon.find( sistrip::optoScanTickHeight_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_TICK_HEIGHT; }
454 
455  // vpsp scan
456  else if ( mon.find( sistrip::vpspScanBothApvs_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_APV_SETTINGS; }
457  else if ( mon.find( sistrip::vpspScanApv0_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_APV0_SETTING; }
458  else if ( mon.find( sistrip::vpspScanApv1_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_APV1_SETTING; }
459  else if ( mon.find( sistrip::vpspScanAdcLevel_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_ADC_LEVEL; }
460  else if ( mon.find( sistrip::vpspScanDigitalHigh_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_DIGITAL_HIGH; }
461  else if ( mon.find( sistrip::vpspScanDigitalLow_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_DIGITAL_LOW; }
462 
463  // pedestals / noise
464  else if ( mon.find( sistrip::pedestalsAllStrips_ ) != std::string::npos ) { return sistrip::PEDESTALS_ALL_STRIPS; }
465  else if ( mon.find( sistrip::pedestalsMean_ ) != std::string::npos ) { return sistrip::PEDESTALS_MEAN; }
466  else if ( mon.find( sistrip::pedestalsSpread_ ) != std::string::npos ) { return sistrip::PEDESTALS_SPREAD; }
467  else if ( mon.find( sistrip::pedestalsMax_ ) != std::string::npos ) { return sistrip::PEDESTALS_MAX; }
468  else if ( mon.find( sistrip::pedestalsMin_ ) != std::string::npos ) { return sistrip::PEDESTALS_MIN; }
469 
470  // noiseKS must come before the more general noiseAllStrips, since it contains that string
471  else if ( mon.find( sistrip::noiseGausAllStrips_ ) != std::string::npos ) { return sistrip::NOISE_GAUS_ALL_STRIPS; }
472  else if ( mon.find( sistrip::noiseKSAllStrips_ ) != std::string::npos ) { return sistrip::NOISE_KS_ALL_STRIPS; }
473  else if ( mon.find( sistrip::noiseChi2AllStrips_ ) != std::string::npos ) { return sistrip::NOISE_CHI2_ALL_STRIPS; }
474  else if ( mon.find( sistrip::noiseBin84AllStrips_ ) != std::string::npos ) { return sistrip::NOISE_BIN_84_ALL_STRIPS;}
475  else if ( mon.find( sistrip::noiseRMSAllStrips_ ) != std::string::npos ) { return sistrip::NOISE_RMS_ALL_STRIPS;}
476  else if ( mon.find( sistrip::noiseSignif_ ) != std::string::npos ) { return sistrip::NOISE_SIGNIF_ALL_STRIPS; }
477  else if ( mon.find( sistrip::noiseAllStrips_ ) != std::string::npos ) { return sistrip::NOISE_ALL_STRIPS; }
478  else if ( mon.find( sistrip::noiseMean_ ) != std::string::npos ) { return sistrip::NOISE_MEAN; }
479  else if ( mon.find( sistrip::noiseSpread_ ) != std::string::npos ) { return sistrip::NOISE_SPREAD; }
480  else if ( mon.find( sistrip::noiseMax_ ) != std::string::npos ) { return sistrip::NOISE_MAX; }
481  else if ( mon.find( sistrip::noiseMin_ ) != std::string::npos ) { return sistrip::NOISE_MIN; }
482  else if ( mon.find( sistrip::numOfDead_ ) != std::string::npos ) { return sistrip::NUM_OF_DEAD; }
483  else if ( mon.find( sistrip::numOfNoisy_ ) != std::string::npos ) { return sistrip::NUM_OF_NOISY; }
484 
485  // fine delay
486  else if ( mon.find( sistrip::fineDelayPos_ ) != std::string::npos ) { return sistrip::FINE_DELAY_POS; }
487  else if ( mon.find( sistrip::fineDelayErr_ ) != std::string::npos ) { return sistrip::FINE_DELAY_ERROR; }
488 
489  // calibration
490  else if ( mon.find( sistrip::calibrationAmplitudeAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE_ALLSTRIPS; }
491  else if ( mon.find( sistrip::calibrationTailAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL_ALLSTRIPS; }
492  else if ( mon.find( sistrip::calibrationRiseTimeAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME_ALLSTRIPS; }
493  else if ( mon.find( sistrip::calibrationTimeConstantAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT_ALLSTRIPS; }
494  else if ( mon.find( sistrip::calibrationSmearingAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING_ALLSTRIPS; }
495  else if ( mon.find( sistrip::calibrationChi2AS_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2_ALLSTRIPS; }
496  else if ( mon.find( sistrip::calibrationAmplitudeMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE_MIN; }
497  else if ( mon.find( sistrip::calibrationTailMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL_MIN; }
498  else if ( mon.find( sistrip::calibrationRiseTimeMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME_MIN; }
499  else if ( mon.find( sistrip::calibrationTimeConstantMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT_MIN; }
500  else if ( mon.find( sistrip::calibrationSmearingMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING_MIN; }
501  else if ( mon.find( sistrip::calibrationChi2Min_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2_MIN; }
502  else if ( mon.find( sistrip::calibrationAmplitudeMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE_MAX; }
503  else if ( mon.find( sistrip::calibrationTailMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL_MAX; }
504  else if ( mon.find( sistrip::calibrationRiseTimeMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME_MAX; }
505  else if ( mon.find( sistrip::calibrationTimeConstantMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT_MAX; }
506  else if ( mon.find( sistrip::calibrationSmearingMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING_MAX; }
507  else if ( mon.find( sistrip::calibrationChi2Max_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2_MAX; }
508  else if ( mon.find( sistrip::calibrationAmplitude_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE; }
509  else if ( mon.find( sistrip::calibrationTail_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL; }
510  else if ( mon.find( sistrip::calibrationRiseTime_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME; }
511  else if ( mon.find( sistrip::calibrationTimeConstant_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT; }
512  else if ( mon.find( sistrip::calibrationSmearing_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING; }
513  else if ( mon.find( sistrip::calibrationChi2_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2; }
514 
515  // scope mode
516  else if ( mon.find( sistrip::daqScopeModeMeanSignal_ ) != std::string::npos ) { return sistrip::DAQ_SCOPE_MODE_MEAN_SIGNAL; }
517 
518  // unknown
519  else if ( mon.find( sistrip::undefinedMonitorable_ ) != std::string::npos ) { return sistrip::UNDEFINED_MONITORABLE; }
520  else if ( mon.empty() ) { return sistrip::UNDEFINED_MONITORABLE; }
521  else { return sistrip::UNKNOWN_MONITORABLE; }
522 
523 }
static const char optoScanLinkNoise_[]
static const char calibrationAmplitude_[]
static const char fastCablingDcuId_[]
static const char optoScanLldGain_[]
static const char calibrationAmplitudeAS_[]
static const char calibrationTimeConstantMax_[]
static const char calibrationRiseTimeMax_[]
static const char noiseKSAllStrips_[]
static const char fedTimingError_[]
static const char noiseMean_[]
static const char fastCablingMin_[]
static const char numOfDead_[]
static const char calibrationTimeConstantMin_[]
static const char fedCablingAdcLevel_[]
static const char calibrationAmplitudeMax_[]
static const char apvTimingHeight_[]
static const char apvTimingMax_[]
static const char optoScanTickHeight_[]
static const char fineDelayPos_[]
static const char noiseMax_[]
static const char calibrationSmearingAS_[]
static const char noiseMin_[]
static const char calibrationTimeConstantAS_[]
static const char optoScanMeasGain_[]
static const char pedestalsMean_[]
static const char fedTimingHeight_[]
static const char fedCablingFedId_[]
static const char fedCablingFedCh_[]
static const char optoScanLldBias_[]
static const char calibrationAmplitudeMin_[]
static const char apvTimingDelay_[]
static const char calibrationSmearing_[]
static const char numOfNoisy_[]
static const char calibrationTailMin_[]
static const char vpspScanDigitalHigh_[]
static const char undefinedMonitorable_[]
static const char fastCablingLowRms_[]
static const char optoScanBaseLiftOff_[]
static const char calibrationTailMax_[]
static const char fastCablingLldCh_[]
static const char optoScanZeroLight_[]
static const char vpspScanDigitalLow_[]
static const char calibrationTimeConstant_[]
static const char calibrationTailAS_[]
static const char noiseGausAllStrips_[]
static const char noiseSpread_[]
static const char fastCablingMax_[]
static const char pedestalsMin_[]
static const char fineDelayErr_[]
static const char noiseBin84AllStrips_[]
static const char fastCablingLowLevel_[]
static const char calibrationRiseTime_[]
static const char apvTimingError_[]
static const char fedTimingPeak_[]
static const char fastCablingConnsPerFed_[]
static const char calibrationRiseTimeMin_[]
static const char fedTimingMax_[]
static const char calibrationChi2_[]
static const char calibrationSmearingMin_[]
static const char apvTimingBase_[]
static const char fedTimingBase_[]
static const char optoScanLaserThresh_[]
static const char vpspScanAdcLevel_[]
static const char apvTimingTime_[]
static const char fedTimingDelay_[]
static const char daqScopeModeMeanSignal_[]
static const char calibrationSmearingMax_[]
static const char calibrationTail_[]
static const char noiseAllStrips_[]
static const char noiseChi2AllStrips_[]
static const char fedTimingTime_[]
static const char calibrationChi2Min_[]
static const char calibrationChi2Max_[]
static const char pedestalsMax_[]
static const char fastCablingHighLevel_[]
static const char vpspScanApv1_[]
static const char noiseRMSAllStrips_[]
static const char calibrationRiseTimeAS_[]
static const char calibrationChi2AS_[]
static const char apvTimingPeak_[]
static const char vpspScanApv0_[]
static const char pedestalsSpread_[]
static const char vpspScanBothApvs_[]
static const char fastCablingHighRms_[]
static const char noiseSignif_[]
static const char pedestalsAllStrips_[]
std::string SiStripEnumsAndStrings::presentation ( const sistrip::Presentation type)
static

Definition at line 527 of file SiStripEnumsAndStrings.cc.

References sistrip::histo1d_, sistrip::histo2dScatter_, sistrip::histo2dSum_, sistrip::HISTO_1D, sistrip::HISTO_2D_SCATTER, sistrip::HISTO_2D_SUM, sistrip::profile1D_, sistrip::PROFILE_1D, sistrip::UNDEFINED_PRESENTATION, sistrip::undefinedPresentation_, and sistrip::unknownPresentation_.

Referenced by SummaryPlotFactoryBase::fill(), SummaryHistogramFactory< DaqScopeModeAnalysis >::fill(), SummaryHistogramFactory< FedTimingAnalysis >::fill(), SummaryGenerator::histogram(), CommissioningHistograms::histogram(), SummaryPlotFactoryBase::init(), SummaryGenerator::name(), SummaryPlot::print(), and SummaryPlot::SummaryPlot().

527  {
528  if ( type == sistrip::HISTO_1D ) { return sistrip::histo1d_; }
529  else if ( type == sistrip::HISTO_2D_SUM ) { return sistrip::histo2dSum_; }
530  else if ( type == sistrip::HISTO_2D_SCATTER ) { return sistrip::histo2dScatter_; }
531  else if ( type == sistrip::PROFILE_1D ) { return sistrip::profile1D_; }
533  else { return sistrip::unknownPresentation_; }
534 }
type
Definition: HCALResponse.h:22
static const char unknownPresentation_[]
static const char histo2dScatter_[]
static const char profile1D_[]
static const char histo2dSum_[]
static const char undefinedPresentation_[]
static const char histo1d_[]
sistrip::Presentation SiStripEnumsAndStrings::presentation ( const std::string &  histo_presentation)
static

Definition at line 538 of file SiStripEnumsAndStrings.cc.

References sistrip::histo1d_, sistrip::histo2dScatter_, sistrip::histo2dSum_, sistrip::HISTO_1D, sistrip::HISTO_2D_SCATTER, sistrip::HISTO_2D_SUM, sistrip::profile1D_, sistrip::PROFILE_1D, sistrip::UNDEFINED_PRESENTATION, sistrip::undefinedPresentation_, and sistrip::UNKNOWN_PRESENTATION.

538  {
539  if ( type.find( sistrip::histo1d_ ) != std::string::npos ) { return sistrip::HISTO_1D; }
540  else if ( type.find( sistrip::histo2dSum_ ) != std::string::npos ) { return sistrip::HISTO_2D_SUM; }
541  else if ( type.find( sistrip::histo2dScatter_ ) != std::string::npos ) { return sistrip::HISTO_2D_SCATTER; }
542  else if ( type.find( sistrip::profile1D_ ) != std::string::npos ) { return sistrip::PROFILE_1D; }
543  else if ( type.find( sistrip::undefinedPresentation_ ) != std::string::npos ) { return sistrip::UNDEFINED_PRESENTATION; }
544  else if ( type.empty() ) { return sistrip::UNDEFINED_PRESENTATION; }
545  else { return sistrip::UNKNOWN_PRESENTATION; }
546 }
type
Definition: HCALResponse.h:22
static const char histo2dScatter_[]
static const char profile1D_[]
static const char histo2dSum_[]
static const char undefinedPresentation_[]
static const char histo1d_[]
std::string SiStripEnumsAndStrings::runType ( const sistrip::RunType run_type)
static

Definition at line 28 of file SiStripEnumsAndStrings.cc.

References sistrip::APV_LATENCY, sistrip::APV_TIMING, sistrip::apvLatencyRun_, sistrip::apvTimingRun_, sistrip::calibDeconRun_, sistrip::calibPeakRun_, sistrip::CALIBRATION, sistrip::CALIBRATION_DECO, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, sistrip::calibScanDeconRun_, sistrip::calibScanPeakRun_, sistrip::DAQ_SCOPE_MODE, sistrip::daqScopeModeRun_, sistrip::FAST_CABLING, sistrip::fastCablingRun_, sistrip::FED_CABLING, sistrip::FED_TIMING, sistrip::fedCablingRun_, sistrip::fedTimingRun_, sistrip::FINE_DELAY, sistrip::fineDelayRun_, sistrip::NOISE, sistrip::noiseRun_, sistrip::OPTO_SCAN, sistrip::optoScanRun_, sistrip::PEDESTALS, sistrip::pedestalsRun_, sistrip::PEDS_FULL_NOISE, sistrip::PEDS_ONLY, sistrip::pedsFullNoiseRun_, sistrip::pedsOnlyRun_, sistrip::PHYSICS, sistrip::physicsRun_, sistrip::UNDEFINED_RUN_TYPE, sistrip::undefinedRunType_, sistrip::unknownRunType_, sistrip::VPSP_SCAN, and sistrip::vpspScanRun_.

Referenced by SiStripCommissioningSource::analyze(), SiStripCommissioningOfflineClient::beginRun(), SiStripEventSummary::commissioningInfo(), SiStripCommissioningSource::createCablingTasks(), SiStripCommissioningSource::createTask(), SiStripHistoTitle::extractTitle(), SummaryGenerator::name(), operator<<(), SummaryPlotXmlParser::parseXML(), SummaryPlotXmlParser::print(), SiStripPartition::print(), SiStripTFile::readDQMFormat(), CommissioningHistograms::runType(), SiStripTFile::setDQMFormat(), SiStripHistoTitle::setTitle(), SiStripCommissioningRunTypeFilter::SiStripCommissioningRunTypeFilter(), PedsOnlyAnalysis::summary(), VpspScanAnalysis::summary(), PedestalsAnalysis::summary(), NoiseAnalysis::summary(), OptoScanAnalysis::summary(), CommissioningAnalysis::summary(), FastFedCablingAnalysis::summary(), and PedsFullNoiseAnalysis::summary().

28  {
29  if ( run_type == sistrip::FAST_CABLING ) { return sistrip::fastCablingRun_; }
30  else if ( run_type == sistrip::FED_CABLING ) { return sistrip::fedCablingRun_; }
31  else if ( run_type == sistrip::APV_TIMING ) { return sistrip::apvTimingRun_; }
32  else if ( run_type == sistrip::FED_TIMING ) { return sistrip::fedTimingRun_; }
33  else if ( run_type == sistrip::OPTO_SCAN ) { return sistrip::optoScanRun_; }
34  else if ( run_type == sistrip::VPSP_SCAN ) { return sistrip::vpspScanRun_; }
35  else if ( run_type == sistrip::PEDESTALS ) { return sistrip::pedestalsRun_; }
36  else if ( run_type == sistrip::PEDS_ONLY ) { return sistrip::pedsOnlyRun_; }
37  else if ( run_type == sistrip::NOISE ) { return sistrip::noiseRun_; }
38  else if ( run_type == sistrip::PEDS_FULL_NOISE ) { return sistrip::pedsFullNoiseRun_; }
39  else if ( run_type == sistrip::APV_LATENCY ){ return sistrip::apvLatencyRun_; }
40  else if ( run_type == sistrip::FINE_DELAY ){ return sistrip::fineDelayRun_; }
41  else if ( run_type == sistrip::CALIBRATION ){ return sistrip::calibPeakRun_; }
42  else if ( run_type == sistrip::CALIBRATION_DECO ){ return sistrip::calibDeconRun_; }
43  else if ( run_type == sistrip::CALIBRATION_SCAN ){ return sistrip::calibScanPeakRun_; }
44  else if ( run_type == sistrip::CALIBRATION_SCAN_DECO ){ return sistrip::calibScanDeconRun_; }
45  else if ( run_type == sistrip::DAQ_SCOPE_MODE ){ return sistrip::daqScopeModeRun_; }
46  else if ( run_type == sistrip::PHYSICS ){ return sistrip::physicsRun_; }
47  else if ( run_type == sistrip::UNDEFINED_RUN_TYPE ) { return sistrip::undefinedRunType_; }
48  else { return sistrip::unknownRunType_; }
49 }
static const char fastCablingRun_[]
static const char vpspScanRun_[]
static const char calibScanPeakRun_[]
static const char calibScanDeconRun_[]
static const char physicsRun_[]
static const char fineDelayRun_[]
static const char apvTimingRun_[]
static const char pedsOnlyRun_[]
static const char pedestalsRun_[]
static const char noiseRun_[]
static const char pedsFullNoiseRun_[]
static const char undefinedRunType_[]
static const char calibPeakRun_[]
static const char fedTimingRun_[]
static const char unknownRunType_[]
static const char optoScanRun_[]
static const char fedCablingRun_[]
static const char calibDeconRun_[]
static const char daqScopeModeRun_[]
static const char apvLatencyRun_[]
sistrip::RunType SiStripEnumsAndStrings::runType ( const std::string &  run_type)
static

Definition at line 53 of file SiStripEnumsAndStrings.cc.

References sistrip::APV_LATENCY, sistrip::APV_TIMING, sistrip::apvLatencyRun_, sistrip::apvTimingRun_, sistrip::calibDeconRun_, sistrip::calibPeakRun_, sistrip::CALIBRATION, sistrip::CALIBRATION_DECO, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, sistrip::calibScanDeconRun_, sistrip::calibScanPeakRun_, sistrip::DAQ_SCOPE_MODE, sistrip::daqScopeModeRun_, sistrip::FAST_CABLING, sistrip::fastCablingRun_, sistrip::FED_CABLING, sistrip::FED_TIMING, sistrip::fedCablingRun_, sistrip::fedTimingRun_, sistrip::FINE_DELAY, sistrip::fineDelayRun_, sistrip::NOISE, sistrip::noiseRun_, sistrip::OPTO_SCAN, sistrip::optoScanRun_, sistrip::PEDESTALS, sistrip::pedestalsRun_, sistrip::PEDS_FULL_NOISE, sistrip::PEDS_ONLY, sistrip::pedsFullNoiseRun_, sistrip::pedsOnlyRun_, sistrip::PHYSICS, sistrip::physicsRun_, sistrip::UNDEFINED_RUN_TYPE, sistrip::undefinedRunType_, sistrip::UNKNOWN_RUN_TYPE, sistrip::VPSP_SCAN, and sistrip::vpspScanRun_.

53  {
54  if ( run_type.find( sistrip::fastCablingRun_ ) != std::string::npos ) { return sistrip::FAST_CABLING; }
55  else if ( run_type.find( sistrip::fedCablingRun_ ) != std::string::npos ) { return sistrip::FED_CABLING; }
56  else if ( run_type.find( sistrip::apvTimingRun_ ) != std::string::npos ) { return sistrip::APV_TIMING; }
57  else if ( run_type.find( sistrip::fedTimingRun_ ) != std::string::npos ) { return sistrip::FED_TIMING; }
58  else if ( run_type.find( sistrip::optoScanRun_ ) != std::string::npos ) { return sistrip::OPTO_SCAN; }
59  else if ( run_type.find( sistrip::vpspScanRun_ ) != std::string::npos ) { return sistrip::VPSP_SCAN; }
60  else if ( run_type.find( sistrip::pedestalsRun_ ) != std::string::npos ) { return sistrip::PEDESTALS; }
61  else if ( run_type.find( sistrip::pedsOnlyRun_ ) != std::string::npos ) { return sistrip::PEDS_ONLY; }
62  else if ( run_type.find( sistrip::pedsFullNoiseRun_ ) != std::string::npos ) { return sistrip::PEDS_FULL_NOISE; } // needs to be before noise, otherwise name mismatch
63  else if ( run_type.find( sistrip::noiseRun_ ) != std::string::npos ) { return sistrip::NOISE; }
64  else if ( run_type.find( sistrip::fineDelayRun_ ) != std::string::npos ) { return sistrip::FINE_DELAY; }
65  else if ( run_type.find( sistrip::calibPeakRun_ ) != std::string::npos ) { return sistrip::CALIBRATION; }
66  else if ( run_type.find( sistrip::calibScanPeakRun_ ) != std::string::npos ) { return sistrip::CALIBRATION_SCAN; }
67  else if ( run_type.find( sistrip::calibDeconRun_ ) != std::string::npos ) { return sistrip::CALIBRATION_DECO; }
68  else if ( run_type.find( sistrip::calibScanDeconRun_ ) != std::string::npos ) { return sistrip::CALIBRATION_SCAN_DECO; }
69  else if ( run_type.find( sistrip::apvLatencyRun_ ) != std::string::npos ) { return sistrip::APV_LATENCY; }
70  else if ( run_type.find( sistrip::daqScopeModeRun_ ) != std::string::npos ) { return sistrip::DAQ_SCOPE_MODE; }
71  else if ( run_type.find( sistrip::physicsRun_ ) != std::string::npos ) { return sistrip::PHYSICS; }
72  else if ( run_type.find( sistrip::undefinedRunType_ ) != std::string::npos ) { return sistrip::UNDEFINED_RUN_TYPE; }
73  else if ( run_type.empty() ) { return sistrip::UNDEFINED_RUN_TYPE; }
74  else if ( run_type == "FAST_CABLING" ) { return sistrip::FAST_CABLING; }
75  else if ( run_type == "FED_CABLING" ) { return sistrip::FED_CABLING; }
76  else if ( run_type == "APV_TIMING" ) { return sistrip::APV_TIMING; }
77  else if ( run_type == "FED_TIMING" ) { return sistrip::FED_TIMING; }
78  else if ( run_type == "OPTO_SCAN" ) { return sistrip::OPTO_SCAN; }
79  else if ( run_type == "VPSP_SCAN" ) { return sistrip::VPSP_SCAN; }
80  else if ( run_type == "PEDESTALS" ) { return sistrip::PEDESTALS; }
81  else if ( run_type == "PEDS_FULL_NOISE" ) { return sistrip::PEDS_FULL_NOISE; }
82  else if ( run_type == "PEDS_ONLY" ) { return sistrip::PEDS_ONLY; }
83  else if ( run_type == "NOISE" ) { return sistrip::NOISE; }
84  else if ( run_type == "APV_LATENCY" ) { return sistrip::APV_LATENCY; }
85  else if ( run_type == "FINE_DELAY" ) { return sistrip::FINE_DELAY; }
86  else if ( run_type == "CALIBRATION" ) { return sistrip::CALIBRATION; }
87  else if ( run_type == "CALIBRATION_SCAN" ) { return sistrip::CALIBRATION_SCAN; }
88  else if ( run_type == "CALIBRATION_DECO" ) { return sistrip::CALIBRATION_DECO; }
89  else if ( run_type == "CALIBRATION_SCAN_DECO" ) { return sistrip::CALIBRATION_SCAN_DECO; }
90  else if ( run_type == "DAQ_SCOPE_MODE" ) { return sistrip::DAQ_SCOPE_MODE; }
91  else if ( run_type == "PHYSICS" ) { return sistrip::PHYSICS; }
92  else if ( run_type == "UNDEFINED" ) { return sistrip::UNDEFINED_RUN_TYPE; }
93  else { return sistrip::UNKNOWN_RUN_TYPE; }
94 }
static const char fastCablingRun_[]
static const char vpspScanRun_[]
static const char calibScanPeakRun_[]
static const char calibScanDeconRun_[]
static const char physicsRun_[]
static const char fineDelayRun_[]
static const char apvTimingRun_[]
static const char pedsOnlyRun_[]
static const char pedestalsRun_[]
static const char noiseRun_[]
static const char pedsFullNoiseRun_[]
static const char undefinedRunType_[]
static const char calibPeakRun_[]
static const char fedTimingRun_[]
static const char optoScanRun_[]
static const char fedCablingRun_[]
static const char calibDeconRun_[]
static const char daqScopeModeRun_[]
static const char apvLatencyRun_[]
sistrip::RunType SiStripEnumsAndStrings::runType ( const uint16_t &  run_type)
static

Definition at line 98 of file SiStripEnumsAndStrings.cc.

References sistrip::APV_LATENCY, sistrip::APV_TIMING, sistrip::CALIBRATION, sistrip::CALIBRATION_DECO, sistrip::CALIBRATION_SCAN, sistrip::CALIBRATION_SCAN_DECO, sistrip::DAQ_SCOPE_MODE, sistrip::FAST_CABLING, sistrip::FED_CABLING, sistrip::FED_TIMING, sistrip::FINE_DELAY, sistrip::FINE_DELAY_PLL, sistrip::FINE_DELAY_TTC, sistrip::invalid_, sistrip::MULTI_MODE, sistrip::NOISE, sistrip::OPTO_SCAN, sistrip::PEDESTALS, sistrip::PEDS_FULL_NOISE, sistrip::PEDS_ONLY, sistrip::PHYSICS, sistrip::PHYSICS_ZS, sistrip::QUITE_FAST_CABLING, sistrip::UNDEFINED_RUN_TYPE, sistrip::UNKNOWN_RUN_TYPE, and sistrip::VPSP_SCAN.

98  {
99  if ( run_type == 1 ) { return sistrip::PHYSICS; }
100  else if ( run_type == 2 ) { return sistrip::PEDESTALS; }
101  else if ( run_type == 3 ) { return sistrip::CALIBRATION; }
102  else if ( run_type == 4 ) { return sistrip::OPTO_SCAN; }
103  else if ( run_type == 5 ) { return sistrip::APV_TIMING; }
104  else if ( run_type == 6 ) { return sistrip::APV_LATENCY; }
105  else if ( run_type == 7 ) { return sistrip::FINE_DELAY_PLL; }
106  else if ( run_type == 8 ) { return sistrip::FINE_DELAY_TTC; }
107  else if ( run_type == 10 ) { return sistrip::MULTI_MODE; }
108  else if ( run_type == 11 ) { return sistrip::FED_CABLING; }
109  else if ( run_type == 12 ) { return sistrip::FED_TIMING; }
110  else if ( run_type == 13 ) { return sistrip::FED_CABLING; }
111  else if ( run_type == 14 ) { return sistrip::VPSP_SCAN; }
112  else if ( run_type == 15 ) { return sistrip::DAQ_SCOPE_MODE; }
113  else if ( run_type == 16 ) { return sistrip::QUITE_FAST_CABLING; }
114  else if ( run_type == 17 ) { return sistrip::FINE_DELAY; } //@@ layer
115  else if ( run_type == 18 ) { return sistrip::PHYSICS_ZS; }
116  else if ( run_type == 19 ) { return sistrip::CALIBRATION_SCAN; }
117  else if ( run_type == 20 ) { return sistrip::CALIBRATION_SCAN_DECO; }
118  else if ( run_type == 21 ) { return sistrip::FAST_CABLING; }
119  else if ( run_type == 22 ) { return sistrip::PEDS_ONLY; }
120  else if ( run_type == 23 ) { return sistrip::NOISE; }
121  else if ( run_type == 24 ) { return sistrip::PEDS_FULL_NOISE; }
122  else if ( run_type == 33 ) { return sistrip::CALIBRATION_DECO; }
123  else if ( run_type == sistrip::invalid_ ) { return sistrip::UNDEFINED_RUN_TYPE; }
124  else { return sistrip::UNKNOWN_RUN_TYPE; }
125 }
static const uint16_t invalid_
Definition: Constants.h:17
std::string SiStripEnumsAndStrings::view ( const sistrip::View view)
static

Definition at line 7 of file SiStripEnumsAndStrings.cc.

References sistrip::CONTROL_VIEW, sistrip::controlView_, sistrip::DETECTOR_VIEW, sistrip::detectorView_, sistrip::READOUT_VIEW, sistrip::readoutView_, sistrip::UNDEFINED_VIEW, sistrip::undefinedView_, and sistrip::unknownView_.

Referenced by SummaryPlot::check(), FedTimingHistograms::createSummaryHisto(), DaqScopeModeHistograms::createSummaryHisto(), FedCablingHistograms::createSummaryHisto(), CommissioningHistograms::createSummaryHisto(), CommissioningHistograms::extractHistograms(), SummaryPlotFactoryBase::init(), SummaryGenerator::instance(), SummaryGenerator::name(), SummaryPlot::print(), and SummaryPlot::SummaryPlot().

7  {
9  else if ( view == sistrip::CONTROL_VIEW ) { return sistrip::controlView_; }
10  else if ( view == sistrip::DETECTOR_VIEW ) { return sistrip::detectorView_; }
11  else if ( view == sistrip::UNDEFINED_VIEW ) { return sistrip::undefinedView_; }
12  else { return sistrip::unknownView_; }
13 }
static const char unknownView_[]
static const char detectorView_[]
static const char undefinedView_[]
static std::string view(const sistrip::View &)
static const char controlView_[]
static const char readoutView_[]
sistrip::View SiStripEnumsAndStrings::view ( const std::string &  directory)
static

Definition at line 17 of file SiStripEnumsAndStrings.cc.

References sistrip::CONTROL_VIEW, sistrip::controlView_, sistrip::DETECTOR_VIEW, sistrip::detectorView_, sistrip::READOUT_VIEW, sistrip::readoutView_, sistrip::UNDEFINED_VIEW, sistrip::undefinedView_, and sistrip::UNKNOWN_VIEW.

17  {
18  if ( dir.find( sistrip::readoutView_ ) != std::string::npos ) { return sistrip::READOUT_VIEW; }
19  else if ( dir.find( sistrip::controlView_ ) != std::string::npos ) { return sistrip::CONTROL_VIEW; }
20  else if ( dir.find( sistrip::detectorView_ ) != std::string::npos ) { return sistrip::DETECTOR_VIEW; }
21  else if ( dir.find( sistrip::undefinedView_ ) != std::string::npos ) { return sistrip::UNDEFINED_VIEW; }
22  else if ( dir.empty() ) { return sistrip::UNDEFINED_VIEW; }
23  else { return sistrip::UNKNOWN_VIEW; }
24 }
static const char detectorView_[]
static const char undefinedView_[]
static const char controlView_[]
dbl *** dir
Definition: mlp_gen.cc:35
static const char readoutView_[]