Index: trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc	(revision 866)
+++ trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc	(revision 867)
@@ -36,10 +36,13 @@
 #include "MHMcCollectionArea.h"
 
-ClassImp(MMcCollectionAreaCalc)
+ClassImp(MMcCollectionAreaCalc);
 
-MMcCollectionAreaCalc::MMcCollectionAreaCalc (const char *name, const char *title)
+MMcCollectionAreaCalc::MMcCollectionAreaCalc(const char *input,
+                                             const char *name, const char *title)
 {
     *fName  = name  ? name  : "MMcCollectionAreaCalc";
-    *fTitle = title ? title : "Task to calc the collection area ";
+    *fTitle = title ? title : "Task to calculate the collection area";
+
+    fObjName = input ? input : "MMcTrig";
 } 
 
@@ -55,8 +58,8 @@
     }
 
-    fMcTrig = (MMcTrig*)pList->FindObject("MMcTrig");
+    fMcTrig = (MMcTrig*)pList->FindObject(fObjName);
     if (!fMcTrig)
     {
-        *fLog << dbginf << "MMcTrig not found... exit." << endl;
+        *fLog << dbginf << fObjName << " not found... exit." << endl;
         return kFALSE;
     }
@@ -84,5 +87,5 @@
 }
 
-Bool_t MMcCollectionAreaCalc::PostProcess () 
+Bool_t MMcCollectionAreaCalc::PostProcess()
 { 
     //
Index: trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h
===================================================================
--- trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h	(revision 866)
+++ trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h	(revision 867)
@@ -19,10 +19,13 @@
     MHMcCollectionArea *fCollArea;
 
+    TString fObjName;
+
 public:
-    MMcCollectionAreaCalc(const char *name=NULL, const char *title=NULL);
+    MMcCollectionAreaCalc(const char *input=NULL,
+                          const char *name=NULL, const char *title=NULL);
 
     Bool_t PreProcess(MParList *pList);
-    Bool_t Process() ;
-    Bool_t PostProcess() ;
+    Bool_t Process();
+    Bool_t PostProcess();
 
     ClassDef(MMcCollectionAreaCalc, 0) // Task to calculate the collection area histogram
Index: trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc	(revision 866)
+++ trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc	(revision 867)
@@ -110,5 +110,5 @@
     {
         if (fDimension>1)
-            sprintf(auxname+7, ";%i.", i+1);
+            sprintf(auxname+7, ";%i", i+1);
 
         fMcTrig[i] = (MMcTrig*)pList->FindObject(auxname);
Index: trunk/MagicSoft/Mars/mmontecarlo/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mmontecarlo/Makefile	(revision 866)
+++ trunk/MagicSoft/Mars/mmontecarlo/Makefile	(revision 867)
@@ -33,5 +33,5 @@
 SRCS    = $(SRCFILES)
 HEADERS = $(SRCFILES:.cc=.h)
-OBJS    = $(SRCFILES:.cc=.o) 
+OBJS    = $(SRCFILES:.cc=.o)
 
 ############################################################
