equalizing time delays on TimeMeaner
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Nov 2007 09:01:54 +0000 (09:01 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Nov 2007 09:01:54 +0000 (09:01 +0000)
T0/AliT0Digitizer.cxx
T0/AliT0Parameters.h

index a5604ac..ebbc491 100644 (file)
@@ -268,6 +268,7 @@ void AliT0Digitizer::Exec(Option_t* /*option*/)
     }
 
     timeDelayCFD[0] = fParam->GetTimeDelayCFD(0);
+    Int_t meanTimeDelay=200;
 
     for (Int_t i=0; i<24; i++)
       {
@@ -321,9 +322,7 @@ void AliT0Digitizer::Exec(Option_t* /*option*/)
       {
        timeDiff=Int_t (((besttimeC-besttimeA)+1000*delayVertex)
                        /channelWidth);
-       meanTime=Int_t (((besttimeC+timeDelayCFD[pmtBestC]+
-                         besttimeA+timeDelayCFD[pmtBestA])/2.)
-                       /channelWidth);
+       meanTime=Int_t (((besttimeC+besttimeA)/2. + meanTimeDelay)/channelWidth);
       }
        AliDebug(10,Form(" time A& C %i %i  time diff && mean time in channels %i %i",bestATDC,bestCTDC, timeDiff, meanTime));
 
index 6c6adec..21cff17 100644 (file)
@@ -36,7 +36,7 @@ public:
   // Set various `Fixed' parameters 
   void SetPh2Mip(Int_t r=300)          { fPh2Mip = r; }
   void SetmV2Mip(Int_t r=50)          { fmV2Mip = r; }
-  void SetChannelWidth(Int_t s=25)   { fChannelWidth = s;}
+  void SetChannelWidth(Int_t s=24.4)   { fChannelWidth = s;}
   void SetmV2channel(Int_t size=320) { fmV2Channel = size; }
   void SetQTmin(Int_t qt=13) {fQTmin = qt;}
   void SetQTmax(Int_t qt=125) {fQTmax = qt;}