CMS 3D CMS Logo

SiStripEnumsAndStrings.cc
Go to the documentation of this file.
2 
3 // -----------------------------------------------------------------------------
4 //
6  if ( view == sistrip::READOUT_VIEW ) { return sistrip::readoutView_; }
7  else if ( view == sistrip::CONTROL_VIEW ) { return sistrip::controlView_; }
8  else if ( view == sistrip::DETECTOR_VIEW ) { return sistrip::detectorView_; }
9  else if ( view == sistrip::UNDEFINED_VIEW ) { return sistrip::undefinedView_; }
10  else { return sistrip::unknownView_; }
11 }
12 
13 // -----------------------------------------------------------------------------
14 //
16  if ( dir.find( sistrip::readoutView_ ) != std::string::npos ) { return sistrip::READOUT_VIEW; }
17  else if ( dir.find( sistrip::controlView_ ) != std::string::npos ) { return sistrip::CONTROL_VIEW; }
18  else if ( dir.find( sistrip::detectorView_ ) != std::string::npos ) { return sistrip::DETECTOR_VIEW; }
19  else if ( dir.find( sistrip::undefinedView_ ) != std::string::npos ) { return sistrip::UNDEFINED_VIEW; }
20  else if ( dir.empty() ) { return sistrip::UNDEFINED_VIEW; }
21  else { return sistrip::UNKNOWN_VIEW; }
22 }
23 
24 // -----------------------------------------------------------------------------
25 //
27  if ( run_type == sistrip::FAST_CABLING ) { return sistrip::fastCablingRun_; }
28  else if ( run_type == sistrip::FED_CABLING ) { return sistrip::fedCablingRun_; }
29  else if ( run_type == sistrip::APV_TIMING ) { return sistrip::apvTimingRun_; }
30  else if ( run_type == sistrip::FED_TIMING ) { return sistrip::fedTimingRun_; }
31  else if ( run_type == sistrip::OPTO_SCAN ) { return sistrip::optoScanRun_; }
32  else if ( run_type == sistrip::VPSP_SCAN ) { return sistrip::vpspScanRun_; }
33  else if ( run_type == sistrip::PEDESTALS ) { return sistrip::pedestalsRun_; }
34  else if ( run_type == sistrip::PEDS_ONLY ) { return sistrip::pedsOnlyRun_; }
35  else if ( run_type == sistrip::NOISE ) { return sistrip::noiseRun_; }
36  else if ( run_type == sistrip::PEDS_FULL_NOISE ) { return sistrip::pedsFullNoiseRun_; }
37  else if ( run_type == sistrip::APV_LATENCY ){ return sistrip::apvLatencyRun_; }
38  else if ( run_type == sistrip::FINE_DELAY ){ return sistrip::fineDelayRun_; }
39  else if ( run_type == sistrip::CALIBRATION ){ return sistrip::calibPeakRun_; }
40  else if ( run_type == sistrip::CALIBRATION_DECO ){ return sistrip::calibDeconRun_; }
41  else if ( run_type == sistrip::CALIBRATION_SCAN ){ return sistrip::calibScanPeakRun_; }
42  else if ( run_type == sistrip::CALIBRATION_SCAN_DECO ){ return sistrip::calibScanDeconRun_; }
43  else if ( run_type == sistrip::DAQ_SCOPE_MODE ){ return sistrip::daqScopeModeRun_; }
44  else if ( run_type == sistrip::PHYSICS ){ return sistrip::physicsRun_; }
45  else if ( run_type == sistrip::UNDEFINED_RUN_TYPE ) { return sistrip::undefinedRunType_; }
46  else { return sistrip::unknownRunType_; }
47 }
48 
49 // -----------------------------------------------------------------------------
50 //
52  if ( run_type.find( sistrip::fastCablingRun_ ) != std::string::npos ) { return sistrip::FAST_CABLING; }
53  else if ( run_type.find( sistrip::fedCablingRun_ ) != std::string::npos ) { return sistrip::FED_CABLING; }
54  else if ( run_type.find( sistrip::apvTimingRun_ ) != std::string::npos ) { return sistrip::APV_TIMING; }
55  else if ( run_type.find( sistrip::fedTimingRun_ ) != std::string::npos ) { return sistrip::FED_TIMING; }
56  else if ( run_type.find( sistrip::optoScanRun_ ) != std::string::npos ) { return sistrip::OPTO_SCAN; }
57  else if ( run_type.find( sistrip::vpspScanRun_ ) != std::string::npos ) { return sistrip::VPSP_SCAN; }
58  else if ( run_type.find( sistrip::pedestalsRun_ ) != std::string::npos ) { return sistrip::PEDESTALS; }
59  else if ( run_type.find( sistrip::pedsOnlyRun_ ) != std::string::npos ) { return sistrip::PEDS_ONLY; }
60  else if ( run_type.find( sistrip::pedsFullNoiseRun_ ) != std::string::npos ) { return sistrip::PEDS_FULL_NOISE; } // needs to be before noise, otherwise name mismatch
61  else if ( run_type.find( sistrip::noiseRun_ ) != std::string::npos ) { return sistrip::NOISE; }
62  else if ( run_type.find( sistrip::fineDelayRun_ ) != std::string::npos ) { return sistrip::FINE_DELAY; }
63  else if ( run_type.find( sistrip::calibPeakRun_ ) != std::string::npos ) { return sistrip::CALIBRATION; }
64  else if ( run_type.find( sistrip::calibScanPeakRun_ ) != std::string::npos ) { return sistrip::CALIBRATION_SCAN; }
65  else if ( run_type.find( sistrip::calibDeconRun_ ) != std::string::npos ) { return sistrip::CALIBRATION_DECO; }
66  else if ( run_type.find( sistrip::calibScanDeconRun_ ) != std::string::npos ) { return sistrip::CALIBRATION_SCAN_DECO; }
67  else if ( run_type.find( sistrip::apvLatencyRun_ ) != std::string::npos ) { return sistrip::APV_LATENCY; }
68  else if ( run_type.find( sistrip::daqScopeModeRun_ ) != std::string::npos ) { return sistrip::DAQ_SCOPE_MODE; }
69  else if ( run_type.find( sistrip::physicsRun_ ) != std::string::npos ) { return sistrip::PHYSICS; }
70  else if ( run_type.find( sistrip::undefinedRunType_ ) != std::string::npos ) { return sistrip::UNDEFINED_RUN_TYPE; }
71  else if ( run_type.empty() ) { return sistrip::UNDEFINED_RUN_TYPE; }
72  else if ( run_type == "FAST_CABLING" ) { return sistrip::FAST_CABLING; }
73  else if ( run_type == "FED_CABLING" ) { return sistrip::FED_CABLING; }
74  else if ( run_type == "APV_TIMING" ) { return sistrip::APV_TIMING; }
75  else if ( run_type == "FED_TIMING" ) { return sistrip::FED_TIMING; }
76  else if ( run_type == "OPTO_SCAN" ) { return sistrip::OPTO_SCAN; }
77  else if ( run_type == "VPSP_SCAN" ) { return sistrip::VPSP_SCAN; }
78  else if ( run_type == "PEDESTALS" ) { return sistrip::PEDESTALS; }
79  else if ( run_type == "PEDS_FULL_NOISE" ) { return sistrip::PEDS_FULL_NOISE; }
80  else if ( run_type == "PEDS_ONLY" ) { return sistrip::PEDS_ONLY; }
81  else if ( run_type == "NOISE" ) { return sistrip::NOISE; }
82  else if ( run_type == "APV_LATENCY" ) { return sistrip::APV_LATENCY; }
83  else if ( run_type == "FINE_DELAY" ) { return sistrip::FINE_DELAY; }
84  else if ( run_type == "CALIBRATION" ) { return sistrip::CALIBRATION; }
85  else if ( run_type == "CALIBRATION_SCAN" ) { return sistrip::CALIBRATION_SCAN; }
86  else if ( run_type == "CALIBRATION_DECO" ) { return sistrip::CALIBRATION_DECO; }
87  else if ( run_type == "CALIBRATION_SCAN_DECO" ) { return sistrip::CALIBRATION_SCAN_DECO; }
88  else if ( run_type == "DAQ_SCOPE_MODE" ) { return sistrip::DAQ_SCOPE_MODE; }
89  else if ( run_type == "PHYSICS" ) { return sistrip::PHYSICS; }
90  else if ( run_type == "UNDEFINED" ) { return sistrip::UNDEFINED_RUN_TYPE; }
91  else { return sistrip::UNKNOWN_RUN_TYPE; }
92 }
93 
94 // -----------------------------------------------------------------------------
95 //
97  if ( run_type == 1 ) { return sistrip::PHYSICS; }
98  else if ( run_type == 2 ) { return sistrip::PEDESTALS; }
99  else if ( run_type == 3 ) { return sistrip::CALIBRATION; }
100  else if ( run_type == 4 ) { return sistrip::OPTO_SCAN; }
101  else if ( run_type == 5 ) { return sistrip::APV_TIMING; }
102  else if ( run_type == 6 ) { return sistrip::APV_LATENCY; }
103  else if ( run_type == 7 ) { return sistrip::FINE_DELAY_PLL; }
104  else if ( run_type == 8 ) { return sistrip::FINE_DELAY_TTC; }
105  else if ( run_type == 10 ) { return sistrip::MULTI_MODE; }
106  else if ( run_type == 11 ) { return sistrip::FED_CABLING; }
107  else if ( run_type == 12 ) { return sistrip::FED_TIMING; }
108  else if ( run_type == 13 ) { return sistrip::FED_CABLING; }
109  else if ( run_type == 14 ) { return sistrip::VPSP_SCAN; }
110  else if ( run_type == 15 ) { return sistrip::DAQ_SCOPE_MODE; }
111  else if ( run_type == 16 ) { return sistrip::QUITE_FAST_CABLING; }
112  else if ( run_type == 17 ) { return sistrip::FINE_DELAY; } //@@ layer
113  else if ( run_type == 18 ) { return sistrip::PHYSICS_ZS; }
114  else if ( run_type == 19 ) { return sistrip::CALIBRATION_SCAN; }
115  else if ( run_type == 20 ) { return sistrip::CALIBRATION_SCAN_DECO; }
116  else if ( run_type == 21 ) { return sistrip::FAST_CABLING; }
117  else if ( run_type == 22 ) { return sistrip::PEDS_ONLY; }
118  else if ( run_type == 23 ) { return sistrip::NOISE; }
119  else if ( run_type == 24 ) { return sistrip::PEDS_FULL_NOISE; }
120  else if ( run_type == 33 ) { return sistrip::CALIBRATION_DECO; }
121  else if ( run_type == sistrip::invalid_ ) { return sistrip::UNDEFINED_RUN_TYPE; }
122  else { return sistrip::UNKNOWN_RUN_TYPE; }
123 }
124 
125 // -----------------------------------------------------------------------------
126 //
128  if ( key_type == sistrip::FED_KEY ) { return sistrip::fedKey_; }
129  else if ( key_type == sistrip::FEC_KEY ) { return sistrip::fecKey_; }
130  else if ( key_type == sistrip::DET_KEY ) { return sistrip::detKey_; }
131  else if ( key_type == sistrip::UNDEFINED_KEY ) { return sistrip::undefinedKey_; }
132  else { return sistrip::unknownKey_; }
133 }
134 
135 // -----------------------------------------------------------------------------
136 //
138  if ( key_type.find ( sistrip::fedKey_) != std::string::npos ) { return sistrip::FED_KEY; }
139  else if ( key_type.find( sistrip::fecKey_) != std::string::npos ) { return sistrip::FEC_KEY; }
140  else if ( key_type.find( sistrip::detKey_) != std::string::npos ) { return sistrip::DET_KEY; }
141  else if ( key_type.find( sistrip::undefinedKey_) != std::string::npos ) { return sistrip::UNDEFINED_KEY; }
142  else if ( key_type.empty() ) { return sistrip::UNDEFINED_KEY; }
143  else { return sistrip::UNKNOWN_KEY; }
144 }
145 
146 // -----------------------------------------------------------------------------
147 //
149  // System
150  if ( granularity == sistrip::TRACKER ) { return sistrip::tracker_; }
151  else if ( granularity == sistrip::PARTITION ) { return sistrip::partition_; }
152  else if ( granularity == sistrip::TIB ) { return sistrip::tib_; }
153  else if ( granularity == sistrip::TOB ) { return sistrip::tob_; }
154  else if ( granularity == sistrip::TEC ) { return sistrip::tec_; }
155  // Sub-structure
156  else if ( granularity == sistrip::LAYER ) { return sistrip::layer_; }
157  else if ( granularity == sistrip::ROD ) { return sistrip::rod_; }
158  else if ( granularity == sistrip::STRING ) { return sistrip::string_; }
159  else if ( granularity == sistrip::DISK ) { return sistrip::disk_; }
160  else if ( granularity == sistrip::PETAL ) { return sistrip::petal_; }
161  else if ( granularity == sistrip::RING ) { return sistrip::ring_; }
162  // Module and below
163  else if ( granularity == sistrip::MODULE ) { return sistrip::module_; }
164  else if ( granularity == sistrip::LLD_CHAN ) { return sistrip::lldChan_; }
165  else if ( granularity == sistrip::APV ) { return sistrip::apv_; }
166  // Readout
167  else if ( granularity == sistrip::FED_SYSTEM ) { return sistrip::fedSystem_; }
168  else if ( granularity == sistrip::FE_DRIVER ) { return sistrip::feDriver_; }
169  else if ( granularity == sistrip::FE_UNIT ) { return sistrip::feUnit_; }
170  else if ( granularity == sistrip::FE_CHAN ) { return sistrip::feChan_; }
171  else if ( granularity == sistrip::FED_APV ) { return sistrip::fedApv_; }
172  else if ( granularity == sistrip::FED_CHANNEL ) { return sistrip::fedChannel_; }
173  // Control
174  else if ( granularity == sistrip::FEC_SYSTEM ) { return sistrip::fecSystem_; }
175  else if ( granularity == sistrip::FEC_CRATE ) { return sistrip::fecCrate_; }
176  else if ( granularity == sistrip::FEC_SLOT ) { return sistrip::fecSlot_; }
177  else if ( granularity == sistrip::FEC_RING ) { return sistrip::fecRing_; }
178  else if ( granularity == sistrip::CCU_ADDR ) { return sistrip::ccuAddr_; }
179  else if ( granularity == sistrip::CCU_CHAN ) { return sistrip::ccuChan_; }
180  // Unknown
181  else if ( granularity == sistrip::UNDEFINED_GRAN ) { return sistrip::undefinedGranularity_; }
182  else { return sistrip::unknownGranularity_; }
183 }
184 
185 // -----------------------------------------------------------------------------
186 //
188  // System
189  if ( granularity.find( sistrip::tracker_ ) != std::string::npos ) { return sistrip::TRACKER; }
190  else if ( granularity.find( sistrip::partition_ ) != std::string::npos ) { return sistrip::PARTITION; }
191  else if ( granularity.find( sistrip::tib_ ) != std::string::npos ) { return sistrip::TIB; }
192  else if ( granularity.find( sistrip::tob_ ) != std::string::npos ) { return sistrip::TOB; }
193  else if ( granularity.find( sistrip::tec_ ) != std::string::npos ) { return sistrip::TEC; }
194  // Readout
195  else if ( granularity.find( sistrip::fedSystem_ ) != std::string::npos ) { return sistrip::FED_SYSTEM; }
196  else if ( granularity.find( sistrip::feDriver_ ) != std::string::npos ) { return sistrip::FE_DRIVER; }
197  else if ( granularity.find( sistrip::feUnit_ ) != std::string::npos ) { return sistrip::FE_UNIT; }
198  else if ( granularity.find( sistrip::feChan_ ) != std::string::npos ) { return sistrip::FE_CHAN; }
199  else if ( granularity.find( sistrip::fedApv_ ) != std::string::npos ) { return sistrip::FED_APV; }
200  else if ( granularity.find( sistrip::fedChannel_ ) != std::string::npos ) { return sistrip::FED_CHANNEL; }
201  // Control
202  else if ( granularity.find( sistrip::fecSystem_ ) != std::string::npos ) { return sistrip::FEC_SYSTEM; }
203  else if ( granularity.find( sistrip::fecCrate_ ) != std::string::npos ) { return sistrip::FEC_CRATE; }
204  else if ( granularity.find( sistrip::fecSlot_ ) != std::string::npos ) { return sistrip::FEC_SLOT; }
205  else if ( granularity.find( sistrip::fecRing_ ) != std::string::npos ) { return sistrip::FEC_RING; }
206  else if ( granularity.find( sistrip::ccuAddr_ ) != std::string::npos ) { return sistrip::CCU_ADDR; }
207  else if ( granularity.find( sistrip::ccuChan_ ) != std::string::npos ) { return sistrip::CCU_CHAN; }
208  // Sub-structure
209  else if ( granularity.find( sistrip::layer_ ) != std::string::npos ) { return sistrip::LAYER; }
210  else if ( granularity.find( sistrip::rod_ ) != std::string::npos ) { return sistrip::ROD; }
211  else if ( granularity.find( sistrip::string_ ) != std::string::npos ) { return sistrip::STRING; }
212  else if ( granularity.find( sistrip::disk_ ) != std::string::npos ) { return sistrip::DISK; }
213  else if ( granularity.find( sistrip::petal_ ) != std::string::npos ) { return sistrip::PETAL; }
214  else if ( granularity.find( sistrip::ring_ ) != std::string::npos ) { return sistrip::RING; }
215  // Module and below
216  else if ( granularity.find( sistrip::module_ ) != std::string::npos ) { return sistrip::MODULE; }
217  else if ( granularity.find( sistrip::lldChan_ ) != std::string::npos ) { return sistrip::LLD_CHAN; }
218  else if ( granularity.find( sistrip::apv_ ) != std::string::npos ) { return sistrip::APV; } //@@ bug if before "FedApv"!
219  // Unknown
220  else if ( granularity.find( sistrip::undefinedGranularity_ ) != std::string::npos ) { return sistrip::UNDEFINED_GRAN; }
221  else if ( granularity.empty() ) { return sistrip::UNDEFINED_GRAN; }
222  else { return sistrip::UNKNOWN_GRAN; }
223 }
224 
225 // -----------------------------------------------------------------------------
226 //
228  if ( mode == sistrip::APV_PEAK_MODE ) { return sistrip::apvPeakMode_; }
229  else if ( mode == sistrip::APV_DECON_MODE ) { return sistrip::apvDeconMode_; }
230  else if ( mode == sistrip::APV_MULTI_MODE ) { return sistrip::apvMultiMode_; }
232  else { return sistrip::unknownApvReadoutMode_; }
233 }
234 
235 // -----------------------------------------------------------------------------
236 //
238  if ( mode.find( sistrip::apvPeakMode_ ) != std::string::npos ) { return sistrip::APV_PEAK_MODE; }
239  else if ( mode.find( sistrip::apvDeconMode_ ) != std::string::npos ) { return sistrip::APV_DECON_MODE; }
240  else if ( mode.find( sistrip::apvMultiMode_ ) != std::string::npos ) { return sistrip::APV_MULTI_MODE; }
241  else if ( mode.find( sistrip::undefinedApvReadoutMode_ ) != std::string::npos ) { return sistrip::UNDEFINED_APV_READOUT_MODE; }
242  else if ( mode.empty() ) { return sistrip::UNDEFINED_APV_READOUT_MODE; }
243  else { return sistrip::UNKNOWN_APV_READOUT_MODE; }
244 }
245 
246 // -----------------------------------------------------------------------------
247 //
249  if ( mode == sistrip::FED_SCOPE_MODE ) { return sistrip::fedScopeMode_; }
250  else if ( mode == sistrip::FED_VIRGIN_RAW ) { return sistrip::fedVirginRaw_; }
251  else if ( mode == sistrip::FED_PROC_RAW ) { return sistrip::fedProcRaw_; }
252  else if ( mode == sistrip::FED_ZERO_SUPPR ) { return sistrip::fedZeroSuppr_; }
253  else if ( mode == sistrip::FED_ZERO_SUPPR_LITE ) { return sistrip::fedZeroSupprLite_; }
262  else { return sistrip::unknownFedReadoutMode_; }
263 }
264 
265 // -----------------------------------------------------------------------------
266 //
268  if ( mode.find( sistrip::fedScopeMode_ ) != std::string::npos ) { return sistrip::FED_SCOPE_MODE; }
269  else if ( mode.find( sistrip::fedVirginRaw_ ) != std::string::npos ) { return sistrip::FED_VIRGIN_RAW; }
270  else if ( mode.find( sistrip::fedProcRaw_ ) != std::string::npos ) { return sistrip::FED_PROC_RAW; }
271  else if ( mode.find( sistrip::fedZeroSuppr_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR; }
272  else if ( mode.find( sistrip::fedZeroSupprLite_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE; }
273  else if ( mode.find( sistrip::fedZeroSupprLiteCMO_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE_CMO; }
274  else if ( mode.find( sistrip::fedZeroSupprLite8TT_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE8_TT; }
275  else if ( mode.find( sistrip::fedZeroSupprLite8TTCMO_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE8_TT_CMO; }
276  else if ( mode.find( sistrip::fedZeroSupprLite8TB_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE8_TB; }
277  else if ( mode.find( sistrip::fedZeroSupprLite8TBCMO_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE8_TB_CMO; }
278  else if ( mode.find( sistrip::fedZeroSupprLite8BB_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE8_BB; }
279  else if ( mode.find( sistrip::fedZeroSupprLite8BBCMO_ ) != std::string::npos ) { return sistrip::FED_ZERO_SUPPR_LITE8_BB_CMO; }
280  else if ( mode.find( sistrip::undefinedFedReadoutMode_ ) != std::string::npos ) { return sistrip::UNDEFINED_FED_READOUT_MODE; }
281  else if ( mode.empty() ) { return sistrip::UNDEFINED_FED_READOUT_MODE; }
282  else { return sistrip::UNKNOWN_FED_READOUT_MODE; }
283 }
284 
285 // -----------------------------------------------------------------------------
286 //
288  if ( type == sistrip::EXPERT_HISTO ) { return sistrip::expertHisto_; }
289  else if ( type == sistrip::SUMMARY_HISTO ) { return sistrip::summaryHisto_; }
290  else if ( type == sistrip::UNDEFINED_HISTO_TYPE ) { return sistrip::undefinedHistoType_; }
291  else { return sistrip::unknownHistoType_; }
292 }
293 
294 // -----------------------------------------------------------------------------
295 //
297  if ( type.find( sistrip::expertHisto_ ) != std::string::npos ) { return sistrip::EXPERT_HISTO; }
298  else if ( type.find( sistrip::summaryHisto_ ) != std::string::npos ) { return sistrip::SUMMARY_HISTO; }
299  else if ( type.find( sistrip::undefinedHistoType_ ) != std::string::npos ) { return sistrip::UNDEFINED_HISTO_TYPE; }
300  else if ( type.empty() ) { return sistrip::UNDEFINED_HISTO_TYPE; }
301  else { return sistrip::UNKNOWN_HISTO_TYPE; }
302 }
303 
304 // -----------------------------------------------------------------------------
305 //
307 
308  // fed cabling
309  if ( mon == sistrip::FED_CABLING_FED_ID ) { return sistrip::fedCablingFedId_; }
310  else if ( mon == sistrip::FED_CABLING_FED_CH ) { return sistrip::fedCablingFedCh_; }
311  else if ( mon == sistrip::FED_CABLING_ADC_LEVEL ) { return sistrip::fedCablingAdcLevel_; }
312 
313  // fast fed cabling
314  else if ( mon == sistrip::FAST_CABLING_DCU_ID ) { return sistrip::fastCablingDcuId_; }
315  else if ( mon == sistrip::FAST_CABLING_LLD_CH ) { return sistrip::fastCablingLldCh_; }
317  else if ( mon == sistrip::FAST_CABLING_HIGH_RMS ) { return sistrip::fastCablingHighRms_; }
319  else if ( mon == sistrip::FAST_CABLING_LOW_RMS ) { return sistrip::fastCablingLowRms_; }
320  else if ( mon == sistrip::FAST_CABLING_MAX ) { return sistrip::fastCablingMax_; }
321  else if ( mon == sistrip::FAST_CABLING_MIN ) { return sistrip::fastCablingMin_; }
323 
324  // apv timing
325  else if ( mon == sistrip::APV_TIMING_TIME ) { return sistrip::apvTimingTime_; }
326  else if ( mon == sistrip::APV_TIMING_MAX_TIME ) { return sistrip::apvTimingMax_; }
327  else if ( mon == sistrip::APV_TIMING_DELAY ) { return sistrip::apvTimingDelay_; }
328  else if ( mon == sistrip::APV_TIMING_ERROR ) { return sistrip::apvTimingError_; }
329  else if ( mon == sistrip::APV_TIMING_BASE ) { return sistrip::apvTimingBase_; }
330  else if ( mon == sistrip::APV_TIMING_PEAK ) { return sistrip::apvTimingPeak_; }
331  else if ( mon == sistrip::APV_TIMING_HEIGHT ) { return sistrip::apvTimingHeight_; }
332 
333  // fed timing
334  else if ( mon == sistrip::FED_TIMING_TIME ) { return sistrip::fedTimingTime_; }
335  else if ( mon == sistrip::FED_TIMING_MAX_TIME ) { return sistrip::fedTimingMax_; }
336  else if ( mon == sistrip::FED_TIMING_DELAY ) { return sistrip::fedTimingDelay_; }
337  else if ( mon == sistrip::FED_TIMING_ERROR ) { return sistrip::fedTimingError_; }
338  else if ( mon == sistrip::FED_TIMING_BASE ) { return sistrip::fedTimingBase_; }
339  else if ( mon == sistrip::FED_TIMING_PEAK ) { return sistrip::fedTimingPeak_; }
340  else if ( mon == sistrip::FED_TIMING_HEIGHT ) { return sistrip::fedTimingHeight_; }
341 
342  // opto scan
345  else if ( mon == sistrip::OPTO_SCAN_MEASURED_GAIN ) { return sistrip::optoScanMeasGain_; }
347  else if ( mon == sistrip::OPTO_SCAN_LINK_NOISE ) { return sistrip::optoScanLinkNoise_; }
350  else if ( mon == sistrip::OPTO_SCAN_TICK_HEIGHT ) { return sistrip::optoScanTickHeight_; }
351 
352  // vpsp scan
353  else if ( mon == sistrip::VPSP_SCAN_APV_SETTINGS ) { return sistrip::vpspScanBothApvs_; }
354  else if ( mon == sistrip::VPSP_SCAN_APV0_SETTING ) { return sistrip::vpspScanApv0_; }
355  else if ( mon == sistrip::VPSP_SCAN_APV1_SETTING ) { return sistrip::vpspScanApv1_; }
356  else if ( mon == sistrip::VPSP_SCAN_ADC_LEVEL ) { return sistrip::vpspScanAdcLevel_; }
358  else if ( mon == sistrip::VPSP_SCAN_DIGITAL_LOW ) { return sistrip::vpspScanDigitalLow_; }
359 
360  // pedestals / noise
361  else if ( mon == sistrip::PEDESTALS_ALL_STRIPS ) { return sistrip::pedestalsAllStrips_; }
362  else if ( mon == sistrip::PEDESTALS_MEAN ) { return sistrip::pedestalsMean_; }
363  else if ( mon == sistrip::PEDESTALS_SPREAD ) { return sistrip::pedestalsSpread_; }
364  else if ( mon == sistrip::PEDESTALS_MAX ) { return sistrip::pedestalsMax_; }
365  else if ( mon == sistrip::PEDESTALS_MIN ) { return sistrip::pedestalsMin_; }
366  else if ( mon == sistrip::NOISE_ALL_STRIPS ) { return sistrip::noiseAllStrips_; }
367  else if ( mon == sistrip::NOISE_MEAN ) { return sistrip::noiseMean_; }
368  else if ( mon == sistrip::NOISE_SPREAD ) { return sistrip::noiseSpread_; }
369  else if ( mon == sistrip::NOISE_MAX ) { return sistrip::noiseMax_; }
370  else if ( mon == sistrip::NOISE_MIN ) { return sistrip::noiseMin_; }
371  else if ( mon == sistrip::NUM_OF_DEAD ) { return sistrip::numOfDeadStrips_; }
372  else if ( mon == sistrip::NUM_OF_NOISY ) { return sistrip::numOfNoisy_; }
373  else if ( mon == sistrip::NUM_OF_BAD ) { return sistrip::numOfBadStrips_; }
374  else if ( mon == sistrip::NUM_OF_BAD_SHIFTED ) { return sistrip::numOfBadShiftedStrips_; }
383  else if ( mon == sistrip::NUM_OF_BAD_TAIL ) { return sistrip::numOfBadTailStrips_; }
385 
386  else if ( mon == sistrip::BAD_STRIP_BIT_ALL_STRIPS ) { return sistrip::badStripBit_; }
387  else if ( mon == sistrip::DEAD_STRIP_BIT_ALL_STRIPS ) { return sistrip::deadStripBit_; }
388  else if ( mon == sistrip::AD_PROBAB_ALL_STRIPS ) { return sistrip::adProbabAllStrips_; }
389  else if ( mon == sistrip::KS_PROBAB_ALL_STRIPS ) { return sistrip::ksProbabAllStrips_; }
390  else if ( mon == sistrip::JB_PROBAB_ALL_STRIPS ) { return sistrip::jbProbabAllStrips_; }
400 
401  // fine delay
402  else if ( mon == sistrip::FINE_DELAY_POS) { return sistrip::fineDelayPos_; }
403  else if ( mon == sistrip::FINE_DELAY_ERROR) { return sistrip::fineDelayErr_; }
404 
405  // calibration
407  else if ( mon == sistrip::CALIBRATION_TAIL) { return sistrip::calibrationTail_; }
410  else if ( mon == sistrip::CALIBRATION_TURNON) { return sistrip::calibrationTurnOn_; }
411  else if ( mon == sistrip::CALIBRATION_MAXIMUM) { return sistrip::calibrationMaximum_; }
415  else if ( mon == sistrip::CALIBRATION_CHI2) { return sistrip::calibrationChi2_; }
427  else if ( mon == sistrip::CALIBRATION_TAIL_MIN) { return sistrip::calibrationTailMin_; }
435  else if ( mon == sistrip::CALIBRATION_CHI2_MIN) { return sistrip::calibrationChi2Min_; }
437  else if ( mon == sistrip::CALIBRATION_TAIL_MAX) { return sistrip::calibrationTailMax_; }
445  else if ( mon == sistrip::CALIBRATION_CHI2_MAX) { return sistrip::calibrationChi2Max_; }
446 
447  // scope mode
449 
450  // unknown
452  else { return sistrip::unknownMonitorable_; }
453 
454 }
455 
456 // -----------------------------------------------------------------------------
457 //
459 
460  // fed cabling
461  if ( mon.find( sistrip::fedCablingFedId_ ) != std::string::npos ) { return sistrip::FED_CABLING_FED_ID; }
462  else if ( mon.find( sistrip::fedCablingFedCh_ ) != std::string::npos ) { return sistrip::FED_CABLING_FED_CH; }
463  else if ( mon.find( sistrip::fedCablingAdcLevel_ ) != std::string::npos ) { return sistrip::FED_CABLING_ADC_LEVEL; }
464 
465  // fed cabling
466  else if ( mon.find( sistrip::fastCablingDcuId_ ) != std::string::npos ) { return sistrip::FAST_CABLING_DCU_ID; }
467  else if ( mon.find( sistrip::fastCablingLldCh_ ) != std::string::npos ) { return sistrip::FAST_CABLING_LLD_CH; }
468  else if ( mon.find( sistrip::fastCablingHighLevel_ ) != std::string::npos ) { return sistrip::FAST_CABLING_HIGH_LEVEL; }
469  else if ( mon.find( sistrip::fastCablingHighRms_ ) != std::string::npos ) { return sistrip::FAST_CABLING_HIGH_RMS; }
470  else if ( mon.find( sistrip::fastCablingLowLevel_ ) != std::string::npos ) { return sistrip::FAST_CABLING_LOW_LEVEL; }
471  else if ( mon.find( sistrip::fastCablingLowRms_ ) != std::string::npos ) { return sistrip::FAST_CABLING_LOW_RMS; }
472  else if ( mon.find( sistrip::fastCablingMax_ ) != std::string::npos ) { return sistrip::FAST_CABLING_MAX; }
473  else if ( mon.find( sistrip::fastCablingMin_ ) != std::string::npos ) { return sistrip::FAST_CABLING_MIN; }
474  else if ( mon.find( sistrip::fastCablingConnsPerFed_ ) != std::string::npos ) { return sistrip::FAST_CABLING_CONNS_PER_FED; }
475 
476  // apv timing
477  else if ( mon.find( sistrip::apvTimingTime_ ) != std::string::npos ) { return sistrip::APV_TIMING_TIME; }
478  else if ( mon.find( sistrip::apvTimingMax_ ) != std::string::npos ) { return sistrip::APV_TIMING_MAX_TIME; }
479  else if ( mon.find( sistrip::apvTimingDelay_ ) != std::string::npos ) { return sistrip::APV_TIMING_DELAY; }
480  else if ( mon.find( sistrip::apvTimingError_ ) != std::string::npos ) { return sistrip::APV_TIMING_ERROR; }
481  else if ( mon.find( sistrip::apvTimingBase_ ) != std::string::npos ) { return sistrip::APV_TIMING_BASE; }
482  else if ( mon.find( sistrip::apvTimingPeak_ ) != std::string::npos ) { return sistrip::APV_TIMING_PEAK; }
483  else if ( mon.find( sistrip::apvTimingHeight_ ) != std::string::npos ) { return sistrip::APV_TIMING_HEIGHT; }
484 
485  // fed timing
486  else if ( mon.find( sistrip::fedTimingTime_ ) != std::string::npos ) { return sistrip::FED_TIMING_TIME; }
487  else if ( mon.find( sistrip::fedTimingMax_ ) != std::string::npos ) { return sistrip::FED_TIMING_MAX_TIME; }
488  else if ( mon.find( sistrip::fedTimingDelay_ ) != std::string::npos ) { return sistrip::FED_TIMING_DELAY; }
489  else if ( mon.find( sistrip::fedTimingError_ ) != std::string::npos ) { return sistrip::FED_TIMING_ERROR; }
490  else if ( mon.find( sistrip::fedTimingBase_ ) != std::string::npos ) { return sistrip::FED_TIMING_BASE; }
491  else if ( mon.find( sistrip::fedTimingPeak_ ) != std::string::npos ) { return sistrip::FED_TIMING_PEAK; }
492  else if ( mon.find( sistrip::fedTimingHeight_ ) != std::string::npos ) { return sistrip::FED_TIMING_HEIGHT; }
493 
494  // opto scan
495  else if ( mon.find( sistrip::optoScanLldGain_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LLD_GAIN_SETTING; }
496  else if ( mon.find( sistrip::optoScanLldBias_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LLD_BIAS_SETTING; }
497  else if ( mon.find( sistrip::optoScanMeasGain_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_MEASURED_GAIN; }
498  else if ( mon.find( sistrip::optoScanZeroLight_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_ZERO_LIGHT_LEVEL; }
499  else if ( mon.find( sistrip::optoScanLinkNoise_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LINK_NOISE; }
500  else if ( mon.find( sistrip::optoScanBaseLiftOff_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_BASELINE_LIFT_OFF; }
501  else if ( mon.find( sistrip::optoScanLaserThresh_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_LASER_THRESHOLD; }
502  else if ( mon.find( sistrip::optoScanTickHeight_ ) != std::string::npos ) { return sistrip::OPTO_SCAN_TICK_HEIGHT; }
503 
504  // vpsp scan
505  else if ( mon.find( sistrip::vpspScanBothApvs_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_APV_SETTINGS; }
506  else if ( mon.find( sistrip::vpspScanApv0_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_APV0_SETTING; }
507  else if ( mon.find( sistrip::vpspScanApv1_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_APV1_SETTING; }
508  else if ( mon.find( sistrip::vpspScanAdcLevel_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_ADC_LEVEL; }
509  else if ( mon.find( sistrip::vpspScanDigitalHigh_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_DIGITAL_HIGH; }
510  else if ( mon.find( sistrip::vpspScanDigitalLow_ ) != std::string::npos ) { return sistrip::VPSP_SCAN_DIGITAL_LOW; }
511 
512  // pedestals / noise
513  else if ( mon.find( sistrip::pedestalsAllStrips_ ) != std::string::npos ) { return sistrip::PEDESTALS_ALL_STRIPS; }
514  else if ( mon.find( sistrip::pedestalsMean_ ) != std::string::npos ) { return sistrip::PEDESTALS_MEAN; }
515  else if ( mon.find( sistrip::pedestalsSpread_ ) != std::string::npos ) { return sistrip::PEDESTALS_SPREAD; }
516  else if ( mon.find( sistrip::pedestalsMax_ ) != std::string::npos ) { return sistrip::PEDESTALS_MAX; }
517  else if ( mon.find( sistrip::pedestalsMin_ ) != std::string::npos ) { return sistrip::PEDESTALS_MIN; }
518 
519  // noiseKS must come before the more general noiseAllStrips, since it contains that string
520  else if ( mon.find( sistrip::noiseAllStrips_ ) != std::string::npos ) { return sistrip::NOISE_ALL_STRIPS; }
521  else if ( mon.find( sistrip::noiseMean_ ) != std::string::npos ) { return sistrip::NOISE_MEAN; }
522  else if ( mon.find( sistrip::noiseSpread_ ) != std::string::npos ) { return sistrip::NOISE_SPREAD; }
523  else if ( mon.find( sistrip::noiseMax_ ) != std::string::npos ) { return sistrip::NOISE_MAX; }
524  else if ( mon.find( sistrip::noiseMin_ ) != std::string::npos ) { return sistrip::NOISE_MIN; }
525  else if ( mon.find( sistrip::numOfDeadStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_DEAD; }
526  else if ( mon.find( sistrip::numOfNoisy_ ) != std::string::npos ) { return sistrip::NUM_OF_NOISY; }
527  else if ( mon.find( sistrip::numOfBadStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD; }
528  else if ( mon.find( sistrip::numOfBadShiftedStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_SHIFTED; }
529  else if ( mon.find( sistrip::numOfBadLowNoiseStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_LOW_NOISE; }
530  else if ( mon.find( sistrip::numOfBadLargeNoiseStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_LARGE_NOISE; }
531  else if ( mon.find( sistrip::numOfBadLargeNoiseSignificanceStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_LARGE_SIGNIF; }
532  else if ( mon.find( sistrip::numOfBadFitStatusStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_FIT_STATUS; }
533  else if ( mon.find( sistrip::numOfBadADProbabStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_AD_PROBAB; }
534  else if ( mon.find( sistrip::numOfBadKSProbabStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_KS_PROBAB; }
535  else if ( mon.find( sistrip::numOfBadJBProbabStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_JB_PROBAB; }
536  else if ( mon.find( sistrip::numOfBadChi2ProbabStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_CHI2_PROBAB; }
537  else if ( mon.find( sistrip::numOfBadTailStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_TAIL; }
538  else if ( mon.find( sistrip::numOfBadDoublePeakStrips_ ) != std::string::npos ) { return sistrip::NUM_OF_BAD_DOUBLE_PEAK; }
539 
540  else if ( mon.find( sistrip::badStripBit_ ) != std::string::npos ) { return sistrip::BAD_STRIP_BIT_ALL_STRIPS; }
541  else if ( mon.find( sistrip::deadStripBit_ ) != std::string::npos ) { return sistrip::DEAD_STRIP_BIT_ALL_STRIPS; }
542  else if ( mon.find( sistrip::adProbabAllStrips_ ) != std::string::npos ) { return sistrip::AD_PROBAB_ALL_STRIPS; }
543  else if ( mon.find( sistrip::ksProbabAllStrips_ ) != std::string::npos ) { return sistrip::KS_PROBAB_ALL_STRIPS; }
544  else if ( mon.find( sistrip::jbProbabAllStrips_ ) != std::string::npos ) { return sistrip::JB_PROBAB_ALL_STRIPS; }
545  else if ( mon.find( sistrip::chi2ProbabAllStrips_ ) != std::string::npos ) { return sistrip::CHI2_PROBAB_ALL_STRIPS; }
546  else if ( mon.find( sistrip::residualRMSAllStrips_ ) != std::string::npos ) { return sistrip::RESIDUAL_RMS_ALL_STRIPS; }
547  else if ( mon.find( sistrip::residualSigmaGausAllStrips_ ) != std::string::npos ) { return sistrip::RESIDUAL_GAUS_ALL_STRIPS; }
548  else if ( mon.find( sistrip::noiseSignificanceAllStrips_ ) != std::string::npos ) { return sistrip::NOISE_SIGNIFICANCE_ALL_STRIPS; }
549  else if ( mon.find( sistrip::residualMeanAllStrips_ ) != std::string::npos ) { return sistrip::RESIDUAL_MEAN_ALL_STRIPS; }
550  else if ( mon.find( sistrip::residualSkewnessAllStrips_ ) != std::string::npos ) { return sistrip::RESIDUAL_SKEWNESS_ALL_STRIPS; }
551  else if ( mon.find( sistrip::residualKurtosisAllStrips_ ) != std::string::npos ) { return sistrip::RESIDUAL_KURTOSIS_ALL_STRIPS; }
552  else if ( mon.find( sistrip::residualIntegralNsigmaAllStrips_ ) != std::string::npos ) { return sistrip::RESIDUAL_INTEGRALNSIGMA_ALL_STRIPS; }
553  else if ( mon.find( sistrip::residualIntegralAllStrips_ ) != std::string::npos ) { return sistrip::RESIDUAL_INTEGRAL_ALL_STRIPS; }
554 
555  // fine delay
556  else if ( mon.find( sistrip::fineDelayPos_ ) != std::string::npos ) { return sistrip::FINE_DELAY_POS; }
557  else if ( mon.find( sistrip::fineDelayErr_ ) != std::string::npos ) { return sistrip::FINE_DELAY_ERROR; }
558 
559  // calibration
560  else if ( mon.find( sistrip::calibrationAmplitudeAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE_ALLSTRIPS; }
561  else if ( mon.find( sistrip::calibrationTailAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL_ALLSTRIPS; }
562  else if ( mon.find( sistrip::calibrationRiseTimeAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME_ALLSTRIPS; }
563  else if ( mon.find( sistrip::calibrationTimeConstantAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT_ALLSTRIPS; }
564  else if ( mon.find( sistrip::calibrationTurnOnAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_TURNON_ALLSTRIPS; }
565  else if ( mon.find( sistrip::calibrationMaximumAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_MAXIMUM_ALLSTRIPS; }
566  else if ( mon.find( sistrip::calibrationUndershootAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_UNDERSHOOT_ALLSTRIPS; }
567  else if ( mon.find( sistrip::calibrationBaselineAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_BASELINE_ALLSTRIPS; }
568  else if ( mon.find( sistrip::calibrationSmearingAS_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING_ALLSTRIPS; }
569  else if ( mon.find( sistrip::calibrationChi2AS_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2_ALLSTRIPS; }
570  else if ( mon.find( sistrip::calibrationAmplitudeMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE_MIN; }
571  else if ( mon.find( sistrip::calibrationTailMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL_MIN; }
572  else if ( mon.find( sistrip::calibrationRiseTimeMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME_MIN; }
573  else if ( mon.find( sistrip::calibrationTimeConstantMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT_MIN; }
574  else if ( mon.find( sistrip::calibrationTurnOnMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_TURNON_MIN; }
575  else if ( mon.find( sistrip::calibrationMaximumMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_MAXIMUM_MIN; }
576  else if ( mon.find( sistrip::calibrationUndershootMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_UNDERSHOOT_MIN; }
577  else if ( mon.find( sistrip::calibrationBaselineMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_BASELINE_MIN; }
578  else if ( mon.find( sistrip::calibrationSmearingMin_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING_MIN; }
579  else if ( mon.find( sistrip::calibrationChi2Min_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2_MIN; }
580  else if ( mon.find( sistrip::calibrationAmplitudeMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE_MAX; }
581  else if ( mon.find( sistrip::calibrationTailMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL_MAX; }
582  else if ( mon.find( sistrip::calibrationRiseTimeMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME_MAX; }
583  else if ( mon.find( sistrip::calibrationTimeConstantMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT_MAX; }
584  else if ( mon.find( sistrip::calibrationTurnOnMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_TURNON_MAX; }
585  else if ( mon.find( sistrip::calibrationMaximumMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_MAXIMUM_MAX; }
586  else if ( mon.find( sistrip::calibrationUndershootMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_UNDERSHOOT_MAX; }
587  else if ( mon.find( sistrip::calibrationBaselineMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_BASELINE_MAX; }
588  else if ( mon.find( sistrip::calibrationSmearingMax_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING_MAX; }
589  else if ( mon.find( sistrip::calibrationChi2Max_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2_MAX; }
590  else if ( mon.find( sistrip::calibrationAmplitude_ ) != std::string::npos ) { return sistrip::CALIBRATION_AMPLITUDE; }
591  else if ( mon.find( sistrip::calibrationTail_ ) != std::string::npos ) { return sistrip::CALIBRATION_TAIL; }
592  else if ( mon.find( sistrip::calibrationRiseTime_ ) != std::string::npos ) { return sistrip::CALIBRATION_RISETIME; }
593  else if ( mon.find( sistrip::calibrationTimeConstant_ ) != std::string::npos ) { return sistrip::CALIBRATION_TIMECONSTANT; }
594  else if ( mon.find( sistrip::calibrationTurnOn_ ) != std::string::npos ) { return sistrip::CALIBRATION_TURNON; }
595  else if ( mon.find( sistrip::calibrationMaximum_ ) != std::string::npos ) { return sistrip::CALIBRATION_MAXIMUM; }
596  else if ( mon.find( sistrip::calibrationUndershoot_ ) != std::string::npos ) { return sistrip::CALIBRATION_UNDERSHOOT; }
597  else if ( mon.find( sistrip::calibrationBaseline_ ) != std::string::npos ) { return sistrip::CALIBRATION_BASELINE; }
598  else if ( mon.find( sistrip::calibrationSmearing_ ) != std::string::npos ) { return sistrip::CALIBRATION_SMEARING; }
599  else if ( mon.find( sistrip::calibrationChi2_ ) != std::string::npos ) { return sistrip::CALIBRATION_CHI2; }
600 
601  // scope mode
602  else if ( mon.find( sistrip::daqScopeModeMeanSignal_ ) != std::string::npos ) { return sistrip::DAQ_SCOPE_MODE_MEAN_SIGNAL; }
603 
604  // unknown
605  else if ( mon.find( sistrip::undefinedMonitorable_ ) != std::string::npos ) { return sistrip::UNDEFINED_MONITORABLE; }
606  else if ( mon.empty() ) { return sistrip::UNDEFINED_MONITORABLE; }
607  else { return sistrip::UNKNOWN_MONITORABLE; }
608 
609 }
610 
611 // -----------------------------------------------------------------------------
612 //
614  if ( type == sistrip::HISTO_1D ) { return sistrip::histo1d_; }
615  else if ( type == sistrip::HISTO_2D_SUM ) { return sistrip::histo2dSum_; }
616  else if ( type == sistrip::HISTO_2D_SCATTER ) { return sistrip::histo2dScatter_; }
617  else if ( type == sistrip::PROFILE_1D ) { return sistrip::profile1D_; }
619  else { return sistrip::unknownPresentation_; }
620 }
621 
622 // -----------------------------------------------------------------------------
623 //
625  if ( type.find( sistrip::histo1d_ ) != std::string::npos ) { return sistrip::HISTO_1D; }
626  else if ( type.find( sistrip::histo2dSum_ ) != std::string::npos ) { return sistrip::HISTO_2D_SUM; }
627  else if ( type.find( sistrip::histo2dScatter_ ) != std::string::npos ) { return sistrip::HISTO_2D_SCATTER; }
628  else if ( type.find( sistrip::profile1D_ ) != std::string::npos ) { return sistrip::PROFILE_1D; }
629  else if ( type.find( sistrip::undefinedPresentation_ ) != std::string::npos ) { return sistrip::UNDEFINED_PRESENTATION; }
630  else if ( type.empty() ) { return sistrip::UNDEFINED_PRESENTATION; }
631  else { return sistrip::UNKNOWN_PRESENTATION; }
632 }
633 
634 // -----------------------------------------------------------------------------
635 //
637  if ( source == sistrip::CABLING_FROM_CONNS ) { return sistrip::cablingFromConns_; }
638  else if ( source == sistrip::CABLING_FROM_DEVICES ) { return sistrip::cablingFromDevices_; }
639  else if ( source == sistrip::CABLING_FROM_DETIDS ) { return sistrip::cablingFromDetIds_; }
641  else { return sistrip::unknownCablingSource_; }
642 }
643 
644 // -----------------------------------------------------------------------------
645 //
647  if ( source.find( sistrip::cablingFromConns_ ) != std::string::npos ) { return sistrip::CABLING_FROM_CONNS; }
648  else if ( source.find( sistrip::cablingFromDevices_ ) != std::string::npos ) { return sistrip::CABLING_FROM_DEVICES; }
649  else if ( source.find( sistrip::cablingFromDetIds_ ) != std::string::npos ) { return sistrip::CABLING_FROM_DETIDS; }
650  else if ( source.find( sistrip::undefinedCablingSource_ ) != std::string::npos ) { return sistrip::UNDEFINED_CABLING_SOURCE; }
651  else if ( source.empty() ) { return sistrip::UNDEFINED_CABLING_SOURCE; }
652  else if ( source == "CONNECTIONS" ) { return sistrip::CABLING_FROM_CONNS; }
653  else if ( source == "DEVICES" ) { return sistrip::CABLING_FROM_DEVICES; }
654  else if ( source == "DETIDS" ) { return sistrip::CABLING_FROM_DETIDS; }
655  else if ( source == "UNDEFINED" ) { return sistrip::UNDEFINED_CABLING_SOURCE; }
656  else { return sistrip::UNKNOWN_CABLING_SOURCE; }
657 }
658 
static const char unknownView_[]
static const char module_[]
type
Definition: HCALResponse.h:21
static const char optoScanLinkNoise_[]
static const char calibrationAmplitude_[]
static const char fastCablingDcuId_[]
static const char feDriver_[]
static std::string monitorable(const sistrip::Monitorable &)
static const char fastCablingRun_[]
static const char optoScanLldGain_[]
static const char calibrationMaximumAS_[]
static const char calibrationAmplitudeAS_[]
static const char layer_[]
static const char tec_[]
static const char calibrationTimeConstantMax_[]
static const char undefinedKey_[]
static const char vpspScanRun_[]
static const char apvDeconMode_[]
static const char tracker_[]
static const char residualKurtosisAllStrips_[]
static const char summaryHisto_[]
static const char calibrationRiseTimeMax_[]
static const char numOfBadFitStatusStrips_[]
static const char fedTimingError_[]
static const char calibScanPeakRun_[]
static const char tob_[]
static const char unknownCablingSource_[]
static const char noiseMean_[]
static const char residualIntegralNsigmaAllStrips_[]
static const char unknownKey_[]
static const char fastCablingMin_[]
static const char calibScanDeconRun_[]
static const char unknownHistoType_[]
static const char calibrationTimeConstantMin_[]
static const char fedCablingAdcLevel_[]
static const char calibrationAmplitudeMax_[]
static const char unknownPresentation_[]
static const char residualSkewnessAllStrips_[]
static const char apvTimingHeight_[]
static const char histo2dScatter_[]
static const char profile1D_[]
static const char physicsRun_[]
static const char apvTimingMax_[]
static const char numOfBadJBProbabStrips_[]
static const char numOfBadLargeNoiseStrips_[]
static const char optoScanTickHeight_[]
static const char fedKey_[]
static const char calibrationUndershootMin_[]
static std::string granularity(const sistrip::Granularity &)
static const char fineDelayPos_[]
static const char calibrationBaselineMax_[]
static const char chi2ProbabAllStrips_[]
static const char noiseMax_[]
static const char calibrationSmearingAS_[]
static const char numOfBadChi2ProbabStrips_[]
static const char rod_[]
static const char noiseMin_[]
static const char fedZeroSupprLite8BB_[]
static const char fedZeroSupprLite_[]
static const char calibrationTimeConstantAS_[]
static const char calibrationTurnOnMax_[]
static const char optoScanMeasGain_[]
static const char calibrationTurnOn_[]
static const char fineDelayRun_[]
static const char pedestalsMean_[]
static const char detectorView_[]
static const char calibrationBaselineMin_[]
static const char fedTimingHeight_[]
static const char string_[]
static const char histo2dSum_[]
static const char numOfBadLargeNoiseSignificanceStrips_[]
static const char fecSlot_[]
static const char undefinedView_[]
static const char ccuChan_[]
static const char ccuAddr_[]
static const char apvTimingRun_[]
static const char calibrationBaselineAS_[]
static const char fedCablingFedId_[]
static const char fedCablingFedCh_[]
static const char calibrationMaximumMin_[]
static std::string view(const sistrip::View &)
static std::string runType(const sistrip::RunType &)
static const char optoScanLldBias_[]
static const char pedsOnlyRun_[]
static const char lldChan_[]
static const char undefinedGranularity_[]
static const char calibrationAmplitudeMin_[]
static std::string apvReadoutMode(const sistrip::ApvReadoutMode &)
static const char apvTimingDelay_[]
static const char pedestalsRun_[]
static const char calibrationSmearing_[]
static const char undefinedCablingSource_[]
static const char noiseRun_[]
static const char partition_[]
static const char numOfBadTailStrips_[]
static const char numOfNoisy_[]
static const char calibrationTurnOnAS_[]
static const char calibrationTailMin_[]
static const char vpspScanDigitalHigh_[]
static const char fedApv_[]
static const char pedsFullNoiseRun_[]
static const char expertHisto_[]
static const char undefinedMonitorable_[]
static const char undefinedPresentation_[]
static const char controlView_[]
static const char fastCablingLowRms_[]
static const char optoScanBaseLiftOff_[]
static const char fedProcRaw_[]
static const char calibrationTailMax_[]
static const char fastCablingLldCh_[]
static const char optoScanZeroLight_[]
static const char vpspScanDigitalLow_[]
static const char unknownGranularity_[]
static const char ring_[]
static std::string histoType(const sistrip::HistoType &)
static const char calibrationTimeConstant_[]
static const char calibrationUndershootAS_[]
static const char undefinedRunType_[]
static const char calibrationTailAS_[]
static const char fedVirginRaw_[]
static const char fecCrate_[]
static const char calibrationMaximumMax_[]
static const char cablingFromDevices_[]
static const char calibPeakRun_[]
static const char unknownMonitorable_[]
static const char fedChannel_[]
static const char fedTimingRun_[]
static const char noiseSpread_[]
static const char adProbabAllStrips_[]
static const char fecKey_[]
static const char unknownFedReadoutMode_[]
static const char calibrationBaseline_[]
static const char residualMeanAllStrips_[]
static const char unknownRunType_[]
static const char numOfBadShiftedStrips_[]
static const char fastCablingMax_[]
static const char fedScopeMode_[]
static const char pedestalsMin_[]
static const char fedZeroSupprLite8TB_[]
static const char jbProbabAllStrips_[]
static const char calibrationUndershootMax_[]
static const char apv_[]
static const char calibrationMaximum_[]
static const char fineDelayErr_[]
static const char optoScanRun_[]
static const char residualSigmaGausAllStrips_[]
static const char residualIntegralAllStrips_[]
static const char undefinedFedReadoutMode_[]
static const char fastCablingLowLevel_[]
static const char fedCablingRun_[]
static const char calibrationRiseTime_[]
static const char apvTimingError_[]
static const char fedTimingPeak_[]
static const char fastCablingConnsPerFed_[]
static const char calibrationRiseTimeMin_[]
static const char tib_[]
static const char calibDeconRun_[]
static const char feChan_[]
static const char daqScopeModeRun_[]
static const char fedTimingMax_[]
static const char fedZeroSupprLiteCMO_[]
static const char fedSystem_[]
static std::string presentation(const sistrip::Presentation &)
static const char deadStripBit_[]
static const char apvPeakMode_[]
static const char calibrationTurnOnMin_[]
static const char fecRing_[]
static const char calibrationChi2_[]
static std::string keyType(const sistrip::KeyType &)
static const uint16_t invalid_
Definition: Constants.h:16
static const char calibrationSmearingMin_[]
static const char apvTimingBase_[]
static const char fedTimingBase_[]
static const char noiseSignificanceAllStrips_[]
static const char residualRMSAllStrips_[]
static const char optoScanLaserThresh_[]
static const char ksProbabAllStrips_[]
static const char numOfBadADProbabStrips_[]
static const char vpspScanAdcLevel_[]
static const char fedZeroSupprLite8BBCMO_[]
static const char cablingFromConns_[]
static const char cablingFromDetIds_[]
static const char detKey_[]
static const char apvTimingTime_[]
static const char fedTimingDelay_[]
static const char undefinedApvReadoutMode_[]
static const char histo1d_[]
static std::string cablingSource(const sistrip::CablingSource &)
static const char numOfBadDoublePeakStrips_[]
static const char daqScopeModeMeanSignal_[]
static const char calibrationSmearingMax_[]
static const char calibrationTail_[]
static const char fedZeroSupprLite8TTCMO_[]
static const char noiseAllStrips_[]
static const char fedTimingTime_[]
static const char feUnit_[]
static const char calibrationChi2Min_[]
static const char calibrationChi2Max_[]
static const char badStripBit_[]
static const char numOfBadLowNoiseStrips_[]
static const char pedestalsMax_[]
static const char fastCablingHighLevel_[]
static const char fecSystem_[]
static const char vpspScanApv1_[]
dbl *** dir
Definition: mlp_gen.cc:35
static const char calibrationRiseTimeAS_[]
static const char calibrationChi2AS_[]
static const char apvTimingPeak_[]
static const char calibrationUndershoot_[]
static const char vpspScanApv0_[]
static const char numOfBadKSProbabStrips_[]
static const char numOfDeadStrips_[]
static const char readoutView_[]
static std::string const source
Definition: EdmProvDump.cc:43
static const char fedZeroSupprLite8TT_[]
static const char disk_[]
static const char apvLatencyRun_[]
static const char pedestalsSpread_[]
static const char fedZeroSupprLite8TBCMO_[]
static const char undefinedHistoType_[]
static const char vpspScanBothApvs_[]
static const char unknownApvReadoutMode_[]
static const char fedZeroSuppr_[]
static const char apvMultiMode_[]
static const char fastCablingHighRms_[]
static const char numOfBadStrips_[]
static std::string fedReadoutMode(const sistrip::FedReadoutMode &)
static const char petal_[]
static const char pedestalsAllStrips_[]