]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add few control histograms - Adam Matyja
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Wed, 19 Nov 2014 18:14:53 +0000 (19:14 +0100)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Wed, 19 Nov 2014 18:15:34 +0000 (19:15 +0100)
PWGGA/CaloTrackCorrelations/AliAnaParticleJetFinderCorrelation.cxx
PWGGA/CaloTrackCorrelations/AliAnaParticleJetFinderCorrelation.h

index a6a609662fc51712ac26c6dcbb1f9d4e378a07bc..1460890886c4a62269c9440187c8162c26e60bfd 100644 (file)
@@ -53,7 +53,7 @@ AliAnaCaloTrackCorrBaseClass(),
   fDeltaPhiMaxCut(0.), fDeltaPhiMinCut(0.), fRatioMaxCut(0.),  fRatioMinCut(0.), 
   fConeSize(0.), fPtThresholdInCone(0.),fUseJetRefTracks(kTRUE),
   fMakeCorrelationInHistoMaker(kFALSE), fSelectIsolated(kTRUE),
-  fJetConeSize(0.4),fJetMinPt(5),fJetAreaFraction(0.6),
+  fJetConeSize(0.4),fJetMinPt(5),fJetMinPtBkgSub(-100.),fJetAreaFraction(0.6),
 //fNonStandardJetFromReader(kTRUE), 
   fJetBranchName("jets"),
   fBackgroundJetFromReader(kTRUE),
@@ -65,11 +65,12 @@ AliAnaCaloTrackCorrBaseClass(),
   fhDeltaEta(0), /*fhDeltaPhi(0),*/fhDeltaPhiCorrect(0),fhDeltaPhi0PiCorrect(0), fhDeltaPt(0), fhPtRatio(0), fhPt(0),
   fhFFz(0),fhFFxi(0),fhFFpt(0),fhNTracksInCone(0),
   fhJetFFz(0),fhJetFFxi(0),fhJetFFpt(0),fhJetFFzCor(0),fhJetFFxiCor(0),
-  fhBkgFFz(),fhBkgFFxi(),fhBkgFFpt(),fhBkgNTracksInCone(),fhBkgSumPtInCone(),fhBkgSumPtnTracksInCone(),//<<---new
+  fhGamPtPerTrig(0),fhPtGamPtJet(0),
+  fhBkgFFz(),fhBkgFFxi(),fhBkgFFpt(),fhBkgNTracksInCone(),fhBkgSumPtInCone(),fhBkgSumPtnTracksInCone(),
   fhNjetsNgammas(0),fhCuts(0),
   fhDeltaEtaBefore(0),fhDeltaPhiBefore(0),fhDeltaPtBefore(0),fhPtRatioBefore(0),
   fhPtBefore(0),fhDeltaPhi0PiCorrectBefore(0),
-  fhJetPtBefore(0),fhJetPt(0),fhJetPtMostEne(0),fhJetPhi(0),fhJetEta(0),fhJetEtaVsPt(0),
+  fhJetPtBefore(0),fhJetPtBeforeCut(0),fhJetPt(0),fhJetPtMostEne(0),fhJetPhi(0),fhJetEta(0),fhJetEtaVsPt(0),
   fhJetPhiVsEta(0),fhJetEtaVsNpartInJet(0),fhJetEtaVsNpartInJetBkg(0),fhJetChBkgEnergyVsPt(0),fhJetChAreaVsPt(0),/*fhJetNjet(0),*/
   fhTrackPhiVsEta(0),fhTrackAveTrackPt(0),fhJetNjetOverPtCut(),
 /*fhJetChBkgEnergyVsPtEtaGt05(0),fhJetChBkgEnergyVsPtEtaLe05(0),fhJetChAreaVsPtEtaGt05(0),fhJetChAreaVsPtEtaLe05(0),*/
@@ -266,6 +267,16 @@ TList *  AliAnaParticleJetFinderCorrelation::GetCreateOutputObjects()
   fhJetFFxiCor->SetXTitle("p_{T jet}");
   outputContainer->Add(fhJetFFxiCor) ;
 
+  fhGamPtPerTrig  = new TH1F("GamPtPerTrig","GamPtPerTrig", nptbins,ptmin,ptmax); 
+  fhGamPtPerTrig->SetYTitle("Counts");
+  fhGamPtPerTrig->SetXTitle("p_{T, #gamma}");
+  outputContainer->Add(fhGamPtPerTrig) ;
+  
+  fhPtGamPtJet  = new TH2F("PtGamPtJet","p_{T #gamma} vs p_{T jet}", nptbins,ptmin,ptmax,150,-50.,100.); 
+  fhPtGamPtJet->SetXTitle("p_{T #gamma}");
+  fhPtGamPtJet->SetYTitle("p_{T jet}");
+  outputContainer->Add(fhPtGamPtJet) ;
+
 
   //background FF
   fhBkgFFz[0]  = new TH2F("BkgFFzRC",  "z = p_{T i charged}/p_{T trigger} vs p_{T trigger} Bkg RC"  ,nptbins,ptmin,ptmax,200,0.,2);  
@@ -382,6 +393,11 @@ TList *  AliAnaParticleJetFinderCorrelation::GetCreateOutputObjects()
   fhJetPtBefore->SetXTitle("p_{T jet}(GeV/c)");
   outputContainer->Add(fhJetPtBefore) ;
 
+  fhJetPtBeforeCut            = new TH1F("JetPtBeforeCut","JetPtBeforeCut",150,-50,100); 
+  fhJetPtBeforeCut->SetYTitle("Counts");
+  fhJetPtBeforeCut->SetXTitle("p_{T jet}(GeV/c)");
+  outputContainer->Add(fhJetPtBeforeCut) ;
+
   fhJetPt            = new TH1F("JetPt","JetPt",150,-50,100); 
   fhJetPt->SetYTitle("Counts");
   fhJetPt->SetXTitle("p_{T jet}(GeV/c)");
@@ -893,6 +909,7 @@ void AliAnaParticleJetFinderCorrelation::InitParameters()
   fSelectIsolated = kTRUE;
   fJetConeSize = 0.4 ;
   fJetMinPt = 15. ; //GeV/c
+  fJetMinPtBkgSub = -100. ;//GeV/c
   fJetAreaFraction = 0.6 ;
   fJetBranchName = "jets";
   fBkgJetBranchName = "jets";
