Index: trunk/MagicSoft/Mars/mhist/MHPixVsTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHPixVsTime.cc	(revision 2979)
+++ trunk/MagicSoft/Mars/mhist/MHPixVsTime.cc	(revision 3043)
@@ -66,6 +66,5 @@
     TString t("Pixel Index #");
     t += idx;
-    t += " vs ";
-    t += fUseEventTime ? "Time" : "Event Number";
+    t += " vs Time";
 
     fGraph.SetName("MCamEvent");
@@ -108,10 +107,10 @@
     }
 
-    if (fUseEventTime)
-    {
-        fTime = (MTime*)plist->FindObject("MTime");
+    if (!fNameTime.IsNull())
+    {
+        fTime = (MTime*)plist->FindObject(fNameTime, "MTime");
         if (!fTime)
         {
-            *fLog << err << "MTime not found... abort." << endl;
+            *fLog << err << fNameTime << " [MTime] not found... abort." << endl;
             return kFALSE;
         }
@@ -149,5 +148,5 @@
 
     Double_t t = 0;
-    if (fUseEventTime)
+    if (!fNameTime.IsNull())
         t = fTime->GetAxisTime();
     else
Index: trunk/MagicSoft/Mars/mhist/MHPixVsTime.h
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHPixVsTime.h	(revision 2979)
+++ trunk/MagicSoft/Mars/mhist/MHPixVsTime.h	(revision 3043)
@@ -30,9 +30,8 @@
 
     TString fNameEvt;
+    TString fNameTime;
 
     Int_t fType;
     Int_t fTypeErr;
-
-    Bool_t fUseEventTime;
 
     Bool_t SetupFill(const MParList *pList);
@@ -45,10 +44,9 @@
 
     void SetNameEvt(const TString name) { fNameEvt = name; }
+    void SetNameTime(const TString name) { fNameTime = name; }
     void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
 
     TH1 *GetHistByName(const TString name="");
     TGraph &GetGraph() { return fGraph; }
-
-    void SetUseEventTime(Bool_t use = kTRUE) { fUseEventTime = use; }
 
     void Draw(Option_t *o="");
