Index: trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc	(revision 1174)
+++ trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc	(revision 1179)
@@ -25,8 +25,16 @@
 /////////////////////////////////////////////////////////////////////////////
 //                                                                         //
-//  MBlindPixelCalc                                                           //
-//                                                                         //
-//  This is the specific image cleaning for a list of pixels.This task     //
-//  remove from the analysis the pixels taht are listed in fPixelsID.      //
+//  MBlindPixelCalc                                                        //
+//                                                                         //
+//  This is the specific image cleaning for a list of pixels. This task    //
+//  sets the pixels listed in fPixelsID to unused so they should not be    //
+//  used for analysis (eg calculation of hillas parameters).               //
+//                                                                         //
+//  If you specify an array of pixel IDs this pixels are disabled.         //
+//  In all other cases the task tries to determin the starfield from the   //
+//  MMcRunHeader and disables pixels correspoding to the starfield.        //
+//                                                                         //
+//  Implemented star fields:                                               //
+//   - Crab: 400, 401, 402, 437, 438, 439                                  //
 //                                                                         //
 //  Input Containers:                                                      //
@@ -34,5 +42,5 @@
 //                                                                         //
 //  Output Containers:                                                     //
-//   MBlindPixels                                                           //
+//   MBlindPixels                                                          //
 //                                                                         //
 /////////////////////////////////////////////////////////////////////////////
@@ -63,7 +71,8 @@
 // --------------------------------------------------------------------------
 //
-//  check if there are blind pixels if not skip this task from task list.
-//  check if MCerPhotEvt exists in the Parameter list if not the analysis
-//  stops.
+//  - Try to find or create MBlindPixels in parameter list.
+//  - get the MCerPhotEvt from the parlist (abort if missing)
+//  - if no pixels are given by the user try to determin the starfield
+//    from the monte carlo run header.
 //
 Bool_t MBlindPixelCalc::PreProcess (MParList *pList)
@@ -97,6 +106,4 @@
     UShort_t numids = fPixelsID.GetSize();
 
-    cout<<"HOLA   "<<numids<<endl;
-
     for(Int_t i = 0; i<numids; i++)
 	fPixels->SetPixelBlind(fPixelsID[i]);
@@ -118,5 +125,5 @@
     // (set them to 'unused' state)
     //
-    for (UShort_t i=0; i<entries; i++ )
+    for (UShort_t i=0; i<entries; i++)
     {
         MCerPhotPix &pix = (*fEvt)[i];
@@ -142,4 +149,11 @@
 }
 
+// --------------------------------------------------------------------------
+//
+//  - Check whether pixels to disable are available. If pixels are
+//    given by the user nothing more is done.
+//  - Otherwise try to determin the blind pixels from the starfield
+//    given in MMcRunHeader.
+//
 Bool_t MBlindPixelCalc::ReInit(MParList *pList)
 {
Index: trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h	(revision 1174)
+++ trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h	(revision 1179)
@@ -19,6 +19,6 @@
     MBlindPixels *fPixels;  //!
 
-    TArrayS fPixelsID;  // Pixel IDs for blind pixels, which
-                        // are entered by the user.
+    TArrayS fPixelsID;  // Pixel IDs for blind pixels, which are entered by the user.
+
 public:
     MBlindPixelCalc(const char *name=NULL, const char *title=NULL);
@@ -30,5 +30,5 @@
     virtual Bool_t ReInit(MParList *pList);
 
-    ClassDef(MBlindPixelCalc, 0)    // task removing from analysis some pixels
+    ClassDef(MBlindPixelCalc, 0) // task to disable given pixels for analysis
 }; 
 
