]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Filling of HighGain flag added
authorprsnko <Dmitri.Peressounko@cern.ch>
Tue, 1 Jul 2014 08:30:58 +0000 (12:30 +0400)
committerprsnko <Dmitri.Peressounko@cern.ch>
Tue, 1 Jul 2014 08:31:57 +0000 (12:31 +0400)
ANALYSIS/TenderSupplies/AliPHOSTenderSupply.cxx
PHOS/AliPHOSReconstructor.cxx

index 7fb9eb6f72f1ab837c33f88d11403cd18a4820f9..e176a957c740a6dc4ac078f3a1190fe1222a88ab 100644 (file)
@@ -861,10 +861,7 @@ Double_t AliPHOSTenderSupply::EvalTOF(AliVCluster * clu,AliVCaloCells * cells){
   Float_t eMax=0. ;
   for(Int_t iDigit=0; iDigit<mulDigit; iDigit++) {
     Int_t absId=clu->GetCellAbsId(iDigit) ;
-    Bool_t isHG=kTRUE ;
-    if(cells->GetCellMCLabel(absId)==-2){ //This is LG digit. 
-      isHG=kFALSE ;   
-    }
+    Bool_t isHG=cells->GetCellHighGain(absId) ;
     if( elist[iDigit]>eMax){
       tMax=CalibrateTOF(cells->GetCellTime(absId),absId,isHG) ;
       eMax=elist[iDigit] ;
@@ -879,10 +876,7 @@ Double_t AliPHOSTenderSupply::EvalTOF(AliVCluster * clu,AliVCaloCells * cells){
   Double_t t = 0. ;
   for(Int_t iDigit=0; iDigit<mulDigit; iDigit++) {
     Int_t absId=clu->GetCellAbsId(iDigit) ;
-    Bool_t isHG=kTRUE ;
-    if(cells->GetCellMCLabel(absId)==-2){ //This is LG digit. 
-      isHG=kFALSE ;
-    }
+    Bool_t isHG=cells->GetCellHighGain(absId) ;
       
     Double_t ti=CalibrateTOF(cells->GetCellTime(absId),absId,isHG) ;
     if(TMath::Abs(ti-tMax)>50.e-9) //remove soft cells with wrong time
index 2ec509d2531ae03aacffa040e75441137a69de85..3dc6b251233cc0b969eeb6ec194d214076d4ce49 100644 (file)
@@ -273,13 +273,10 @@ void AliPHOSReconstructor::FillESD(TTree* digitsTree, TTree* clustersTree,
     if(dig->GetId() <= knEMC && 
        Calibrate(dig->GetEnergy(),dig->GetId()) > GetRecoParam()->GetEMCMinE() ){
       Int_t primary = dig->GetPrimary(1) ;
-      //For real data always primary==-1, we use this field to mark cells with overflow
-      //in HG channel. This is not needed in MC simulations,
-      if(primary==-1 && dig->IsLG())
-       primary=-2 ;
       phsCells.SetCell(idignew,dig->GetId(), Calibrate(dig->GetEnergy(),dig->GetId()),
                                              CalibrateT(dig->GetTime(),dig->GetId(),dig->IsLG()),
-                                             primary) ;
+                                             primary,0.,!dig->IsLG()) ;
+                                            
       idignew++;
     }
   }