Previous commit for RO cycle sync/randomization was incomplete.
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Apr 2013 14:42:45 +0000 (14:42 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Apr 2013 14:42:45 +0000 (14:42 +0000)
ITS/UPGRADE/AliITSU.cxx
ITS/UPGRADE/AliITSUSimulation.h

index 34876d6..7eadca1 100644 (file)
@@ -519,7 +519,7 @@ void AliITSU::Hits2SDigits(Int_t evNumber,Int_t bgrev,Option_t *option,const cha
     //
     if (prevLr!=lr) { // new layer started)
       roPhase = fSimuParam->GetLrROCycleShift(lr);
-      if (Abs(roPhase)<1.) roPhase = roPhase*sim->GenerateReadOutCycleOffset(); // modules synchronized within layer with this offset
+      if (Abs(roPhase)<1.) roPhase = roPhase*sim->GetReadOutCycleLength(); // modules synchronized within layer with this offset
       else                randomyzeModules = kTRUE;                     // modules have random offset
     }
     if (randomyzeModules) sim->GenerateReadOutCycleOffset();
index af063b7..aad2adf 100644 (file)
@@ -90,6 +90,9 @@ class AliITSUSimulation : public TObject
   Double_t GetReadOutCycleOffset()              const      {return fReadOutCycleOffset;}
   void     SetReadOutCycleOffset(Double_t v=0)             {fReadOutCycleOffset = v;}
   //
+  Double_t GetReadOutCycleLength()              const      {return fReadOutCycleLength;}
+  void     SetReadOutCycleLength(Double_t v=25e-6)         {fReadOutCycleLength = v;}
+  //
   static  Int_t GenOrderedSample(UInt_t nmax,UInt_t ngen,TArrayI &vals,TArrayI &ind);
   //
   static  Double_t GausInt1D(Double_t sig,Double_t a,Double_t b);