]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix (F. Prino and E. Fragiacomo)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 15:34:23 +0000 (15:34 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 15:34:23 +0000 (15:34 +0000)
ITS/AliITSDDLRawData.cxx
ITS/AliITSsimulationSSD.cxx

index 5ce7908e9dd6e03a82f3546f7cbd185ce8c809b8..83ebe31e315247e11b29c9d1335a9e35daee044b 100644 (file)
@@ -98,7 +98,8 @@ void AliITSDDLRawData::GetDigitsSSD(TClonesArray *ITSdigits,Int_t mod,Int_t modR
       ix=digs->GetCoord2();  // Strip Number
       is=digs->GetCompressedSignal();  // ADC Signal
       // cout<<" Module:"<<mod-500<<" N/P side:"<<iz<<" Strip Number:"<<ix<<" Amplidute:"<<is-1<<endl;
-      if(is<0) is = 4096 + is;
+      if(is<0) is = 0;
+      if(is>4095) is = 4095;
       if (fVerbose==2)
        ftxt<<"DDL:"<<ddl<<" Mod: "<<modR<<" N/P: "<<iz<<" Strip: "<<ix<<" Value: "<<is-1<<endl;
 
@@ -758,3 +759,4 @@ void  AliITSDDLRawData::WriteHit(UInt_t *buf,Int_t RowAddr,Int_t HitAddr,UInt_t
   }//end else
   return;
 }//end WriteHit
+
index 5c332edabfc7f4a39a237a4f58ed250a7f9e7a78..e4293e2ed887065233ca0bf282094f9a4607e0f7 100644 (file)
@@ -678,7 +678,7 @@ void AliITSsimulationSSD::ChargeToSignal(Int_t module,AliITSpList *pList) {
 
        // signal is converted in unit of ADC
        signal = res->GetSSDDEvToADC(signal);
-       if(signal>4096.) signal = 4096.;//if exceeding, accumulate last one
+       if(signal>4095.) signal = 4095.;//if exceeding, accumulate last one
 
        // threshold for zero suppression is set on the basis of the noise
        // A good value is 3*sigma_noise