Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 5127)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 5128)
@@ -19,4 +19,12 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/09/23: Markus Gaug
+ 
+   * mcalib/MCalibrationBlindCam.[h,cc]
+     - added function SetPulserColor which was only available in 
+       MCalibrationBlindPix. 
+
+
+
  2004/09/23: Abelardo Moralejo
    * mtemp/mpadova/macros/area.C, RanForestPD.C, gammarate.C
Index: /trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc	(revision 5127)
+++ /trunk/MagicSoft/Mars/mcalib/MCalibColorSteer.cc	(revision 5128)
@@ -200,5 +200,6 @@
 //
 // Reads the pattern from MRawEvtHeader and initializes new containers in the 
-// Intensity Cams, if the pattern has changed
+// Intensity Cams, if the pattern has changed. Executes CallPostProcess of the 
+// MCalibration*Calc classes in that case.
 //
 Int_t MCalibColorSteer::Process()
@@ -242,4 +243,5 @@
   return kTRUE;
 }
+
 
 // --------------------------------------------------------------------------
@@ -359,5 +361,5 @@
     number[MCalibrationCam::kCT1]   += 1;
 
-  TString result = "";
+  TString result;
   
   for (Int_t i=0; i<MCalibrationCam::gkNumPulserColors; i++)
@@ -367,26 +369,17 @@
         case MCalibrationCam::kGREEN:
           if (number[i] > 0.1)
-            {
-              result += number[i];
-              result += "GREEN";
-            }
+            result = Form("%2.1f%s",number[i],"GREEN");
           break;
         case MCalibrationCam::kBLUE:
           if (number[i] > 0.1)
-            {
-              result += number[i];
-              result += "BLUE";
-            }
+            result = Form("%2.1f%s",number[i],"BLUE");
           break;
         case MCalibrationCam::kUV:
           if (number[i] > 0.1)
-            {
-              result += number[i];
-              result += "UV";
-            }
+            result = Form("%2.1f%s",number[i],"UV");
           break;
         case MCalibrationCam::kCT1:
           if (number[i] > 0.1)
-            result += "CT1";
+            result = Form("%2.1f%s",number[i],"CT1");
           break;
         }
Index: /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.cc
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.cc	(revision 5127)
+++ /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.cc	(revision 5128)
@@ -61,10 +61,13 @@
 
   InitSize(nblind);
+
 }
 
 void MCalibrationBlindCam::Add(const UInt_t a, const UInt_t b)
 {
+
   for (UInt_t i=a; i<b; i++)
     fPixels->AddAt(new MCalibrationBlindPix,i);
+
 }
 
@@ -184,2 +187,13 @@
 
 
+// --------------------------------------------------------------------------
+//
+// Set color to this class and to the MCalibrationBlindPix's
+//
+void  MCalibrationBlindCam::SetPulserColor ( const MCalibrationCam::PulserColor_t col )
+{
+
+  fPulserColor = col;
+  fPixels->ForEach(MCalibrationBlindPix, SetColor)(col);
+
+}
Index: /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.h
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.h	(revision 5127)
+++ /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCam.h	(revision 5128)
@@ -26,4 +26,6 @@
   Float_t GetFluxInsidePlexiglassVar () const;
   Float_t GetFluxInsidePlexiglassRelVar() const;
+
+  void  SetPulserColor( const MCalibrationCam::PulserColor_t col );
   
   ClassDef(MCalibrationBlindCam, 2) // Container Blind Pixels Calibration Results Camera
Index: /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCamTwoNewStyle.h
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCamTwoNewStyle.h	(revision 5127)
+++ /trunk/MagicSoft/Mars/mcalib/MCalibrationBlindCamTwoNewStyle.h	(revision 5128)
@@ -19,5 +19,5 @@
 
   MCalibrationBlindCamTwoNewStyle(const char *name=NULL);
-  
+
   ClassDef(MCalibrationBlindCamTwoNewStyle, 1) // Container Blind Pixel Calibration Results - after run 31693
 };
Index: /trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
===================================================================
--- /trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h	(revision 5127)
+++ /trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h	(revision 5128)
@@ -44,5 +44,5 @@
   PulserColor_t fPulserColor;        // Colour of the pulsed LEDs
 
-  TOrdCollection *fPixels;            // Array of MCalibrationPix, one per pixel
+  TOrdCollection *fPixels;            //-> Array of MCalibrationPix, one per pixel
   TOrdCollection *fAverageAreas;      // Array of MCalibrationPix, one per pixel area
   TOrdCollection *fAverageSectors;    // Array of MCalibrationPix, one per camera sector
@@ -99,5 +99,5 @@
   void  SetNumUnsuitable       ( const UInt_t i,  const Int_t aidx   );  
   void  SetNumUnreliable       ( const UInt_t i,  const Int_t aidx   ); 
-  void  SetPulserColor         ( const PulserColor_t col=kCT1 )  { fPulserColor = col; }
+  virtual void  SetPulserColor( const PulserColor_t col=kCT1 )  { fPulserColor = col; }
   
   ClassDef(MCalibrationCam, 5)	// Base class Container for Calibration Results Camera
