Index: trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc	(revision 855)
+++ trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc	(revision 859)
@@ -28,4 +28,10 @@
 //  MMcThresholdCalc                                                       //
 //                                                                         //
+//  Input Containers:                                                      //
+//   MMcEvt                                                                //
+//                                                                         //
+//  Output Containers:                                                     //
+//   MMcTrig;*, MHMcEnergy;*                                               //
+//                                                                         //
 /////////////////////////////////////////////////////////////////////////////
 
@@ -52,6 +58,6 @@
     *fTitle = title ? title : "Task to calculate the energy threshold from Monte Carlo";
 
-    fMcTrig     = new (MMcTrig*)[fDimension];
-    fHMcEnergy  = new (MHMcEnergy*)[fDimension];
+    fMcTrig     = new MMcTrig*[fDimension];
+    fHMcEnergy  = new MHMcEnergy*[fDimension];
     fMustDelete = new Bool_t[fDimension];
 
@@ -75,6 +81,4 @@
     // connect Monte Carlo data with this task
 
-    char auxname[15]="MMcTrig"; // string to write container names
-
     fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt");
     if (!fMcEvt)
@@ -83,4 +87,6 @@
         return kFALSE;
     }
+
+    char auxname[15]="MMcTrig"; // string to write container names
 
     for (unsigned int i=0; i<fDimension; i++)
Index: trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h
===================================================================
--- trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h	(revision 855)
+++ trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h	(revision 859)
@@ -23,9 +23,9 @@
     UInt_t fDimension;
 
-    MMcEvt      *fMcEvt;       // Container with Monte Carlo information
-    MMcTrig    **fMcTrig;      // Container with Monte Carlo trigger information
-    MHMcEnergy **fHMcEnergy;   // Container where we save the energy (threshold)
+    const MMcEvt  *fMcEvt;       // Container with Monte Carlo information
+    MMcTrig      **fMcTrig;      // Container with Monte Carlo trigger information
+    MHMcEnergy   **fHMcEnergy;   // Container where we save the energy (threshold)
 
-    Bool_t      *fMustDelete;  // delete indicator for selfcreated energy hists
+    Bool_t        *fMustDelete;  // delete indicator for selfcreated energy hists
 
 public:
