]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removing unuseful print and putting some important one
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Jul 2010 16:19:59 +0000 (16:19 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Jul 2010 16:19:59 +0000 (16:19 +0000)
ZDC/AliZDCDigitizer.cxx
ZDC/AliZDCReconstructor.cxx

index 33c6acb3e5ab53585ae9f4f7b1ea7417bb2ff09d..06014ceb71caaddc8b9d02b749ce5133198ba7a5 100644 (file)
@@ -163,14 +163,18 @@ Bool_t AliZDCDigitizer::Init()
   else if((beamType.CompareTo("A-A")) == 0){
     // PTM gains for Pb-Pb @ 2.7+2.7 A TeV ***************
     // rescaled for Pb-Pb @ 1.38+1.38 A TeV ***************
+    // New correction coefficients for PMT gains needed
+    // to reproduce experimental spectra (from Grazia Jul 2010)
     Float_t scalGainFactor = fBeamEnergy/2760.;
     for(Int_t j = 0; j < 5; j++){
-      fPMGain[0][j] = 50000./scalGainFactor;
-      fPMGain[1][j] = 100000./scalGainFactor;
-      fPMGain[2][j] = 100000./scalGainFactor;
-      fPMGain[3][j] = 50000./scalGainFactor;
-      fPMGain[4][j] = 100000./scalGainFactor;
-      fPMGain[5][j] = 100000./scalGainFactor;
+        fPMGain[0][j] = 1.515831*(661.444/fBeamEnergy+0.000740671)*10000000;
+        fPMGain[1][j] = 0.674234*(864.350/fBeamEnergy+0.00234375)*10000000;
+        fPMGain[2][j] = 0.; 
+        fPMGain[3][j] = 1.350938*(661.444/fBeamEnergy+0.000740671)*10000000; 
+        fPMGain[4][j] = 0.678597*(864.350/fBeamEnergy+0.00234375)*10000000;
+      }
+      fPMGain[2][1] = 0.869654*(1.32312-0.000101515*fBeamEnergy)*10000000;
+      fPMGain[2][2] = 1.030883*(1.32312-0.000101515*fBeamEnergy)*10000000;
     }
     AliInfo(Form("    PMT gains for Pb-Pb @ %1.0f+%1.0f A GeV: ZN(%1.0f), ZP(%1.0f), ZEM(%1.0f)\n",
        fBeamEnergy, fBeamEnergy, fPMGain[0][0], fPMGain[1][0], fPMGain[2][0]));
@@ -295,7 +299,7 @@ void AliZDCDigitizer::Exec(Option_t* /*option*/)
       specPTarg = ((AliGenHijingEventHeader*) genHeader)->TargSpectatorsp();
       printf("\n\t AliZDCDigitizer: b = %1.2f fm\n"
       " \t    PROJ.:  #spectator n %d, #spectator p %d\n"
-      " \t    TARG.:  #spectator n %d, #spectator p %d\n\n", 
+      " \t    TARG.:  #spectator n %d, #spectator p %d\n", 
       impPar, specNProj, specPProj, specNTarg, specPTarg);
     }
     
@@ -308,13 +312,13 @@ void AliZDCDigitizer::Exec(Option_t* /*option*/)
     Int_t freeSpecNTarg, freeSpecPTarg;
     Fragmentation(impPar, specNTarg, specPTarg, freeSpecNTarg, freeSpecPTarg);
     SpectatorSignal(1, freeSpecNProj, pm);
-    //printf("    AliZDCDigitizer -> Signal for %d PROJ free spectator n",freeSpecNProj);
+    printf("\t AliZDCDigitizer -> Adding signal for %d PROJ free spectator n",freeSpecNProj);
     SpectatorSignal(2, freeSpecPProj, pm);
-    //printf(" and %d free spectator p added\n",freeSpecPProj);
+    printf(" and %d free spectator p\n",freeSpecPProj);
     SpectatorSignal(3, freeSpecNTarg, pm);
-    //printf("    AliZDCDigitizer -> Signal for %d TARG free spectator n",freeSpecNTarg);
+    printf("\t AliZDCDigitizer -> Adding signal for %d TARG free spectator n",freeSpecNTarg);
     SpectatorSignal(4, freeSpecPTarg, pm);
-    //printf("and %d free spectator p added\n",freeSpecPTarg);
+    printf(" and %d free spectator p\n\n",freeSpecPTarg);
   }
 
 
index e6c4d683b75e211c206b7730f52b91d5c34c1b73..86b5266ccbd11f595184b1ec26dfffe306a9fd39 100644 (file)
@@ -896,7 +896,7 @@ void AliZDCReconstructor::ReconstructEventPbPb(TTree *clustersTree,
        calibSumZP2[1] += equalTowZP2[gi+5];
   }
   //
-  fEnCalibData->Print("");
+  //fEnCalibData->Print("");
   
   // High gain chain
   calibSumZN1[0] = calibSumZN1[0]*calibEne[0]*8.;