Bug fix (wrong reading of HPTDC manual).
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Jun 2011 19:26:24 +0000 (19:26 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Jun 2011 19:26:24 +0000 (19:26 +0000)
VZERO/AliVZEROConst.h
VZERO/AliVZERODigitizer.cxx
VZERO/AliVZEROReconstructor.cxx

index 20a2170..7eb898c 100644 (file)
@@ -5,7 +5,7 @@
 
 const Float_t kIntTimeRes = 0.39; // intrinsic time resolution of the scintillator
 const Float_t kV0CDelayCables = 8.1; // delay cables on the C side (in ns)
-const Float_t kV0Offset = 14461.4; // general V0 offset between the TDCs and the trigger
+const Float_t kV0Offset = -1338.6; // general V0 offset between the TDCs and the trigger
 const Float_t kClockOffset = 62.0; // Sampling clock offset (in ns)
 const Int_t   kNClocks = 21; // Number of ADC clocks that are read out
 const Float_t kChargePerADC = 0.6e-12; // Charge per ADC
index 0d101ce..7afd883 100644 (file)
@@ -198,8 +198,8 @@ Bool_t AliVZERODigitizer::Init()
     fNBinsLT[i] = TMath::Nint(((Float_t)(fCalibData->GetMatchWindow(board)+1)*25.0)/
                              fCalibData->GetTimeResolution(board));
     fBinSize[i] = fCalibData->GetTimeResolution(board);
-    fHptdcOffset[i] = (((Float_t)fCalibData->GetTriggerCountOffset(board)-
-                       (Float_t)fCalibData->GetRollOver(board))*25.0+
+    fHptdcOffset[i] = (((Float_t)fCalibData->GetRollOver(board)-
+                       (Float_t)fCalibData->GetTriggerCountOffset(board))*25.0+
                       fCalibData->GetTimeOffset(i)-
                       l1Delay-
                       phase->GetMeanPhase()+
index b57f314..a78de02 100644 (file)
@@ -87,8 +87,8 @@ AliVZEROReconstructor:: AliVZEROReconstructor(): AliReconstructor(),
 
   for(Int_t i = 0 ; i < 64; ++i) {
     Int_t board = AliVZEROCalibData::GetBoardNumber(i);
-    fTimeOffset[i] = (((Float_t)fCalibData->GetTriggerCountOffset(board)-
-                       (Float_t)fCalibData->GetRollOver(board))*25.0+
+    fTimeOffset[i] = (((Float_t)fCalibData->GetRollOver(board)-
+                      (Float_t)fCalibData->GetTriggerCountOffset(board))*25.0+
                       fCalibData->GetTimeOffset(i)-
                       l1Delay-
                       phase->GetMeanPhase()+