Ignore:
Timestamp:
09/25/04 12:09:09 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc

    r5056 r5128  
    200200//
    201201// Reads the pattern from MRawEvtHeader and initializes new containers in the
    202 // Intensity Cams, if the pattern has changed
     202// Intensity Cams, if the pattern has changed. Executes CallPostProcess of the
     203// MCalibration*Calc classes in that case.
    203204//
    204205Int_t MCalibColorSteer::Process()
     
    242243  return kTRUE;
    243244}
     245
    244246
    245247// --------------------------------------------------------------------------
     
    359361    number[MCalibrationCam::kCT1]   += 1;
    360362
    361   TString result = "";
     363  TString result;
    362364 
    363365  for (Int_t i=0; i<MCalibrationCam::gkNumPulserColors; i++)
     
    367369        case MCalibrationCam::kGREEN:
    368370          if (number[i] > 0.1)
    369             {
    370               result += number[i];
    371               result += "GREEN";
    372             }
     371            result = Form("%2.1f%s",number[i],"GREEN");
    373372          break;
    374373        case MCalibrationCam::kBLUE:
    375374          if (number[i] > 0.1)
    376             {
    377               result += number[i];
    378               result += "BLUE";
    379             }
     375            result = Form("%2.1f%s",number[i],"BLUE");
    380376          break;
    381377        case MCalibrationCam::kUV:
    382378          if (number[i] > 0.1)
    383             {
    384               result += number[i];
    385               result += "UV";
    386             }
     379            result = Form("%2.1f%s",number[i],"UV");
    387380          break;
    388381        case MCalibrationCam::kCT1:
    389382          if (number[i] > 0.1)
    390             result += "CT1";
     383            result = Form("%2.1f%s",number[i],"CT1");
    391384          break;
    392385        }
  • trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.cc

    r5043 r5128  
    6161
    6262  InitSize(nblind);
     63
    6364}
    6465
    6566void MCalibrationBlindCam::Add(const UInt_t a, const UInt_t b)
    6667{
     68
    6769  for (UInt_t i=a; i<b; i++)
    6870    fPixels->AddAt(new MCalibrationBlindPix,i);
     71
    6972}
    7073
     
    184187
    185188
     189// --------------------------------------------------------------------------
     190//
     191// Set color to this class and to the MCalibrationBlindPix's
     192//
     193void  MCalibrationBlindCam::SetPulserColor ( const MCalibrationCam::PulserColor_t col )
     194{
     195
     196  fPulserColor = col;
     197  fPixels->ForEach(MCalibrationBlindPix, SetColor)(col);
     198
     199}
  • trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.h

    r5045 r5128  
    2626  Float_t GetFluxInsidePlexiglassVar () const;
    2727  Float_t GetFluxInsidePlexiglassRelVar() const;
     28
     29  void  SetPulserColor( const MCalibrationCam::PulserColor_t col );
    2830 
    2931  ClassDef(MCalibrationBlindCam, 2) // Container Blind Pixels Calibration Results Camera
  • trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCamTwoNewStyle.h

    r4986 r5128  
    1919
    2020  MCalibrationBlindCamTwoNewStyle(const char *name=NULL);
    21  
     21
    2222  ClassDef(MCalibrationBlindCamTwoNewStyle, 1) // Container Blind Pixel Calibration Results - after run 31693
    2323};
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h

    r5043 r5128  
    4444  PulserColor_t fPulserColor;        // Colour of the pulsed LEDs
    4545
    46   TOrdCollection *fPixels;            // Array of MCalibrationPix, one per pixel
     46  TOrdCollection *fPixels;            //-> Array of MCalibrationPix, one per pixel
    4747  TOrdCollection *fAverageAreas;      // Array of MCalibrationPix, one per pixel area
    4848  TOrdCollection *fAverageSectors;    // Array of MCalibrationPix, one per camera sector
     
    9999  void  SetNumUnsuitable       ( const UInt_t i,  const Int_t aidx   ); 
    100100  void  SetNumUnreliable       ( const UInt_t i,  const Int_t aidx   );
    101   void  SetPulserColor         ( const PulserColor_t col=kCT1 )  { fPulserColor = col; }
     101  virtual void  SetPulserColor( const PulserColor_t col=kCT1 )  { fPulserColor = col; }
    102102 
    103103  ClassDef(MCalibrationCam, 5)  // Base class Container for Calibration Results Camera
Note: See TracChangeset for help on using the changeset viewer.