Changeset 11781 for fact/BIASctrl/User.cc
- Timestamp:
- 08/05/11 12:27:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/BIASctrl/User.cc
r11773 r11781 273 273 // Print pixel information 274 274 vector<unsigned int> List = PixMap->HV_to_Pixel(Crate, Channel/NUM_CHANNELS, Channel%NUM_CHANNELS); 275 PrintMessage("\n Pixel IDs (default voltage): ");276 for (unsigned int j=0; j<List.size(); j++) PrintMessage("%u (%.2f) ", List[j], List[j]<DefaultVoltage.size() ? DefaultVoltage[List[j]] : 0);275 PrintMessage("\n Default voltage: %.2f Pixel IDs: ", Channel < DefaultVoltage.size() ? DefaultVoltage[Channel] : 0); 276 for (unsigned int j=0; j<List.size(); j++) PrintMessage("%u ", List[j]); 277 277 if (List.empty()) PrintMessage("none"); 278 278 … … 296 296 // Should the default value be set? 297 297 if (Match(Parameter[n+1], "default")) { 298 vector<unsigned int> List = PixMap->HV_to_Pixel(Crate, Channel/NUM_CHANNELS, Channel%NUM_CHANNELS); 299 if (!List.empty() && List[0]<DefaultVoltage.size()) Double = DefaultVoltage[List[0]]; 298 if (Channel < DefaultVoltage.size()) Double = DefaultVoltage[Channel]; 300 299 else Double = 0; 301 300 }
Note:
See TracChangeset
for help on using the changeset viewer.