]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSClusterFinderV2SDD.cxx
- cleaning up the programs folder and removing old deprecated files
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinderV2SDD.cxx
index 29eeb00a76c744645cf0abe85619ef24d8a3a3a9..63618bba0a21b16f0fa41afb747b578dea2e743c 100644 (file)
@@ -250,7 +250,8 @@ FindClustersSDD(AliBin* bins[2], Int_t nMaxBin, Int_t nzBins,
        y=trk[1];
        z=trk[2]; 
 
-       q/=rsdd->GetADC2keV();  //to have MPV 1 MIP = 86.4 KeV
+       q/=rsdd->GetADC2keV();
+       q+=(driftTime*rsdd->GetChargevsTime()); // correction for zero supp.
        if(cal-> IsAMAt20MHz()) q*=2.; // account for 1/2 sampling freq.
        if(q<repa->GetMinClusterChargeSDD()) continue; // remove noise clusters
 
@@ -286,13 +287,9 @@ void AliITSClusterFinderV2SDD::RawdataToClusters(AliRawReader* rawReader,TClones
     //------------------------------------------------------------
   // This function creates ITS clusters from raw data
   //------------------------------------------------------------
-  rawReader->Reset();
-  AliITSRawStream* inputSDD;
-  if(fDetTypeRec->IsHLTmodeC()==kTRUE){
-    inputSDD=new AliITSRawStreamSDDCompressed(rawReader);
-  }else{
-    inputSDD=new AliITSRawStreamSDD(rawReader);
-  }
+
+  AliITSRawStream* inputSDD=AliITSRawStreamSDD::CreateRawStreamSDD(rawReader);
+  AliDebug(1,Form("%s is used",inputSDD->ClassName()));
 
   AliITSDDLModuleMapSDD *ddlmap=(AliITSDDLModuleMapSDD*)fDetTypeRec->GetDDLModuleMapSDD();
   inputSDD->SetDDLModuleMap(ddlmap);