From: cnattras Date: Tue, 4 Jun 2013 15:01:49 +0000 (+0000) Subject: Tweaking logistics of calculating final ET X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=3e9c52ca065c629e3f115ba38d95a1fa39d0dcd1;p=u%2Fmrichter%2FAliRoot.git Tweaking logistics of calculating final ET --- diff --git a/PWGLF/totEt/AliAnalysisEtReconstructed.cxx b/PWGLF/totEt/AliAnalysisEtReconstructed.cxx index 8b2ebaeb2f2..937e7c86265 100644 --- a/PWGLF/totEt/AliAnalysisEtReconstructed.cxx +++ b/PWGLF/totEt/AliAnalysisEtReconstructed.cxx @@ -73,6 +73,7 @@ AliAnalysisEtReconstructed::AliAnalysisEtReconstructed() : ,fHistNominalNonLinLowEt(0) ,fHistNominalEffHighEt(0) ,fHistNominalEffLowEt(0) + ,fHistTotRawEt(0) { } @@ -105,6 +106,7 @@ AliAnalysisEtReconstructed::~AliAnalysisEtReconstructed() delete fHistNominalNonLinLowEt; delete fHistNominalEffHighEt; delete fHistNominalEffLowEt; + delete fHistTotRawEt; } Int_t AliAnalysisEtReconstructed::AnalyseEvent(AliVEvent* ev) @@ -145,6 +147,7 @@ Int_t AliAnalysisEtReconstructed::AnalyseEvent(AliVEvent* ev) Float_t nonlinLowRawEt = 0; Float_t effHighRawEt = 0; Float_t effLowRawEt = 0; + Float_t uncorrEt = 0; Float_t nChargedHadronsMeasured = 0.0; Float_t nChargedHadronsTotal = 0.0; @@ -204,6 +207,7 @@ Int_t AliAnalysisEtReconstructed::AnalyseEvent(AliVEvent* ev) nChargedHadronsTotal += 1/eff; Double_t effCorrEt = CorrectForReconstructionEfficiency(*cluster,fClusterMult); nChargedHadronsEtMeasured+= TMath::Sin(cp.Theta())*effCorrEt; + //One efficiency is the gamma efficiency and the other is the track matching efficiency. nChargedHadronsEtTotal+= 1/eff *effCorrEt; fHistMatchedTracksEvspTvsCent->Fill(track->P(),TMath::Sin(cp.Theta())*cluster->E(),cent); fHistMatchedTracksEvspTvsCentEffCorr->Fill(track->P(),CorrectForReconstructionEfficiency(*cluster,fClusterMult),cent); @@ -291,8 +295,10 @@ Int_t AliAnalysisEtReconstructed::AnalyseEvent(AliVEvent* ev) fClusterPosition->Fill(p2.Phi(), p2.PseudoRapidity()); fClusterEnergy->Fill(cluster->E()); fClusterEt->Fill(TMath::Sin(p2.Theta())*cluster->E()); + uncorrEt += TMath::Sin(p2.Theta())*cluster->E(); Double_t effCorrEt = CorrectForReconstructionEfficiency(*cluster,fClusterMult); + //cout<<"cluster energy "<E()<<" eff corr Et "<Fill(removedEnergy); - fTotNeutralEt = fGeomCorrection * fEMinCorrection * (fTotNeutralEt - removedEnergy); fTotNeutralEtAcc = fTotNeutralEt; + fHistTotRawEt->Fill(fTotNeutralEt,cent); + //cout<<"uncorr "<Add(fHistNominalNonLinLowEt); list->Add(fHistNominalEffHighEt); list->Add(fHistNominalEffLowEt); + list->Add(fHistTotRawEt); } void AliAnalysisEtReconstructed::CreateHistograms() @@ -475,9 +485,9 @@ void AliAnalysisEtReconstructed::CreateHistograms() //fHistMuonEnergyDeposit->SetYTitle("Energy of track"); histname = "fClusterPosition" + fHistogramNameSuffix; - fClusterPosition = new TH2D(histname.Data(), "Position of accepted neutral clusters",1000, -2.0, -.5, 1000, -.13 , 0.13); - fClusterPosition->SetXTitle("Energy deposited in calorimeter"); - fClusterPosition->SetYTitle("Energy of track"); + fClusterPosition = new TH2D(histname.Data(), "Position of accepted neutral clusters",300, 0,2*TMath::Pi(), 100, -0.7 , 0.7); + fClusterPosition->SetXTitle("#phi"); + fClusterPosition->SetYTitle("#eta"); histname = "fClusterEnergy" + fHistogramNameSuffix; fClusterEnergy = new TH1F(histname.Data(), histname.Data(), 100, 0, 5); @@ -505,8 +515,10 @@ void AliAnalysisEtReconstructed::CreateHistograms() fHistNotFoundHadronsvsCent = new TH2F("fHistNotFoundHadronsvsCent","fHistNotFoundHadronsvsCent",100,0,200,20,0,20); fHistFoundHadronsEtvsCent = new TH2F("fHistFoundHadronsEtvsCent","fHistFoundHadronsEtvsCent",100,0,200,20,0,20); fHistNotFoundHadronsEtvsCent = new TH2F("fHistNotFoundHadronsEtvsCent","fHistNotFoundHadronsEtvsCent",100,0,300,20,0,20); + + fHistTotRawEt = new TH2F("fHistTotRawEt","fHistTotRawEt",200,0,400,20,0,20); - maxEt = 100; + maxEt = 500; histname = "fHistNominalRawEt" + fHistogramNameSuffix; fHistNominalRawEt = new TH2D(histname.Data(), histname.Data(),nbinsEt,minEt,maxEt,20,-0.5,19.5); histname = "fHistNominalNonLinHighEt" + fHistogramNameSuffix; diff --git a/PWGLF/totEt/AliAnalysisEtReconstructed.h b/PWGLF/totEt/AliAnalysisEtReconstructed.h index 357a4e2803a..9e3b393f7c2 100644 --- a/PWGLF/totEt/AliAnalysisEtReconstructed.h +++ b/PWGLF/totEt/AliAnalysisEtReconstructed.h @@ -85,6 +85,7 @@ protected: TH2D *fHistNominalEffHighEt;//Total ET from clusters with high bound on reconstruction efficiency and nominal nonlinearity correction vs centrality TH2D *fHistNominalEffLowEt;//Total ET from clusters with low bound on reconstruction efficiency and nominal nonlinearity correction vs centrality + TH2F *fHistTotRawEt; // gamma energy added Double_t ApplyModifiedCorrections(const AliESDCaloCluster& cluster,Int_t nonLinCorr, Int_t effCorr, Int_t mult);//nonLinCorr 0 = nominal 1 = high -1 = low, effCorr 0 = nominal 1 = high -1 = low private: