Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 3042)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 3043)
@@ -4,10 +4,21 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2004/02/06: Thomas Bretz
+
+  * mhist/MHPixVsTime.[h,cc]:
+    - changed such that you can set the name of the time container now 
+
+
+
  2004/02/06: Oscar Blanch
+
   * mmc/MFadcDefine.h && mmc/MMcFadcHeader.cxx
-    _ We cahnged the name (and values) of the global variable
+    - We cahnged the name (and values) of the global variable
        MFADC_RESPONSE_AMPLITUDE to  MFADC_RESPONSE_INTEGRAL
 
+
+
  2004/02/05: Markus Gaug
+
    * mcalib/MHCalibrationPixel.[h,cc]
      - put an NDF limit for the fit
@@ -15,6 +26,5 @@
      - Check for nan's of all returned fit values
 
-   * mcalib/MCalibrationPix.[h,cc]
-   * mcalib/MCalibrationCam.cc
+   * mcalib/MCalibrationPix.[h,cc], mcalib/MCalibrationCam.cc:
      - reshuffled HiLoGainConversion, calculation of F-Factor method, 
      - calculation of total F-Factor of the readout.
@@ -72,4 +82,5 @@
 
 
+
  2004/02/05: Abelardo Moralejo
 
@@ -80,4 +91,6 @@
        we will use it for calibrated real data (to be changed if so).
 
+
+
  2004/02/05: Sebastian Raducci
 
@@ -95,5 +108,6 @@
      - test macro. Shows how to use the MCubicSpline class
      - it could be used to test the methods of the Spline class
-      
+
+
 
  2004/02/05: Thomas Bretz
Index: /trunk/MagicSoft/Mars/mhist/MHPixVsTime.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHPixVsTime.cc	(revision 3042)
+++ /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 3042)
+++ /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="");
