Changeset 11781 for fact/BIASctrl
- Timestamp:
- 08/05/11 12:27:35 (13 years ago)
- Location:
- fact/BIASctrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/BIASctrl/History.txt
r11772 r11781 15 15 12/7/2011 Default voltages implemented for pixel command. 16 16 4/8/2011 'pixel' and 'channel' commands accept 'info' parameter. 17 5/8/2011 Default voltages now given per bias channel, not per pixel -
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.