calculate properly the xE for the underlying event in neutral hadron correlations
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Wed, 13 Aug 2014 08:25:34 +0000 (10:25 +0200)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Wed, 13 Aug 2014 14:36:56 +0000 (16:36 +0200)
PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx
PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.h

index 93bfbcb..fa47362 100755 (executable)
@@ -844,14 +844,19 @@ void AliAnaParticleHadronCorrelation::FillNeutralAngularCorrelationHistograms(Fl
 
 //_____________________________________________________________________________________________________________________________
 void AliAnaParticleHadronCorrelation::FillNeutralUnderlyingEventSidesHistograms(Float_t ptTrig,   Float_t ptAssoc, 
-                                                                                Float_t xE,       Float_t hbpXE, 
-                                                                                Float_t zT,       Float_t hbpZT, 
+                                                                                Float_t zT,       Float_t hbpZT,
                                                                                 Float_t deltaPhi)
 {
   // Fill underlying event histograms to the left and right of trigger
   
+  Double_t randomphi = gRandom->Uniform(fDeltaPhiMinCut,fDeltaPhiMaxCut);
+
+  Float_t xE  =-ptAssoc/ptTrig*TMath::Cos(randomphi); // -(px*pxTrig+py*pyTrig)/(ptTrig*ptTrig);
+  Float_t hbpXE = -100;
+  if(xE > 0 ) hbpXE = TMath::Log(1./xE);
+  
   if((deltaPhi<-fUeDeltaPhiMinCut) && (deltaPhi >-fUeDeltaPhiMaxCut))
-  {  
+  {
     fhDeltaPhiUeLeftNeutral->Fill(ptAssoc, deltaPhi);
     fhXEUeLeftNeutral      ->Fill(ptTrig , xE);
     fhPtHbpXEUeLeftNeutral ->Fill(ptTrig , hbpXE);
@@ -3741,7 +3746,7 @@ void AliAnaParticleHadronCorrelation::MakeNeutralCorrelation(AliAODPWG4ParticleC
 
     // Several UE calculation, not sure it is useful
     // with partical calorimter acceptance
-    if(fMakeSeveralUE) FillNeutralUnderlyingEventSidesHistograms(ptTrig,pt,xE,hbpXE,zT,hbpZT,deltaPhi);
+    if(fMakeSeveralUE) FillNeutralUnderlyingEventSidesHistograms(ptTrig,pt,zT,hbpZT,deltaPhi);
     
     //
     // Decay photon correlations
index 3dfade1..816af7a 100755 (executable)
@@ -93,7 +93,6 @@ class AliAnaParticleHadronCorrelation : public AliAnaCaloTrackCorrBaseClass {
   
   
   void         FillNeutralUnderlyingEventSidesHistograms(Float_t ptTrig,   Float_t ptAssoc, 
-                                                         Float_t xE,       Float_t hbpXE, 
                                                          Float_t zT,       Float_t hbpZT, 
                                                          Float_t deltaPhi);