Changeset 11781 for fact/BIASctrl


Ignore:
Timestamp:
08/05/11 12:27:35 (13 years ago)
Author:
ogrimm
Message:
Default voltages now given per bias channel
Location:
fact/BIASctrl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/BIASctrl/History.txt

    r11772 r11781  
    151512/7/2011       Default voltages implemented for pixel command.
    16164/8/2011        'pixel' and 'channel' commands accept 'info' parameter.
     175/8/2011        Default voltages now given per bias channel, not per pixel
  • fact/BIASctrl/User.cc

    r11773 r11781  
    273273                // Print pixel information
    274274                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]);
    277277                if (List.empty()) PrintMessage("none");
    278278
     
    296296          // Should the default value be set?
    297297          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];
    300299                else Double = 0;
    301300          }
Note: See TracChangeset for help on using the changeset viewer.