11 #include <THnSparse.h>
14 #include <TLorentzVector.h>
16 #include <TProfile2D.h>
17 #include <TProfile3D.h>
20 #include <TClonesArray.h>
21 #include <TObjArray.h>
25 #include "AliAnalysisManager.h"
27 #include "AliESDtrackCuts.h"
28 #include "AliESDEvent.h"
29 #include "AliESDInputHandler.h"
30 #include "AliAODEvent.h"
31 #include "AliVEvent.h"
32 #include "AliMCEvent.h"
33 #include "AliVTrack.h"
34 #include "AliVCluster.h"
36 #include "AliEMCALGeometry.h"
37 #include "AliEMCALRecoUtils.h"
38 #include "AliVCaloCells.h"
59 fhComplementaryTrackPt(0),
60 fhComplementaryTrackEta(0),
61 fhComplementaryTrackPhi(0),
68 fhChargeAndNeutralEvents(0),
69 fhChargeOnlyEvents(0),
70 fhNeutralOnlyEvents(0),
72 fhEMCalChargeAndNeutralEvents(0),
73 fhEMCalChargeOnlyEvents(0),
74 fhEMCalNeutralOnlyEvents(0),
75 fhEMCalNothingEvents(0),
80 fhGlobalTrackEtaPhi(0),
81 fhGlobalTrackPhiPt(0),
82 fhGlobalTrackEtaPt(0),
83 fhComplementaryTrackEtaPhi(0),
84 fhComplementaryTrackPhiPt(0),
85 fhComplementaryTrackEtaPt(0),
91 fhEMCalTrackEventMult(0),
97 fpClusterPtProfile(0),
99 fpFullJetEDProfile(0),
100 fpChargedJetEDProfile(0),
101 fpChargedJetEDProfileScaled(0),
105 fRhoChargedCMSScale(0),
119 fRhoChargedkTScale(0),
130 fEMCalPartJetUnbiased(0),
153 fEMCalPhiMin(1.39626),
154 fEMCalPhiMax(3.26377),
155 fEMCalPhiTotal(1.86750),
162 fTPCPhiTotal(6.28319),
168 fParticlePtUp(200.0),
169 fParticlePtBins(200),
175 fJetAreaCutFrac(0.6),
176 fJetAreaThreshold(0.30159),
182 fNEFSignalJetCut(0.9),
183 fCentralityTag("V0A"),
200 fEMCalJetThreshold(5),
212 fmyAKTChargedJets(0),
219 fEMCalRCBckgFlucSignal(0),
220 fTPCRCBckgFlucSignal(0),
221 fEMCalRCBckgFlucNColl(0),
222 fTPCRCBckgFlucNColl(0)
225 fVertex[0]=0.0,fVertex[1]=0.0,fVertex[2]=0.0;
241 fhComplementaryTrackPt(0),
242 fhComplementaryTrackEta(0),
243 fhComplementaryTrackPhi(0),
248 fhEMCalCellCounts(0),
250 fhChargeAndNeutralEvents(0),
251 fhChargeOnlyEvents(0),
252 fhNeutralOnlyEvents(0),
254 fhEMCalChargeAndNeutralEvents(0),
255 fhEMCalChargeOnlyEvents(0),
256 fhEMCalNeutralOnlyEvents(0),
257 fhEMCalNothingEvents(0),
262 fhGlobalTrackEtaPhi(0),
263 fhGlobalTrackPhiPt(0),
264 fhGlobalTrackEtaPt(0),
265 fhComplementaryTrackEtaPhi(0),
266 fhComplementaryTrackPhiPt(0),
267 fhComplementaryTrackEtaPt(0),
273 fhEMCalTrackEventMult(0),
279 fpClusterPtProfile(0),
281 fpFullJetEDProfile(0),
282 fpChargedJetEDProfile(0),
283 fpChargedJetEDProfileScaled(0),
287 fRhoChargedCMSScale(0),
301 fRhoChargedkTScale(0),
312 fEMCalPartJetUnbiased(0),
335 fEMCalPhiMin(1.39626),
336 fEMCalPhiMax(3.26377),
337 fEMCalPhiTotal(1.86750),
344 fTPCPhiTotal(6.28319),
350 fParticlePtUp(200.0),
351 fParticlePtBins(2000),
357 fJetAreaCutFrac(0.6),
358 fJetAreaThreshold(0.30159),
364 fNEFSignalJetCut(0.9),
365 fCentralityTag(
"V0A"),
382 fEMCalJetThreshold(5),
394 fmyAKTChargedJets(0),
401 fEMCalRCBckgFlucSignal(0),
402 fTPCRCBckgFlucSignal(0),
403 fEMCalRCBckgFlucNColl(0),
404 fTPCRCBckgFlucNColl(0)
412 DefineOutput(1,TList::Class());
420 if (
fOutput && !AliAnalysisManager::GetAnalysisManager()->IsProofMode())
474 Int_t CentralityBinMult=10;
515 fhTrackPt->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
516 fhTrackPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}");
519 fhTrackPhi =
new TH1F(
"fhTrackPhi",
"#varphi distribution of tracks in event",TCBins,fTPCPhiMin,
fTPCPhiMax);
521 fhTrackPhi->GetYaxis()->SetTitle(
"1/N_{Events} dN/d#varphi");
524 fhTrackEta =
new TH1F(
"fhTrackEta",
"#eta distribution of tracks in event",TCBins,fTPCEtaMin,
fTPCEtaMax);
526 fhTrackEta->GetYaxis()->SetTitle(
"1/N_{Events} dN/d#eta");
532 fhTrackEtaPhi->GetZaxis()->SetTitle(
"1/N_{Events} dN/d#etad#varphi");
538 fhTrackPhiPt->GetZaxis()->SetTitle(
"1/N_{Events} dN/d#varphidp_{T}");
544 fhTrackEtaPt->GetZaxis()->SetTitle(
"1/N_{Events} dN/d#etadp_{T}");
553 fhGlobalTrackPhi =
new TH1F(
"fhGlobalTrackPhi",
"Global #varphi distribution of tracks in event",TCBins,fTPCPhiMin,
fTPCPhiMax);
618 fhTPCEventMult->GetZaxis()->SetTitle(
"1/N_{Events} dN/dCentdN_{Charged}");
668 fhClusterPt->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
669 fhClusterPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}");
672 fhClusterPhi =
new TH1F(
"fhClusterPhi",
"#varphi distribution of clusters in event",TCBins,fTPCPhiMin,
fTPCPhiMax);
674 fhClusterPhi->GetYaxis()->SetTitle(
"1/N_{Events} dN/d#varphi");
677 fhClusterEta =
new TH1F(
"fhClusterEta",
"#eta distribution of clusters in event",TCBins,fTPCEtaMin,
fTPCEtaMax);
679 fhClusterEta->GetYaxis()->SetTitle(
"1/N_{Events} dN/d#eta");
685 fhClusterEtaPhi->GetZaxis()->SetTitle(
"1/N_{Events} dN/d#etad#varphi");
691 fhClusterPhiPt->GetZaxis()->SetTitle(
"1/N_{Events} dN/d#varphidp_{T}");
697 fhClusterEtaPt->GetZaxis()->SetTitle(
"1/N_{Events} dN/d#etadp_{T}");
703 fhEMCalEventMult->GetZaxis()->SetTitle(
"1/N_{Events} dN/dCentdN_{Neutral}");
763 const Int_t chargedEDBins = (
Int_t) chargedEDR;
765 fpFullJetEDProfile =
new TProfile3D(
"fpFullJetEDProfile",
"Jet ED Profile for #varphi_{jet}#in(#varphi_{EMCal min} + R,#varphi_{EMCal max} - R) & #eta_{jet}#in(#eta_{EMCal min} + R,#eta_{EMCal max} - R)",
fParticlePtBins,
fParticlePtLow,
fParticlePtUp,
fCentralityBins,
fCentralityLow,
fCentralityUp,fullEDBins,0,
fFullEDJetR);
770 fpChargedJetEDProfile =
new TProfile3D(
"fpChargedJetEDProfile",
"Charged Jet ED Profile for #eta_{jet}#in(#eta_{TPC min} + R,#eta_{TPC max} - R)",
fParticlePtBins,
fParticlePtLow,
fParticlePtUp,
fCentralityBins,
fCentralityLow,
fCentralityUp,chargedEDBins,0,
fChargedEDJetR);
775 fpChargedJetEDProfileScaled =
new TProfile3D(
"fpChargedJetEDProfileScaled",
"Charged Jet ED Profile x SF for #eta_{jet}#in(#eta_{TPC min} + R,#eta_{TPC max} - R)",
fParticlePtBins,
fParticlePtLow,
fParticlePtUp,
fCentralityBins,
fCentralityLow,
fCentralityUp,chargedEDBins,0,
fChargedEDJetR);
934 AliError(
"Pointer == 0, this can not happen!");
951 if (TMath::Sqrt(TMath::Power(esd->GetPrimaryVertex()->GetX(),2)+TMath::Power(esd->GetPrimaryVertex()->GetY(),2))>
fVertexMaxR)
958 esd->GetPrimaryVertex()->GetXYZ(
fVertex);
959 fCells = (AliVCaloCells*) esd->GetEMCALCells();
969 if (TMath::Sqrt(TMath::Power(aod->GetPrimaryVertex()->GetX(),2)+TMath::Power(aod->GetPrimaryVertex()->GetY(),2))>
fVertexMaxR)
976 aod->GetPrimaryVertex()->GetXYZ(
fVertex);
977 fCells = (AliVCaloCells*) aod->GetEMCALCells();
982 AliError(
"Cannot get AOD/ESD event. Rejecting Event");
1007 AliWarning(
"No PicoTracks, Rejecting Event");
1144 AliVTrack* vtrack = (AliVTrack*)
fOrgTracks->At(i);
1148 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta()) == kTRUE)
1164 TLorentzVector *cluster_vec =
new TLorentzVector;
1167 AliVCluster* vcluster = (AliVCluster*)
fOrgClusters->At(i);
1168 vcluster->GetMomentum(*cluster_vec,
fVertex);
1170 if (cluster_vec->Pt()>=
fClusterMinPt && vcluster->IsEMCAL()==kTRUE)
1272 hdummypT->Fill(vtrack->
Eta(),vtrack->
Phi(),vtrack->
Pt());
1274 for (i=1;i<=TCBins;i++)
1276 for (j=1;j<=TCBins;j++)
1278 fpTrackPtProfile->Fill(hdummypT->GetXaxis()->GetBinCenter(i),hdummypT->GetYaxis()->GetBinCenter(j),
fTPCArea*TMath::Power(TCBins,-2)*hdummypT->GetBinContent(i,j));
1291 TLorentzVector *cluster_vec =
new TLorentzVector;
1295 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
1296 vcluster->GetMomentum(*cluster_vec,
fVertex);
1304 hdummypT->Fill(cluster_vec->Eta(),cluster_vec->Phi(),cluster_vec->Pt());
1305 fEMCALGeometry->GetAbsCellIdFromEtaPhi(cluster_vec->Eta(),cluster_vec->Phi(),myCellID);
1308 for (i=1;i<=TCBins;i++)
1310 for (j=1;j<=TCBins;j++)
1312 fpClusterPtProfile->Fill(hdummypT->GetXaxis()->GetBinCenter(i),hdummypT->GetYaxis()->GetBinCenter(j),
fEMCalArea*TMath::Power(TCBins,-2)*hdummypT->GetBinContent(i,j));
1460 TRandom3 u(time(NULL));
1465 Int_t event_track_mult=0;
1475 TLorentzVector *dummy=
new TLorentzVector;
1476 TLorentzVector *temp_jet=
new TLorentzVector;
1477 TLorentzVector *track_vec =
new TLorentzVector;
1484 dummy->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1488 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1489 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1491 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1492 if (dummy->DeltaR(*track_vec)<
fJetR)
1494 E_tracks_total+=vtrack->Pt();
1505 temp_jet->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1520 dummy->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1521 while (temp_jet->DeltaR(*dummy)<
fJetR)
1523 dummy->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1528 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1529 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE) == kTRUE)
1532 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta()) == kTRUE)
1536 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1537 if (dummy->DeltaR(*track_vec)<
fJetR)
1540 E_tracks_total+=vtrack->Pt();
1561 exclusion_prob = u.Uniform(0,1);
1562 if (exclusion_prob<(1/
fNColl))
1582 TRandom3 u(time(NULL));
1596 TLorentzVector *dummy=
new TLorentzVector;
1597 TLorentzVector *temp_jet=
new TLorentzVector;
1598 TLorentzVector *track_vec =
new TLorentzVector;
1599 TLorentzVector *cluster_vec =
new TLorentzVector;
1605 E_caloclusters_total=0.;
1607 dummy->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1611 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1612 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
1614 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1615 if (dummy->DeltaR(*track_vec)<
fJetR)
1617 E_tracks_total+=vtrack->Pt();
1625 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
1626 vcluster->GetMomentum(*cluster_vec,
fVertex);
1627 if (dummy->DeltaR(*cluster_vec)<
fJetR)
1630 E_caloclusters_total+=cluster_vec->Pt();
1638 E_caloclusters_total=0.;
1641 temp_jet->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1654 E_caloclusters_total=0.;
1656 dummy->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1657 while (temp_jet->DeltaR(*dummy)<
fJetR)
1659 dummy->SetPtEtaPhiE(1,u.Uniform(Eta_Center-
fJetR,Eta_Center+
fJetR),u.Uniform(Phi_Center-
fJetR,Phi_Center+
fJetR),0);
1664 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1665 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
1668 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1669 if (dummy->DeltaR(*track_vec)<
fJetR)
1672 E_tracks_total+=vtrack->Pt();
1680 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
1681 vcluster->GetMomentum(*cluster_vec,
fVertex);
1683 if (dummy->DeltaR(*cluster_vec)<
fJetR)
1686 E_caloclusters_total+=cluster_vec->Pt();
1702 exclusion_prob = u.Uniform(0,1);
1703 if (exclusion_prob<(1/
fNColl))
1729 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1730 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1732 E_tracks_total+=vtrack->Pt();
1758 TLorentzVector *temp_jet=
new TLorentzVector;
1759 TLorentzVector *track_vec =
new TLorentzVector;
1769 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1770 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1772 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1775 E_tracks_total+=vtrack->Pt();
1788 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1789 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1791 E_tracks_total+=vtrack->Pt();
1816 TLorentzVector *temp_jet1=
new TLorentzVector;
1817 TLorentzVector *temp_jet2=
new TLorentzVector;
1818 TLorentzVector *track_vec =
new TLorentzVector;
1831 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1832 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1834 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1837 E_tracks_total+=vtrack->Pt();
1853 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1854 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1856 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1859 E_tracks_total+=vtrack->Pt();
1872 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
1873 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1875 E_tracks_total+=vtrack->Pt();
1899 Bool_t track_away_from_jet;
1904 TLorentzVector *jet_vec=
new TLorentzVector;
1905 TLorentzVector *track_vec =
new TLorentzVector;
1911 AliVTrack* vtrack = (AliVTrack*)
fmyTracks->At(i);
1912 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1916 E_tracks_total+=vtrack->Pt();
1920 track_away_from_jet=kTRUE;
1922 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1923 while (track_away_from_jet==kTRUE && j<fTPCJetUnbiased->GetTotalSignalJets())
1929 track_away_from_jet=kFALSE;
1933 if (track_away_from_jet==kTRUE)
1935 E_tracks_total+=vtrack->Pt();
1958 TPC_rho = E_tracks_total/(
fTPCArea-jet_area_total);
1974 Bool_t track_away_from_jet;
1979 TLorentzVector *jet_vec=
new TLorentzVector;
1980 TLorentzVector *track_vec =
new TLorentzVector;
1986 AliVTrack* vtrack = (AliVTrack*)
fmyTracks->At(i);
1987 if (
IsInTPC(
fJetR,vtrack->Phi(),vtrack->Eta(),kFALSE)==kTRUE)
1991 E_tracks_total+=vtrack->Pt();
1995 track_away_from_jet=kTRUE;
1997 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
1998 while (track_away_from_jet==kTRUE && j<fTPCJetUnbiased->GetTotalSignalJets())
2004 track_away_from_jet=kFALSE;
2008 if (track_away_from_jet==kTRUE)
2010 E_tracks_total+=vtrack->Pt();
2033 TPC_rho = E_tracks_total/(
fTPCArea-jet_area_total);
2057 pTArray[i]=myJet->
Pt();
2058 RhoArray[i]=myJet->
Pt()/myJet->
Area();
2087 pTArray[i]=myJet->
Pt();
2088 RhoArray[i]=myJet->
Pt()/myJet->
Area();
2114 Double_t CMSCorrectionFactor = 1.0;
2128 CMSTotalkTArea+=myJet->
Area();
2131 CMSTrackArea+=myJet->
Area();
2135 pTArray[k]=myJet->
Pt();
2136 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2157 CMSTotalkTArea+=myJet->
Area();
2160 CMSTrackArea+=myJet->
Area();
2164 pTArray[k]=myJet->
Pt();
2165 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2184 CMSTotalkTArea+=myJet->
Area();
2187 CMSTrackArea+=myJet->
Area();
2189 pTArray[k]=myJet->
Pt();
2190 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2203 if (CMSTotalkTArea==0.0)
2205 CMSCorrectionFactor = 1.0;
2212 kTRho*=CMSCorrectionFactor;
2230 Double_t CMSCorrectionFactor = 1.0;
2244 CMSTotalkTArea+=myJet->
Area();
2247 CMSTrackArea+=myJet->
Area();
2251 pTArray[k]=myJet->
Pt();
2252 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2273 CMSTotalkTArea+=myJet->
Area();
2276 CMSTrackArea+=myJet->
Area();
2280 pTArray[k]=myJet->
Pt();
2281 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2300 CMSTotalkTArea+=myJet->
Area();
2303 CMSTrackArea+=myJet->
Area();
2305 pTArray[k]=myJet->
Pt();
2306 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2320 if (CMSTotalkTArea==0.0)
2322 CMSCorrectionFactor = 1.0;
2328 kTRho*=CMSCorrectionFactor;
2337 fRhoChargedCMSScale->
DoNEFAnalysis(
fNEFSignalJetCut,
fEMCalJetThreshold,
fmyAKTFullJets,
fEMCalFullJet->
GetJets(),
fEMCalFullJet->
GetTotalJets(),
fmyClusters,
fOrgClusters,
fEvent,
fEMCALGeometry,
fRecoUtil,
fCells);
2353 TLorentzVector *cluster_vec =
new TLorentzVector;
2358 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
2359 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2361 E_tracks_total+=vtrack->Pt();
2368 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2369 vcluster->GetMomentum(*cluster_vec,
fVertex);
2370 E_caloclusters_total+=cluster_vec->Pt();
2375 EMCal_rho=(E_tracks_total+E_caloclusters_total)/
fEMCalArea;
2395 TLorentzVector *temp_jet=
new TLorentzVector;
2396 TLorentzVector *track_vec =
new TLorentzVector;
2397 TLorentzVector *cluster_vec =
new TLorentzVector;
2407 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
2408 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2410 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
2413 E_tracks_total+=vtrack->Pt();
2421 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2422 vcluster->GetMomentum(*cluster_vec,
fVertex);
2425 E_caloclusters_total+=cluster_vec->Pt();
2436 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
2437 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2439 E_tracks_total+=vtrack->Pt();
2446 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2447 vcluster->GetMomentum(*cluster_vec,
fVertex);
2448 E_caloclusters_total+=cluster_vec->Pt();
2451 EMCal_rho=(E_tracks_total+E_caloclusters_total)/
fEMCalArea;
2474 TLorentzVector *temp_jet1 =
new TLorentzVector;
2475 TLorentzVector *temp_jet2 =
new TLorentzVector;
2476 TLorentzVector *track_vec =
new TLorentzVector;
2477 TLorentzVector *cluster_vec =
new TLorentzVector;
2490 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
2491 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2493 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
2496 E_tracks_total+=vtrack->Pt();
2504 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2505 vcluster->GetMomentum(*cluster_vec,
fVertex);
2508 E_caloclusters_total+=cluster_vec->Pt();
2523 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
2524 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2526 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
2529 E_tracks_total+=vtrack->Pt();
2537 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2538 vcluster->GetMomentum(*cluster_vec,
fVertex);
2541 E_caloclusters_total+=cluster_vec->Pt();
2552 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
2553 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2555 E_tracks_total+=vtrack->Pt();
2562 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2563 vcluster->GetMomentum(*cluster_vec,
fVertex);
2564 E_caloclusters_total+=cluster_vec->Pt();
2567 EMCal_rho=(E_tracks_total+E_caloclusters_total)/
fEMCalArea;
2587 Bool_t track_away_from_jet;
2588 Bool_t cluster_away_from_jet;
2594 TLorentzVector *jet_vec=
new TLorentzVector;
2595 TLorentzVector *track_vec =
new TLorentzVector;
2596 TLorentzVector *cluster_vec =
new TLorentzVector;
2602 AliVTrack* vtrack = (AliVTrack*)
fmyTracks->At(i);
2603 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2607 E_tracks_total+=vtrack->Pt();
2611 track_away_from_jet=kTRUE;
2613 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
2614 while (track_away_from_jet==kTRUE && j<fEMCalPartJetUnbiased->GetTotalSignalJets())
2620 track_away_from_jet=kFALSE;
2624 if (track_away_from_jet==kTRUE)
2626 E_tracks_total+=vtrack->Pt();
2635 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2636 vcluster->GetMomentum(*cluster_vec,
fVertex);
2639 E_caloclusters_total+=cluster_vec->Pt();
2643 cluster_away_from_jet=kTRUE;
2646 while (cluster_away_from_jet==kTRUE && j<fEMCalPartJetUnbiased->GetTotalSignalJets())
2652 cluster_away_from_jet=kFALSE;
2656 if (cluster_away_from_jet==kTRUE)
2658 E_caloclusters_total+=cluster_vec->Pt();
2681 EMCal_rho=(E_tracks_total+E_caloclusters_total)/(
fEMCalArea-jet_area_total);
2700 TLorentzVector *cluster_vec =
new TLorentzVector;
2705 AliVTrack* vtrack =(AliVTrack*)
fmyTracks->At(i);
2706 if (
IsInEMCal(vtrack->Phi(),vtrack->Eta())==kTRUE)
2708 E_tracks_total+=vtrack->Pt();
2715 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(i);
2716 vcluster->GetMomentum(*cluster_vec,
fVertex);
2717 E_caloclusters_total+=cluster_vec->Pt();
2723 EMCal_rho=(E_tracks_total+E_caloclusters_total)/
fEMCalArea;
2745 pTArray[i]=myJet->
Pt();
2746 RhoArray[i]=myJet->
Pt()/myJet->
Area();
2774 Double_t CMSCorrectionFactor = 1.0;
2788 CMSTotalkTArea+=myJet->
Area();
2791 CMSParticleArea+=myJet->
Area();
2795 pTArray[k]=myJet->
Pt();
2796 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2817 CMSTotalkTArea+=myJet->
Area();
2820 CMSParticleArea+=myJet->
Area();
2824 pTArray[k]=myJet->
Pt();
2825 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2844 CMSTotalkTArea+=myJet->
Area();
2847 CMSParticleArea+=myJet->
Area();
2849 pTArray[k]=myJet->
Pt();
2850 RhoArray[k]=myJet->
Pt()/myJet->
Area();
2863 if (CMSTotalkTArea==0.0)
2865 CMSCorrectionFactor = 1.0;
2872 kTRho*=CMSCorrectionFactor;
2895 TLorentzVector *jet_vec=
new TLorentzVector;
2896 TLorentzVector *track_vec =
new TLorentzVector;
2897 TLorentzVector *cluster_vec =
new TLorentzVector;
2905 for (j=0;j<fullEDBins;j++)
2914 AliVTrack* vtrack = (AliVTrack*)
fmyTracks->At(j);
2915 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
2916 delta_R=jet_vec->DeltaR(*track_vec);
2919 ED_pT[TMath::FloorNint((delta_R/
fFullEDJetR)*fullEDBins)]+=vtrack->Pt();
2926 AliVCluster* vcluster = (AliVCluster*)
fmyClusters->At(j);
2927 vcluster->GetMomentum(*cluster_vec,
fVertex);
2928 delta_R=jet_vec->DeltaR(*cluster_vec);
2931 ED_pT[TMath::FloorNint((delta_R/
fFullEDJetR)*fullEDBins)]+=cluster_vec->Pt();
2935 for (j=0;j<fullEDBins;j++)
2937 ED_pT[j] /= TMath::Pi()*dR*dR*(2*j+1);
2954 const Int_t chargedEDBins = (
Int_t) chargedEDR;
2958 TLorentzVector *jet_vec=
new TLorentzVector;
2959 TLorentzVector *track_vec =
new TLorentzVector;
2966 for (j=0;j<chargedEDBins;j++)
2975 AliVTrack* vtrack = (AliVTrack*)
fmyTracks->At(j);
2976 track_vec->SetPtEtaPhiE(vtrack->Pt(),vtrack->Eta(),vtrack->Phi(),vtrack->E());
2977 delta_R=jet_vec->DeltaR(*track_vec);
2980 ED_pT[TMath::FloorNint((delta_R/
fChargedEDJetR)*chargedEDBins)]+=vtrack->Pt();
2983 for (j=0;j<chargedEDBins;j++)
2985 ED_pT[j] /= TMath::Pi()*dR*dR*(2*j+1);
3003 else if (delOption==1)
3013 else if (delOption==2)
3075 const Double_t dijet_delta_phi=(180/360.)*2*TMath::Pi();
3076 const Double_t dijet_phi_acceptance=0.5*(30/360.)*2*TMath::Pi();
3083 dummy_phi=TMath::Min(TMath::Abs(myhJet->
Phi()-myJet->
Phi()),2*TMath::Pi()-TMath::Abs(myhJet->
Phi()-myJet->
Phi()));
3084 if (dummy_phi>(dijet_delta_phi-dijet_phi_acceptance))
3095 if (phi>phi_min && phi<phi_max)
3097 if (eta>eta_min && eta<eta_max)
3125 if (in_EMCal==kFALSE && in_TPC==kTRUE)
3134 if (Complete==kTRUE)
3146 Int_t jetCluster1=0;
3147 Int_t jetCluster2=0;
3155 if (jetTrack1 == jetTrack2)
3161 if (EMCalOn == kTRUE)
3169 if (jetCluster1 == jetCluster2)
3194 return r*r*TMath::Pi()-
AreaEdge(r,z);
3237 if (TMath::Sqrt(x*x+y*y)>=r)
3243 else if ((x>=r && y<0) || (y>=r && x<0))
3247 else if (x>0 && x<r && y<0)
3253 return r*r*TMath::ASin(b/r)+y*b;
3257 return 0.5*x*a+0.5*r*r*TMath::ASin(x/r)+0.5*y*b+x*y+0.5*r*r*TMath::ASin(b/r);
3260 else if (y>0 && y<r && x<0)
3266 return r*r*TMath::ASin(a/r)+x*a;
3270 return 0.5*y*b+0.5*r*r*TMath::ASin(y/r)+0.5*x*a+x*y+0.5*r*r*TMath::ASin(a/r);
3283 return 0.5*x*a+0.5*r*r*TMath::ASin(x/r)+0.5*y*b+x*y+0.5*r*r*TMath::ASin(b/r);
3291 return r*r*TMath::ASin(a/r)-a*z;
3298 return x*y-0.5*(x*a+y*b)+0.5*r*r*(TMath::ASin(b/r)-TMath::ASin(x/r));
3313 Double_t phi1=phi+u*TMath::Tan(psi0);
3314 Double_t phi2=phi-u*TMath::Tan(psi0);
3315 Double_t phi3=phi+v*TMath::Tan(psi0);
3316 Double_t phi4=phi-v*TMath::Tan(psi0);
3330 eta_up=TMath::Max(eta_a,eta_b);
3331 eta_down=TMath::Min(eta_a,eta_b);
3337 area_left=0.5*(
fEMCalPhiMax-phi2+2*(eta-eta_a)*TMath::Tan(psi0))*(eta_a-fEMCalEtaMin) + (eta-eta_a+r)*TMath::Tan(psi0)*(eta-eta_a-r);
3341 area_left=0.5*(phi1-
fEMCalPhiMin+2*(eta-eta_b)*TMath::Tan(psi0))*(eta_b-fEMCalEtaMin) + (eta-eta_b+r)*TMath::Tan(psi0)*(eta-eta_b-r);
3345 area_left=0.5*(phi1-phi2+2*r*TMath::Tan(psi0))*(u-r);
3360 eta_up=TMath::Max(eta_a,eta_b);
3361 eta_down=TMath::Min(eta_a,eta_b);
3367 area_right=0.5*(
fEMCalPhiMax-phi4+2*(eta_a-eta)*TMath::Tan(psi0))*(
fEMCalEtaMax-eta_a) + (eta_a-eta+r)*TMath::Tan(psi0)*(eta_a-eta-r);
3371 area_right=0.5*(phi3-
fEMCalPhiMin+2*(eta_b-eta)*TMath::Tan(psi0))*(
fEMCalEtaMax-eta_b) + (eta_b-eta+r)*TMath::Tan(psi0)*(eta_b-eta-r);
3375 area_right=0.5*(phi3-phi4+2*r*TMath::Tan(psi0))*(v-r);
3377 return area_left+area_right;
3388 const Double_t rho_min=-9.9999E+99;
3397 for (j=0;j<nEntries;j++)
3402 for (j=0;j<nEntries;j++)
3404 if (pTkTEntries[j]>pTmax)
3406 pTmax=pTkTEntries[j];
3411 for (j=0;j<nEntries;j++)
3413 for (k=0;k<nEntries;k++)
3415 if (RhokTEntries[k]>smax)
3417 smax=RhokTEntries[k];
3422 RhokTEntries[sindex]=rho_min;
3426 return w[nEntries/2];
3443 fSignalTrackBias(0),
3446 fPtSubLeadingIndex(0),
3471 fPtSubLeadingIndex(0),
3493 SetIsJetsFull(kFALSE);
3495 SetTotalSignalJets(0);
3499 SetAreaCutFraction(0);
3502 SetSignalTrackPtBias(kFALSE);
3504 delete [] fJetsIndex;
3505 delete [] fJetsSCIndex;
3506 delete [] fIsJetInArray;
3507 delete [] fJetMaxChargedPt;
3518 Double_t AreaThreshold = fAreaCutFrac*TMath::Pi()*TMath::Power(
fJetR,2);
3521 for (i=0;i<nEntries;i++)
3525 if (fIsJetInArray[i]==kTRUE && myJet->
Area()>AreaThreshold)
3528 if (myJet->
Pt()>fPtMax)
3530 SetSubLeading(fPtMaxIndex,fPtMax);
3531 SetLeading(i,myJet->
Pt());
3533 else if (myJet->
Pt()>fPtSubLeading)
3535 SetSubLeading(i,myJet->
Pt());
3541 if (fJetMaxChargedPt[i]>=fSignalPt && myJet->
NEF()<=fNEF)
3543 SetSignalJetIndex(i,l);
3549 if (myJet->
Pt()>=fSignalPt && myJet->
NEF()<=fNEF)
3551 SetSignalJetIndex(i,l);
3559 SetTotalSignalJets(l);
3570 fIsJetsFull = isFull;
3576 fJetsIndex =
new Int_t[fnTotal];
3577 fJetsSCIndex =
new Int_t[fnTotal];
3578 fIsJetInArray =
new Bool_t[fnTotal];
3579 fJetMaxChargedPt =
new Double_t[fnTotal];
3589 fnJetsSC = nSignalJets;
3599 fPtMaxIndex = index;
3605 fPtSubLeadingIndex = index;
3611 fJetsIndex[At] = index;
3616 fJetsSCIndex[At] = index;
3621 fIsJetInArray[At] = isInArray;
3626 fAreaCutFrac = areaFraction;
3677 return fPtSubLeadingIndex;
3682 return fPtSubLeading;
3687 return fJetsIndex[At];
3692 return fJetsSCIndex[At];
3697 return fIsJetInArray[At];
3702 return fJetMaxChargedPt[At];
3725 fh80100BSPtSignal(0),
3732 fh020DeltaPtSignal(0),
3733 fh80100DeltaPtSignal(0),
3735 fhDeltaPtCenSignal(0),
3736 fh020DeltaPtNColl(0),
3737 fh80100DeltaPtNColl(0),
3739 fhDeltaPtCenNColl(0),
3741 fh80100BckgFlucPt(0),
3750 fhJetConstituentPt(0),
3753 fhJetConstituentCounts(0),
3754 fhJetTracksCounts(0),
3755 fhJetClustersCounts(0),
3756 fhJetPtZConstituent(0),
3759 fhJetPtZLeadingConstituent(0),
3760 fhJetPtZLeadingTrack(0),
3761 fhJetPtZLeadingCluster(0),
3763 fhEventCentralityVsZNA(0),
3764 fhEventCentralityVsZNAPt(0),
3769 fhJetNEFSignalInfo(0),
3770 fhClusterNEFInfo(0),
3771 fhClusterNEFSignalInfo(0),
3772 fhClusterShapeAll(0),
3773 fhClusterPtCellAll(0),
3796 fLChargedTrackPtBins(0),
3797 fLChargedTrackPtLow(0),
3798 fLChargedTrackPtUp(0),
3831 fh80100BSPtSignal(0),
3838 fh020DeltaPtSignal(0),
3839 fh80100DeltaPtSignal(0),
3841 fhDeltaPtCenSignal(0),
3842 fh020DeltaPtNColl(0),
3843 fh80100DeltaPtNColl(0),
3845 fhDeltaPtCenNColl(0),
3847 fh80100BckgFlucPt(0),
3856 fhJetConstituentPt(0),
3859 fhJetConstituentCounts(0),
3860 fhJetTracksCounts(0),
3861 fhJetClustersCounts(0),
3862 fhJetPtZConstituent(0),
3865 fhJetPtZLeadingConstituent(0),
3866 fhJetPtZLeadingTrack(0),
3867 fhJetPtZLeadingCluster(0),
3869 fhEventCentralityVsZNA(0),
3870 fhEventCentralityVsZNAPt(0),
3875 fhJetNEFSignalInfo(0),
3876 fhClusterNEFInfo(0),
3877 fhClusterNEFSignalInfo(0),
3878 fhClusterShapeAll(0),
3879 fhClusterPtCellAll(0),
3902 fLChargedTrackPtBins(0),
3903 fLChargedTrackPtLow(0),
3904 fLChargedTrackPtUp(0),
3949 fh80100BSPtSignal(0),
3956 fh020DeltaPtSignal(0),
3957 fh80100DeltaPtSignal(0),
3959 fhDeltaPtCenSignal(0),
3960 fh020DeltaPtNColl(0),
3961 fh80100DeltaPtNColl(0),
3963 fhDeltaPtCenNColl(0),
3965 fh80100BckgFlucPt(0),
3974 fhJetConstituentPt(0),
3977 fhJetConstituentCounts(0),
3978 fhJetTracksCounts(0),
3979 fhJetClustersCounts(0),
3980 fhJetPtZConstituent(0),
3983 fhJetPtZLeadingConstituent(0),
3984 fhJetPtZLeadingTrack(0),
3985 fhJetPtZLeadingCluster(0),
3987 fhEventCentralityVsZNA(0),
3988 fhEventCentralityVsZNAPt(0),
3993 fhJetNEFSignalInfo(0),
3994 fhClusterNEFInfo(0),
3995 fhClusterNEFSignalInfo(0),
3996 fhClusterShapeAll(0),
3997 fhClusterPtCellAll(0),
4020 fLChargedTrackPtBins(0),
4021 fLChargedTrackPtLow(0),
4022 fLChargedTrackPtUp(0),
4067 fh80100BSPtSignal(0),
4074 fh020DeltaPtSignal(0),
4075 fh80100DeltaPtSignal(0),
4077 fhDeltaPtCenSignal(0),
4078 fh020DeltaPtNColl(0),
4079 fh80100DeltaPtNColl(0),
4081 fhDeltaPtCenNColl(0),
4083 fh80100BckgFlucPt(0),
4092 fhJetConstituentPt(0),
4095 fhJetConstituentCounts(0),
4096 fhJetTracksCounts(0),
4097 fhJetClustersCounts(0),
4098 fhJetPtZConstituent(0),
4101 fhJetPtZLeadingConstituent(0),
4102 fhJetPtZLeadingTrack(0),
4103 fhJetPtZLeadingCluster(0),
4105 fhEventCentralityVsZNA(0),
4106 fhEventCentralityVsZNAPt(0),
4111 fhJetNEFSignalInfo(0),
4112 fhClusterNEFInfo(0),
4113 fhClusterNEFSignalInfo(0),
4114 fhClusterShapeAll(0),
4115 fhClusterPtCellAll(0),
4138 fLChargedTrackPtBins(0),
4139 fLChargedTrackPtLow(0),
4140 fLChargedTrackPtUp(0),
4204 TString EventCentralityString;
4205 CentralityString = Form(
"Centrality (%s) ",
fCentralityTag.Data());
4206 EventCentralityString = Form(
"%s vs ZNA Centrality ",
fCentralityTag.Data());
4209 RhoString = Form(
"%d-%d Centrality, Rho Spectrum",0,20);
4210 fh020Rho =
new TH1F(
"fh020Rho",RhoString,fRhoPtBins,fRhoPtLow,fRhoPtUp);
4211 fh020Rho->GetXaxis()->SetTitle(
"p_{T}/Area (GeV/c)");
4212 fh020Rho->GetYaxis()->SetTitle(
"1/N_{Events} dN/d#rho");
4215 RhoString = Form(
"%d-%d Centrality, Rho Spectrum",80,100);
4216 fh80100Rho =
new TH1F(
"fh80100Rho",RhoString,fRhoPtBins,fRhoPtLow,fRhoPtUp);
4217 fh80100Rho->GetXaxis()->SetTitle(
"p_{T}/Area (GeV/c)");
4218 fh80100Rho->GetYaxis()->SetTitle(
"1/N_{Events} dN/d#rho");
4219 fh80100Rho->Sumw2();
4221 RhoString = Form(
"%d-%d Centrality, Rho Spectrum",0,100);
4222 fhRho =
new TH1F(
"fhRho",RhoString,fRhoPtBins,fRhoPtLow,fRhoPtUp);
4223 fhRho->GetXaxis()->SetTitle(
"p_{T}/Area (GeV/c)");
4224 fhRho->GetYaxis()->SetTitle(
"1/N_{Events} dN/d#rho");
4227 RhoString =
"Rho Spectrum vs Centrality";
4229 fhRhoCen->GetXaxis()->SetTitle(
"p_{T}/Area (GeV/c)");
4230 fhRhoCen->GetYaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4231 fhRhoCen->GetZaxis()->SetTitle(
"1/N_{Events} dN/d#rho");
4235 PtString = Form(
"%d-%d Centrality, Background Subtracted Jet Spectrum",0,20);
4236 fh020BSPt =
new TH1F(
"fh020BSPt",PtString,fPtBins,fPtLow,fPtUp);
4237 fh020BSPt->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4238 fh020BSPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4241 PtString = Form(
"%d-%d Centrality, Background Subtracted Jet Spectrum",80,100);
4242 fh80100BSPt =
new TH1F(
"fh80100BSPt",PtString,fPtBins,fPtLow,fPtUp);
4243 fh80100BSPt->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4244 fh80100BSPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4245 fh80100BSPt->Sumw2();
4247 PtString = Form(
"%d-%d Centrality, Background Subtracted Jet Spectrum",0,100);
4248 fhBSPt =
new TH1F(
"fhBSPt",PtString,fPtBins,fPtLow,fPtUp);
4249 fhBSPt->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4250 fhBSPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4253 PtString =
"Background Subtracted Jet Spectrum vs Centrality";
4255 fhBSPtCen->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4256 fhBSPtCen->GetYaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4257 fhBSPtCen->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4260 PtString = Form(
"%d-%d Centrality, Background Subtracted Signal Jet Spectrum",0,20);
4261 fh020BSPtSignal =
new TH1F(
"fh020BSPtSignal",PtString,fPtBins,fPtLow,fPtUp);
4262 fh020BSPtSignal->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4263 fh020BSPtSignal->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4264 fh020BSPtSignal->Sumw2();
4266 PtString = Form(
"%d-%d Centrality, Background Subtracted Signal Jet Spectrum",80,100);
4267 fh80100BSPtSignal =
new TH1F(
"fh80100BSPtSignal",PtString,fPtBins,fPtLow,fPtUp);
4268 fh80100BSPtSignal->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4269 fh80100BSPtSignal->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4270 fh80100BSPtSignal->Sumw2();
4272 PtString = Form(
"%d-%d Centrality, Background Subtracted Signal Jet Spectrum",0,100);
4273 fhBSPtSignal =
new TH1F(
"fhBSPtSignal",PtString,fPtBins,fPtLow,fPtUp);
4274 fhBSPtSignal->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4275 fhBSPtSignal->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4276 fhBSPtSignal->Sumw2();
4278 PtString =
"Background Subtracted Signal Jet Spectrum vs Centrality";
4280 fhBSPtCenSignal->GetXaxis()->SetTitle(
"p_{T} - #rhoA (GeV/c)");
4281 fhBSPtCenSignal->GetYaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4282 fhBSPtCenSignal->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4283 fhBSPtCenSignal->Sumw2();
4286 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",0,20);
4287 fh020DeltaPt =
new TH1F(
"fh020DeltaPt",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4288 fh020DeltaPt->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4289 fh020DeltaPt->GetYaxis()->SetTitle(
"Probability Density");
4290 fh020DeltaPt->Sumw2();
4292 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",80,100);
4293 fh80100DeltaPt =
new TH1F(
"fh80100DeltaPt",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4294 fh80100DeltaPt->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4295 fh80100DeltaPt->GetYaxis()->SetTitle(
"Probability Density");
4296 fh80100DeltaPt->Sumw2();
4298 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",0,100);
4299 fhDeltaPt =
new TH1F(
"fhDeltaPt",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4300 fhDeltaPt->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4301 fhDeltaPt->GetYaxis()->SetTitle(
"Probability Density");
4304 DeltaPtString =
"#deltap_{T} Spectrum vs Centrality";
4306 fhDeltaPtCen->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4307 fhDeltaPtCen->GetYaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4308 fhDeltaPtCen->GetZaxis()->SetTitle(
"Probability Density");
4309 fhDeltaPtCen->Sumw2();
4312 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",0,20);
4313 fh020DeltaPtSignal =
new TH1F(
"fh020DeltaPtSignal",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4314 fh020DeltaPtSignal->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4315 fh020DeltaPtSignal->GetYaxis()->SetTitle(
"Probability Density");
4316 fh020DeltaPtSignal->Sumw2();
4318 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",80,100);
4319 fh80100DeltaPtSignal =
new TH1F(
"fh80100DeltaPtSignal",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4320 fh80100DeltaPtSignal->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4321 fh80100DeltaPtSignal->GetYaxis()->SetTitle(
"Probability Density");
4322 fh80100DeltaPtSignal->Sumw2();
4324 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",0,100);
4325 fhDeltaPtSignal =
new TH1F(
"fhDeltaPtSignal",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4326 fhDeltaPtSignal->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4327 fhDeltaPtSignal->GetYaxis()->SetTitle(
"Probability Density");
4328 fhDeltaPtSignal->Sumw2();
4330 DeltaPtString =
"#deltap_{T} Spectrum vs Centrality";
4332 fhDeltaPtCenSignal->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4333 fhDeltaPtCenSignal->GetYaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4334 fhDeltaPtCenSignal->GetZaxis()->SetTitle(
"Probability Density");
4335 fhDeltaPtCenSignal->Sumw2();
4338 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",0,20);
4339 fh020DeltaPtNColl =
new TH1F(
"fh020DeltaPtNColl",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4340 fh020DeltaPtNColl->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4341 fh020DeltaPtNColl->GetYaxis()->SetTitle(
"Probability Density");
4342 fh020DeltaPtNColl->Sumw2();
4344 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",80,100);
4345 fh80100DeltaPtNColl =
new TH1F(
"fh80100DeltaPtNColl",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4346 fh80100DeltaPtNColl->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4347 fh80100DeltaPtNColl->GetYaxis()->SetTitle(
"Probability Density");
4348 fh80100DeltaPtNColl->Sumw2();
4350 DeltaPtString = Form(
"%d-%d Centrality, #deltap_{T} Spectrum",0,100);
4351 fhDeltaPtNColl =
new TH1F(
"fhDeltaPtNColl",DeltaPtString,fDeltaPtBins,fDeltaPtLow,fDeltaPtUp);
4352 fhDeltaPtNColl->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4353 fhDeltaPtNColl->GetYaxis()->SetTitle(
"Probability Density");
4354 fhDeltaPtNColl->Sumw2();
4356 DeltaPtString =
"#deltap_{T} Spectrum vs Centrality";
4358 fhDeltaPtCenNColl->GetXaxis()->SetTitle(
"#deltap_{T} (GeV/c)");
4359 fhDeltaPtCenNColl->GetYaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4360 fhDeltaPtCenNColl->GetZaxis()->SetTitle(
"Probability Density");
4361 fhDeltaPtCenNColl->Sumw2();
4364 BckgFlucPtString = Form(
"%d-%d Centrality, Background Fluctuation p_{T} Spectrum",0,20);
4365 fh020BckgFlucPt =
new TH1F(
"fh020BckgFlucPt",PtString,fPtBins,fPtLow,fPtUp);
4366 fh020BckgFlucPt->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
4367 fh020BckgFlucPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4368 fh020BckgFlucPt->Sumw2();
4370 BckgFlucPtString = Form(
"%d-%d Centrality, Background Fluctuation p_{T} Spectrum",80,100);
4371 fh80100BckgFlucPt =
new TH1F(
"fh80100BckgFlucPt",BckgFlucPtString,fBckgFlucPtBins,fBckgFlucPtLow,fBckgFlucPtUp);
4372 fh80100BckgFlucPt->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
4373 fh80100BckgFlucPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4374 fh80100BckgFlucPt->Sumw2();
4376 BckgFlucPtString = Form(
"%d-%d Centrality, Background Fluctuation p_{T} Spectrum",0,100);
4377 fhBckgFlucPt =
new TH1F(
"fhBckgFlucPt",BckgFlucPtString,fBckgFlucPtBins,fBckgFlucPtLow,fBckgFlucPtUp);
4378 fhBckgFlucPt->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
4379 fhBckgFlucPt->GetYaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4380 fhBckgFlucPt->Sumw2();
4382 BckgFlucPtString =
"Background Fluctuation p_{T} Spectrum vs Centrality";
4384 fhBckgFlucPtCen->GetXaxis()->SetTitle(
"#p_{T} (GeV/c)");
4385 fhBckgFlucPtCen->GetYaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4386 fhBckgFlucPtCen->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}d#etad#varphi");
4387 fhBckgFlucPtCen->Sumw2();
4390 RhoString =
"Background Density vs Centrality";
4392 fpRho->GetXaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4393 fpRho->GetYaxis()->SetTitle(
"p_{T}/Area (GeV/c)");
4396 fpLJetRho =
new TProfile(
"fpLJetRho",
"#rho vs Leading Jet p_{T}",fLJetPtBins,fLJetPtLow,fLJetPtUp);
4397 fpLJetRho->GetXaxis()->SetTitle(
"Leading Jet p_{T}");
4398 fpLJetRho->GetYaxis()->SetTitle(
"p_{T}/Area (GeV/c)");
4401 Int_t JetPtAreaBins=200;
4405 fhJetPtArea =
new TH2F(
"fhJetPtArea",
"Jet Area Distribution",fPtBins,fPtLow,fPtUp,JetPtAreaBins,JetPtAreaLow,JetPtAreaUp);
4406 fhJetPtArea->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
4407 fhJetPtArea->GetYaxis()->SetTitle(
"A_{jet}");
4408 fhJetPtArea->GetZaxis()->SetTitle(
"1/N_{Events} dN/dA_{jet}dp_{T}");
4409 fhJetPtArea->Sumw2();
4412 fhJetConstituentPt =
new TH2F(
"fhJetConstituentPt",
"Jet constituents p_{T} distribution",fPtBins,fPtLow,fPtUp,10*fPtBins,fPtLow,fPtUp);
4413 fhJetConstituentPt->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4414 fhJetConstituentPt->GetYaxis()->SetTitle(
"Constituent p_{T} (GeV/c)");
4415 fhJetConstituentPt->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T,jet}dp_{T,track}");
4416 fhJetConstituentPt->Sumw2();
4418 fhJetTracksPt =
new TH2F(
"fhJetTracksPt",
"Jet constituents Tracks p_{T} distribution",fPtBins,fPtLow,fPtUp,10*fPtBins,fPtLow,fPtUp);
4419 fhJetTracksPt->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4420 fhJetTracksPt->GetYaxis()->SetTitle(
"Constituent Track p_{T} (GeV/c)");
4421 fhJetTracksPt->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T,jet}dp_{T,track}");
4422 fhJetTracksPt->Sumw2();
4424 fhJetClustersPt =
new TH2F(
"fhJetClustersPt",
"Jet constituents Clusters p_{T} distribution",fPtBins,fPtLow,fPtUp,10*fPtBins,fPtLow,fPtUp);
4425 fhJetClustersPt->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4426 fhJetClustersPt->GetYaxis()->SetTitle(
"Constituent Cluster p_{T} (GeV/c)");
4427 fhJetClustersPt->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T,jet}dp_{T,cluster}");
4428 fhJetClustersPt->Sumw2();
4431 fhJetConstituentCounts =
new TH2F(
"fhJetConstituentCounts",
"Jet constituents distribution",fPtBins,fPtLow,fPtUp,TCBins,0,(
Double_t)TCBins);
4432 fhJetConstituentCounts->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4433 fhJetConstituentCounts->GetYaxis()->SetTitle(
"Constituent Count");
4434 fhJetConstituentCounts->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T,jet}dN_{constituent}");
4435 fhJetConstituentCounts->Sumw2();
4437 fhJetTracksCounts =
new TH2F(
"fhJetTracksCounts",
"Jet constituents Tracks distribution",fPtBins,fPtLow,fPtUp,TCBins,0,(
Double_t)TCBins);
4438 fhJetTracksCounts->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4439 fhJetTracksCounts->GetYaxis()->SetTitle(
"Constituent Track Count");
4440 fhJetTracksCounts->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T,jet}dN_{track}");
4441 fhJetTracksCounts->Sumw2();
4443 fhJetClustersCounts =
new TH2F(
"fhJetClustersCounts",
"Jet constituents Clusters distribution",fPtBins,fPtLow,fPtUp,TCBins,0,(
Double_t)TCBins);
4444 fhJetClustersCounts->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4445 fhJetClustersCounts->GetYaxis()->SetTitle(
"Constituent Cluster Count");
4446 fhJetClustersCounts->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T,jet}dN_{cluster}");
4447 fhJetClustersCounts->Sumw2();
4450 fhJetPtZConstituent =
new TH2F(
"fhJetPtZConstituent",
"Jet z_{constituent} distribution",fPtBins,fPtLow,fPtUp,TCBins,0,1.0);
4451 fhJetPtZConstituent->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4452 fhJetPtZConstituent->GetYaxis()->SetTitle(
"z_{constituent}");
4453 fhJetPtZConstituent->GetZaxis()->SetTitle(
"1/N_{Events} dN_{jet}/dp_{T,jet}dz_{constituent}");
4454 fhJetPtZConstituent->Sumw2();
4456 fhJetPtZTrack =
new TH2F(
"fhJetPtZTrack",
"Jet z_{track} distribution",fPtBins,fPtLow,fPtUp,TCBins,0,1.0);
4457 fhJetPtZTrack->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4458 fhJetPtZTrack->GetYaxis()->SetTitle(
"z_{track}");
4459 fhJetPtZTrack->GetZaxis()->SetTitle(
"1/N_{Events} dN_{jet}/dp_{T,jet}dz_{track}");
4460 fhJetPtZTrack->Sumw2();
4462 fhJetPtZCluster =
new TH2F(
"fhJetPtZCluster",
"Jet z_{cluster} distribution",fPtBins,fPtLow,fPtUp,TCBins,0,1.0);
4463 fhJetPtZCluster->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4464 fhJetPtZCluster->GetYaxis()->SetTitle(
"z_{cluster}");
4465 fhJetPtZCluster->GetZaxis()->SetTitle(
"1/N_{Events} dN_{jet}/dp_{T,jet}dz_{cluster}");
4466 fhJetPtZCluster->Sumw2();
4469 fhJetPtZLeadingConstituent =
new TH2F(
"fhJetPtZLeadingConstituent",
"Jet z_{Leading,constituent} distribution",fPtBins,fPtLow,fPtUp,TCBins,0,1.0);
4470 fhJetPtZLeadingConstituent->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4471 fhJetPtZLeadingConstituent->GetYaxis()->SetTitle(
"z_{Leading,constituent}");
4472 fhJetPtZLeadingConstituent->GetZaxis()->SetTitle(
"1/N_{Events} dN_{jet}/dp_{T,jet}dz_{constituent}");
4473 fhJetPtZLeadingConstituent->Sumw2();
4475 fhJetPtZLeadingTrack =
new TH2F(
"fhJetPtZLeadingTrack",
"Jet z_{Leading,track} distribution",fPtBins,fPtLow,fPtUp,TCBins,0,1.0);
4476 fhJetPtZLeadingTrack->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4477 fhJetPtZLeadingTrack->GetYaxis()->SetTitle(
"z_{Leading,track}");
4478 fhJetPtZLeadingTrack->GetZaxis()->SetTitle(
"1/N_{Events} dN_{jet}/dp_{T,jet}dz_{track}");
4479 fhJetPtZLeadingTrack->Sumw2();
4481 fhJetPtZLeadingCluster =
new TH2F(
"fhJetPtZLeadingCluster",
"Jet z_{Leading,cluster} distribution",fPtBins,fPtLow,fPtUp,TCBins,0,1.0);
4482 fhJetPtZLeadingCluster->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4483 fhJetPtZLeadingCluster->GetYaxis()->SetTitle(
"z_{Leading,cluster}");
4484 fhJetPtZLeadingCluster->GetZaxis()->SetTitle(
"1/N_{Events} dN_{jet}/dp_{T,jet}dz_{cluster}");
4485 fhJetPtZLeadingCluster->Sumw2();
4489 fhEventCentralityVsZNA->GetXaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4490 fhEventCentralityVsZNA->GetYaxis()->SetTitle(
"Centrality (ZNA)");
4491 fhEventCentralityVsZNA->GetZaxis()->SetTitle(
"Probability Density");
4492 fhEventCentralityVsZNA->Sumw2();
4498 fhJetPtEtaPhi =
new TH3F(
"fhJetPtEtaPhi",
"Jet p_{T} vs #eta-#varphi",fPtBins,fPtLow,fPtUp,TCBins,
fEMCalEtaMin,
fEMCalEtaMax,TCBins,
fEMCalPhiMin,
fEMCalPhiMax);
4499 fhJetPtEtaPhi->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
4500 fhJetPtEtaPhi->GetYaxis()->SetTitle(
"#eta");
4501 fhJetPtEtaPhi->GetZaxis()->SetTitle(
"#varphi");
4502 fhJetPtEtaPhi->Sumw2();
4504 EventCentralityString = Form(
"%s vs ZNA Centrality vs Leading Jet p_{T} ",
fCentralityTag.Data());
4505 fhEventCentralityVsZNAPt =
new TH3F(
"fhEventCentralityVsZNAPt",EventCentralityString,
fCentralityBins,
fCentralityLow,
fCentralityUp,
fCentralityBins,
fCentralityLow,
fCentralityUp,fPtBins,fPtLow,fPtUp);
4506 fhEventCentralityVsZNAPt->GetXaxis()->SetTitle(Form(
"%s",CentralityString.Data()));
4507 fhEventCentralityVsZNAPt->GetYaxis()->SetTitle(
"Centrality (ZNA)");
4508 fhEventCentralityVsZNAPt->GetZaxis()->SetTitle(
"Leading Jet p_{T} (GeV/c)");
4509 fhEventCentralityVsZNAPt->Sumw2();
4512 fOutput->Add(fhEventCentralityVsZNAPt);
4516 if (fDoNEFQAPlots==kTRUE)
4518 fNEFOutput =
new TList();
4519 fNEFOutput->SetOwner();
4520 fNEFOutput->SetName(
"ListNEFQAPlots");
4522 fhJetPtNEF =
new TH2F(
"fhJetPtNEF",
"Jet p_{T} vs NEF",fPtBins,fPtLow,fPtUp,fNEFBins,fNEFLow,fNEFUp);
4523 fhJetPtNEF->GetXaxis()->SetTitle(
"Jet p_{T} (GeV/c)");
4524 fhJetPtNEF->GetYaxis()->SetTitle(
"Neutral Energy Fraction");
4525 fhJetPtNEF->GetZaxis()->SetTitle(
"1/N_{Events} dN_{jet}/dp_{T}dNEF");
4526 fhJetPtNEF->Sumw2();
4528 SetNEFJetDimensions(10);
4529 SetNEFClusterDimensions(11);
4531 Int_t dimJetBins[fnDimJet];
4535 Int_t dimClusterBins[fnDimCluster];
4536 Double_t dimClusterLow[fnDimCluster];
4537 Double_t dimClusterUp[fnDimCluster];
4541 dimJetBins[0] = dimClusterBins[0] = fNEFBins;
4542 dimJetLow[0] = dimClusterLow[0] = fNEFLow;
4543 dimJetUp[0] = dimClusterUp[0] = fNEFUp;
4546 dimJetBins[1] = dimClusterBins[1] = fPtBins;
4547 dimJetLow[1] = dimClusterLow[1] = fPtLow;
4548 dimJetUp[1] = dimClusterUp[1] = fPtUp;
4551 dimJetBins[2] = dimJetBins[3] = dimClusterBins[2] = dimClusterBins[3] = TCBins;
4563 dimJetBins[5] = dimClusterBins[5] = TCBins;
4564 dimJetLow[5] = dimClusterLow[5] = 0.0;
4565 dimJetUp[5] = dimClusterUp[5] = 1.0;
4570 dimJetBins[i] = TCBins;
4576 dimJetBins[9] = TCBins;
4581 dimClusterBins[6] = fPtBins;
4582 dimClusterLow[6] = fPtLow;
4583 dimClusterUp[6] = fPtUp;
4586 dimClusterBins[7] = TCBins;
4587 dimClusterLow[7] = 0.0;
4588 dimClusterUp[7] = 1.0;
4591 dimClusterBins[8] = 400;
4592 dimClusterLow[8] = -2e-07;
4593 dimClusterUp[8] = 2e-07;
4596 dimClusterBins[9] = 100;
4597 dimClusterLow[9] = 0.0;
4598 dimClusterUp[9] = 1e-07;
4601 dimClusterBins[10] = TCBins;
4602 dimClusterLow[10] = 0.0;
4603 dimClusterUp[10] = 100.0;
4607 fhJetNEFSignalInfo =
new THnSparseF(
"fhJetNEFSignalInfo",
"Signal Jet NEF Information Histogram",fnDimJet,dimJetBins,dimJetLow,dimJetUp);
4608 fhJetNEFSignalInfo->Sumw2();
4610 fhClusterNEFSignalInfo =
new THnSparseF(
"fhClusterNEFSignalInfo",
"Signal Jet NEF Cluster Information Histogram",fnDimCluster,dimClusterBins,dimClusterLow,dimClusterUp);
4611 fhClusterNEFSignalInfo->Sumw2();
4614 fhClusterShapeAll =
new TH1F(
"fhClusterShapeAll",
"Cluster Shape of all CaloClustersCorr",10*TCBins,0,10*TCBins);
4615 fhClusterShapeAll->GetXaxis()->SetTitle(
"Cells");
4616 fhClusterShapeAll->GetYaxis()->SetTitle(
"1/N_{Events} dN/dCells");
4617 fhClusterShapeAll->Sumw2();
4619 fhClusterPtCellAll =
new TH2F(
"fhClusterPtCellAll",
"Cluster p_{T} vs Cluster Shape of all CaloClustersCorr",fPtBins,fPtLow,fPtUp,10*TCBins,0,10*TCBins);
4620 fhClusterPtCellAll->GetXaxis()->SetTitle(
"p_{T} (GeV/c)");
4621 fhClusterPtCellAll->GetYaxis()->SetTitle(
"Cells");
4622 fhClusterPtCellAll->GetZaxis()->SetTitle(
"1/N_{Events} dN/dp_{T}dCells");
4623 fhClusterPtCellAll->Sumw2();
4627 fhJetNEFInfo =
new THnSparseF(
"fhJetNEFInfo",
"Jet NEF Information Histogram",fnDimJet,dimJetBins,dimJetLow,dimJetUp);
4628 fhJetNEFInfo->Sumw2();
4630 fhClusterNEFInfo =
new THnSparseF(
"fhClusterNEFInfo",
"Jet NEF Cluster Information Histogram",fnDimCluster,dimClusterBins,dimClusterLow,dimClusterUp);
4631 fhClusterNEFInfo->Sumw2();
4633 fNEFOutput->Add(fhJetNEFInfo);
4634 fNEFOutput->Add(fhClusterNEFInfo);
4636 fNEFOutput->Add(fhJetNEFSignalInfo);
4637 fNEFOutput->Add(fhClusterNEFSignalInfo);
4638 fNEFOutput->Add(fhClusterShapeAll);
4639 fNEFOutput->Add(fhClusterPtCellAll);
4641 fNEFOutput->Add(fhJetPtNEF);
4654 fOutput->Add(fh020BSPtSignal);
4655 fOutput->Add(fh80100BSPtSignal);
4657 fOutput->Add(fhBSPtCenSignal);
4662 fOutput->Add(fh020DeltaPtSignal);
4663 fOutput->Add(fh80100DeltaPtSignal);
4664 fOutput->Add(fhDeltaPtSignal);
4665 fOutput->Add(fhDeltaPtCenSignal);
4666 fOutput->Add(fh020DeltaPtNColl);
4667 fOutput->Add(fh80100DeltaPtNColl);
4669 fOutput->Add(fhDeltaPtCenNColl);
4670 fOutput->Add(fh020BckgFlucPt);
4671 fOutput->Add(fh80100BckgFlucPt);
4673 fOutput->Add(fhBckgFlucPtCen);
4677 fOutput->Add(fhJetConstituentPt);
4679 fOutput->Add(fhJetClustersPt);
4680 fOutput->Add(fhJetConstituentCounts);
4681 fOutput->Add(fhJetTracksCounts);
4682 fOutput->Add(fhJetClustersCounts);
4683 fOutput->Add(fhJetPtZConstituent);
4685 fOutput->Add(fhJetPtZCluster);
4686 fOutput->Add(fhJetPtZLeadingConstituent);
4687 fOutput->Add(fhJetPtZLeadingTrack);
4688 fOutput->Add(fhJetPtZLeadingCluster);
4689 fOutput->Add(fhEventCentralityVsZNA);
4732 fBckgFlucPtBins=bins;
4746 fLChargedTrackPtBins=bins;
4747 fLChargedTrackPtLow=low;
4748 fLChargedTrackPtUp=up;
4792 fhRhoCen->Fill(rho,eventCentrality);
4793 fpRho->Fill(eventCentrality,rho);
4795 if (eventCentrality<=20)
4797 fh020Rho->Fill(rho);
4799 else if (eventCentrality>=80)
4801 fh80100Rho->Fill(rho);
4811 for (i=0;i<nIndexJetList;i++)
4814 tempPt=myJet->
Pt()-rho*myJet->
Area();
4817 fhBSPt->Fill(tempPt);
4818 fhBSPtCen->Fill(tempPt,eventCentrality);
4819 if (eventCentrality<=20)
4821 fh020BSPt->Fill(tempPt);
4823 else if (eventCentrality>=80)
4825 fh80100BSPt->Fill(tempPt);
4829 if (tempChargedHighPt>=signalCut)
4831 fhBSPtSignal->Fill(tempPt);
4832 fhBSPtCenSignal->Fill(tempPt,eventCentrality);
4833 if (eventCentrality<=20)
4835 fh020BSPtSignal->Fill(tempPt);
4837 else if (eventCentrality>=80)
4839 fh80100BSPtSignal->Fill(tempPt);
4845 if (tempPt>=signalCut)
4847 fhBSPtSignal->Fill(tempPt);
4848 fhBSPtCenSignal->Fill(tempPt,eventCentrality);
4849 if (eventCentrality<=20)
4851 fh020BSPtSignal->Fill(tempPt);
4853 else if (eventCentrality>=80)
4855 fh80100BSPtSignal->Fill(tempPt);
4860 tempChargedHighPt=0.0;
4871 tempPt=RCArray[i]-rho*TMath::Power(jetRadius,2);
4872 fhDeltaPt->Fill(tempPt);
4873 fhDeltaPtCen->Fill(tempPt,eventCentrality);
4874 if (eventCentrality<=20)
4876 fh020DeltaPt->Fill(tempPt);
4878 else if (eventCentrality>=80)
4880 fh80100DeltaPt->Fill(tempPt);
4893 tempPt=RCArray[i]-rho*TMath::Power(jetRadius,2);
4894 fhDeltaPtSignal->Fill(tempPt);
4895 fhDeltaPtCenSignal->Fill(tempPt,eventCentrality);
4896 if (eventCentrality<=20)
4898 fh020DeltaPtSignal->Fill(tempPt);
4900 else if (eventCentrality>=80)
4902 fh80100DeltaPtSignal->Fill(tempPt);
4915 tempPt=RCArray[i]-rho*TMath::Power(jetRadius,2);
4916 fhDeltaPtNColl->Fill(tempPt);
4917 fhDeltaPtCenNColl->Fill(tempPt,eventCentrality);
4918 if (eventCentrality<=20)
4920 fh020DeltaPtNColl->Fill(tempPt);
4922 else if (eventCentrality>=80)
4924 fh80100DeltaPtNColl->Fill(tempPt);
4934 tempPt=rho*TMath::Power(jetRadius,2);
4935 fhBckgFlucPt->Fill(tempPt);
4936 fhBckgFlucPtCen->Fill(tempPt,eventCentrality);
4937 if (eventCentrality<=20)
4939 fh020BckgFlucPt->Fill(tempPt);
4941 else if (eventCentrality>=80)
4943 fh80100BckgFlucPt->Fill(tempPt);
4949 fpLJetRho->Fill(jetPt,rho);
4954 fDoNEFQAPlots = doNEFAna;
4962 void AliAnalysisTaskFullpAJets::AlipAJetHistos::DoNEFAnalysis(
Double_t nefCut,
Double_t signalCut, TClonesArray *jetList,
Int_t *indexJetList,
Int_t nIndexJetList,
TObjArray *clusterList, TClonesArray *orgClusterList, AliVEvent *event, AliEMCALGeometry *geometry, AliEMCALRecoUtils *recoUtils, AliVCaloCells *cells)
4964 if (fDoNEFQAPlots==kFALSE)
4977 for (i=0;i<nIndexJetList;i++)
4986 if (tempChargedHighPt>=signalCut && nef<=nefCut)
4988 fhJetPtNEF->Fill(jetPt,nef);
4993 if (jetPt>=signalCut && nef<=nefCut)
4995 fhJetPtNEF->Fill(jetPt,nef);
5001 tempChargedHighPt=0.0;
5010 for (i=0;i<fnDimJet;i++)
5022 Int_t chargedMult=0;
5023 Int_t neutralMult=0;
5024 Int_t iSupMod = -1, absId = -1, ieta = -1, iphi = -1;