@@ -942,6 +959,8 @@ Int_t  AliAnaParticleJetFinderCorrelation::SelectJet(AliAODPWG4Particle * partic
   Double_t deltaPhi=-10000.;// in the range (0; 2*pi)
   Double_t jetPt=0.;
   
+  Bool_t photonOnlyOnce=kTRUE;  
+
   for(Int_t ijet = 0; ijet < njets ; ijet++){
     jet = dynamic_cast<AliAODJet*>(aodRecJets->At(ijet));
     if(!jet)
@@ -953,15 +972,16 @@ Int_t  AliAnaParticleJetFinderCorrelation::SelectJet(AliAODPWG4Particle * partic
     jetPt=jet->Pt();
     if(jetPt<fJetMinPt) continue;
     fhCuts2->Fill(3.,1.);
-    if(fBackgroundJetFromReader ){
-      jetPt-= (fJetRho * jet->EffectiveAreaCharged() );
-    }
-    if(jetPt<0.) continue;
     //put jet eta requirement here |eta_jet|<0.9-jet_cone_size
-    fhCuts2->Fill(4.,1.);
     if(TMath::Abs(jet->Eta()) > (0.9 - fJetConeSize) ) continue;
-    fhCuts2->Fill(5.,1.);
+    fhCuts2->Fill(4.,1.);
     if(jet->EffectiveAreaCharged()<fJetAreaFraction*TMath::Pi()*fJetConeSize*fJetConeSize) continue;
+    fhCuts2->Fill(5.,1.);
+    if(fBackgroundJetFromReader ){
+      jetPt-= (fJetRho * jet->EffectiveAreaCharged() );
+    }
+
+    if(jetPt<fJetMinPtBkgSub) continue;
     fhCuts2->Fill(6.,1.);
     //printf("jet found\n");
     Double_t deltaPhi0pi  = TMath::Abs(particle->Phi()-jet->Phi());
@@ -971,6 +991,19 @@ Int_t  AliAnaParticleJetFinderCorrelation::SelectJet(AliAODPWG4Particle * partic
     if ( deltaPhi0pi > TMath::Pi() ) deltaPhi0pi = 2. * TMath::Pi() - deltaPhi0pi ;
     if(deltaPhi<0) deltaPhi +=(TMath::Pi()*2.);
     
+    //new histogram for Leticia x-check
+    //isolated photon + jet(s)
+    if(OnlyIsolated() && !particle->IsIsolated() && 
+       (deltaPhi > fDeltaPhiMinCut) && (deltaPhi < fDeltaPhiMaxCut) ){
+      //fill 1D photon + 2D photon+jets
+      if(photonOnlyOnce) {
+       fhGamPtPerTrig->Fill(particlePt);
+       photonOnlyOnce=kFALSE;
+      }
+      fhPtGamPtJet->Fill(particlePt,jetPt);
+    }
+    
+
     fhDeltaPtBefore ->Fill(particlePt, particlePt - jetPt);
     fhDeltaPhiBefore->Fill(particlePt, deltaPhi);
     fhDeltaEtaBefore->Fill(particlePt, particle->Eta() - jet->Eta());
@@ -1422,6 +1455,9 @@ void  AliAnaParticleJetFinderCorrelation::MakeAnalysisFillHistograms()
       ptMostEne = jetPttmp;
       //indexMostEne=ijet;
     }
+    if(jettmp->Pt()>=fJetMinPt)
+      fhJetPtBeforeCut->Fill(jetPttmp);
+
     fhJetPt->Fill(jetPttmp);
     fhJetChBkgEnergyVsPt->Fill(jetPttmp,effectiveChargedBgEnergy);
     fhJetChAreaVsPt->Fill(jetPttmp,jettmp->EffectiveAreaCharged());
@@ -1911,6 +1947,7 @@ void AliAnaParticleJetFinderCorrelation::Print(const Option_t * opt) const
   printf("Isolated Trigger?  %d\n", fSelectIsolated) ;
   printf("Reconstructed jet cone size = %3.2f\n", fJetConeSize) ;
   printf("Reconstructed jet minimum pt before background subtraction = %3.2f\n", fJetMinPt) ;
+  printf("Reconstructed jet minimum pt after background subtraction = %3.2f\n", fJetMinPtBkgSub) ;
   printf("Reconstructed jet minimum area fraction = %3.2f\n", fJetAreaFraction) ;
 
   //if(!fNonStandardJetFromReader){
index dccff8eb8121be4a2978ba79f426fce8b9604db3..5e33449f76ebb1a52cf63b3bbf4e80701319876c 100644 (file)
@@ -54,6 +54,7 @@ class AliAnaParticleJetFinderCorrelation : public AliAnaCaloTrackCorrBaseClass {
   Bool_t   IsCorrelationMadeInHistoMaker()       const { return fMakeCorrelationInHistoMaker ; } 
   Double_t GetJetConeSize()                      const { return fJetConeSize                 ; } 
   Double_t GetJetMinPt()                         const { return fJetMinPt                    ; }
+  Double_t GetJetMinPtBkgSub()                   const { return fJetMinPtBkgSub              ; }
   Double_t GetJetAreaFraction()                  const { return fJetAreaFraction             ; }
   Double_t GetGammaConeSize()                    const { return fGammaConeSize               ; }
 
@@ -67,6 +68,7 @@ class AliAnaParticleJetFinderCorrelation : public AliAnaCaloTrackCorrBaseClass {
   void     SetMakeCorrelationInHistoMaker(Bool_t make) { fMakeCorrelationInHistoMaker = make ; }
   void     SetJetConeSize(Double_t cone)               { fJetConeSize = cone ;                 }
   void     SetJetMinPt(Double_t minpt)                 { fJetMinPt = minpt ;                   }
+  void     SetJetMinPtBkgSub(Double_t minpt)           { fJetMinPtBkgSub = minpt ;             }
   void     SetJetAreaFraction(Double_t areafr)         { fJetAreaFraction = areafr ;           }
   void     SetGammaConeSize(Float_t cone)              { fGammaConeSize = cone               ; }
 
@@ -133,9 +135,10 @@ private:
   Bool_t     fUseJetRefTracks ;   //! Use track references from JETAN not the AOD tracks to calculate fragmentation function
   Bool_t     fMakeCorrelationInHistoMaker ; //!Make particle-jet correlation in histogram maker
   Bool_t     fSelectIsolated ;    //! Select only trigger particles isolated
-  
+
   Double_t   fJetConeSize ;       //! Reconstructed jet cone size 
   Double_t   fJetMinPt ;          //! Minumum jet pt, default 5GeV/c
+  Double_t   fJetMinPtBkgSub ;    //! Minumum jet pt after bkg subtraction, default -100 GeV/c
   Double_t   fJetAreaFraction ;   //! Jet area fraction X in X*pi*R^2, default 0.6
   //Bool_t     fNonStandardJetFromReader; //! use non standard jet from reader //new
   TString    fJetBranchName ;//! name of jet branch not set in reader part //new
@@ -179,6 +182,9 @@ private:
   TH2F *     fhJetFFzCor ;        //! Accepted reconstructed jet fragmentation function, z=pt^particle,jet*-cos(jet,trig)/ptjet
   TH2F *     fhJetFFxiCor;        //! Accepted reconstructed jet fragmentation function, xsi = ln(ptjet/pt^particle*-cos(jet,trig),jet)
 
+  TH1F * fhGamPtPerTrig ; //! per trigger normalisation
+  TH2F * fhPtGamPtJet ;   //! gamma jet correlation filling 
+
   //background from RC
   TH2F *     fhBkgFFz[5] ;              //! Background fragmentation function, z=ptjet/pttrig
   TH2F *     fhBkgFFxi[5];              //! Background fragmentation function, xsi = ln(pttrig/ptjet)
@@ -200,6 +206,7 @@ private:
 
   //temporary jet histograms
   TH1F * fhJetPtBefore;           //! Pt of all jets
+  TH1F * fhJetPtBeforeCut;        //! Pt of all jets after bkg correction, raw jet pt>fJetMinPt
   TH1F * fhJetPt;                 //! Pt of all jets after bkg correction
   TH1F * fhJetPtMostEne;          //! Pt of the most energetic jet
   TH1F * fhJetPhi;                   //! Phi of all jets