]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
QA: Fix for 2 last SM, they only consist of 8 rows not 12
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2012 15:11:00 +0000 (15:11 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2012 15:11:00 +0000 (15:11 +0000)
Correlation : Remove print

PWGGA/CaloTrackCorrelations/AliAnaCalorimeterQA.cxx
PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx

index e358079180fd3759041d12f0f075136b84635b8d..9beb98fde6805897ad9bb46a018ce22ccf55ec6e 100755 (executable)
@@ -417,11 +417,17 @@ void AliAnaCalorimeterQA::CellHistograms(AliVCaloCells *cells)
 
         Int_t icols = icol;
         Int_t irows = irow;
-        if(fCalorimeter=="EMCAL"){
+        
+        if(fCalorimeter=="EMCAL")
+        {
           icols = (nModule % 2) ? icol + fNMaxCols : icol;                             
-          irows = irow + fNMaxRows * Int_t(nModule / 2);
+          if(nModule < 10 ) 
+            irows = irow + fNMaxRows       * Int_t(nModule / 2);
+          else // 1/3 SM
+            irows = irow + (fNMaxRows / 3) * Int_t(nModule / 2);
         }
-        else {
+        else 
+        {
           irows = irow + fNMaxRows * nModule;
         }
                 
@@ -2501,7 +2507,8 @@ Float_t AliAnaCalorimeterQA::GetECross(const Int_t absID, AliVCaloCells* cells)
   Int_t icol =-1, irow=-1,iRCU = -1;   
   Int_t imod = GetModuleNumberCellIndexes(absID, fCalorimeter, icol, irow, iRCU);
   
-  if(fCalorimeter=="EMCAL"){
+  if(fCalorimeter=="EMCAL")
+  {
     //Get close cells index, energy and time, not in corners
     Int_t absID1 = GetCaloUtils()->GetEMCALGeometry()-> GetAbsCellIdFromCellIndexes(imod, irow+1, icol);
     Int_t absID2 = GetCaloUtils()->GetEMCALGeometry()-> GetAbsCellIdFromCellIndexes(imod, irow-1, icol);
@@ -2549,7 +2556,8 @@ Float_t AliAnaCalorimeterQA::GetECross(const Int_t absID, AliVCaloCells* cells)
     
     return ecell1+ecell2+ecell3+ecell4;
   }
-  else { //PHOS
+  else //PHOS
+  { 
     
     Int_t absId1 = -1, absId2 = -1, absId3 = -1, absId4 = -1;
     
index 28e9d83f91f9875392ce7fd068747a85014bd089..1e9c24fde4373c2ce21031826d63b7a0c0a55ab5 100755 (executable)
@@ -1126,7 +1126,7 @@ Bool_t  AliAnaParticleHadronCorrelation::MakeChargedCorrelation(AliAODPWG4Partic
         fhDeltaPhiAssocPtBin    [assocBin]->Fill(ptTrig, deltaPhi);
         if(track->GetHMPIDsignal()>0)
         {
-          printf("Track pt %f with HMPID signal %f \n",pt,track->GetHMPIDsignal());
+          //printf("Track pt %f with HMPID signal %f \n",pt,track->GetHMPIDsignal());
           fhDeltaPhiAssocPtBinHMPID[assocBin]->Fill(ptTrig, deltaPhi);        
         }