11 #include <THnSparse.h>
16 #include <AliAnalysisManager.h>
17 #include <AliInputEventHandler.h>
18 #include <AliEventPoolManager.h>
20 #include <AliVAODHeader.h>
21 #include <AliVTrack.h>
37 Double_t AliAnalysisTaskEmcalJetHCorrelations::p0_10SG[17] = {0.906767, 0.0754127, 1.11638, -0.0233078, 0.795454, 0.00935385, -0.000327857, 1.08903, 0.0107272, 0.443252, -0.143411, 0.965822, 0.359156, -0.581221, 1.0739, 0.00632828, 0.706356};
39 Double_t AliAnalysisTaskEmcalJetHCorrelations::p10_30SG[17] = {0.908011, 0.0769254, 1.11912, -0.0249449, 0.741488, 0.0361252, -0.00367954, 1.10424, 0.011472, 0.452059, -0.133282, 0.980633, 0.358222, -0.620256, 1.06871, 0.00564449, 0.753168};
41 Double_t AliAnalysisTaskEmcalJetHCorrelations::p30_50SG[17] = {0.958708, 0.0799197, 1.10817, -0.0357678, 0.75051, 0.0607808, -0.00929713, 0.998801, 0.00692244, 0.615452, -0.0480328, 0.968431, 0.321634, -0.619066, 1.03412, 0.00656201, 0.798666};
43 Double_t AliAnalysisTaskEmcalJetHCorrelations::p50_90SG[17] = {0.944565, 0.0807258, 1.12709, -0.0324746, 0.666452, 0.0842476, -0.00963837, 1.02829, 0.00666852, 0.549625, -0.0603107, 0.981374, 0.309374, -0.619181, 1.05367, 0.005925, 0.744887};
46 Double_t AliAnalysisTaskEmcalJetHCorrelations::p0_10G[17] = {0.971679, 0.0767571, 1.13355, -0.0274484, 0.856652, 0.00536795, 3.90795e-05, 1.06889, 0.011007, 0.447046, -0.146626, 0.919777, 0.192601, -0.268515, 1.00243, 0.00620849, 0.709477};
48 Double_t AliAnalysisTaskEmcalJetHCorrelations::p10_30G[17] = {0.97929, 0.0776039, 1.12213, -0.0300645, 0.844722, 0.0134788, -0.0012333, 1.07955, 0.0116835, 0.456608, -0.132743, 0.930964, 0.174175, -0.267154, 0.993118, 0.00574892, 0.765256};
50 Double_t AliAnalysisTaskEmcalJetHCorrelations::p30_50G[17] = {0.997696, 0.0816769, 1.14341, -0.0353734, 0.752151, 0.0744259, -0.0102926, 1.01561, 0.00713274, 0.57203, -0.0640248, 0.947747, 0.102007, -0.194698, 0.999164, 0.00568476, 0.7237};
52 Double_t AliAnalysisTaskEmcalJetHCorrelations::p50_90G[17] = {0.97041, 0.0813559, 1.12151, -0.0368797, 0.709327, 0.0701501, -0.00784043, 1.06276, 0.00676173, 0.53607, -0.0703117, 0.982534, 0.0947881, -0.18073, 1.03229, 0.00580109, 0.737801};
61 fDoEventMixing(kFALSE),
62 fNMixingTracks(50000), fMinNTracksMixedEvents(5000), fMinNEventsMixedEvents(5), fNCentBinsMixedEvent(10),
64 fTriggerType(AliVEvent::kEMCEJE), fMixingEventType(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral),
65 fDisableFastPartition(kFALSE),
67 fNoMixedEventJESCorrection(kFALSE),
69 fDoLessSparseAxes(kFALSE), fDoWiderTrackBin(kFALSE),
88 fDoEventMixing(kFALSE),
89 fNMixingTracks(50000), fMinNTracksMixedEvents(5000), fMinNEventsMixedEvents(5), fNCentBinsMixedEvent(10),
91 fTriggerType(AliVEvent::kEMCEJE), fMixingEventType(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral),
92 fDisableFastPartition(kFALSE),
94 fNoMixedEventJESCorrection(kFALSE),
96 fDoLessSparseAxes(kFALSE), fDoWiderTrackBin(kFALSE),
123 fHistJetH[centralityBin][jetPtBin][etaBin] =
nullptr;
138 fHistTrackPt =
new TH1F(
"fHistTrackPt",
"P_{T} distribution", 1000, 0.0, 100.0);
140 fHistJetHEtaPhi =
new TH2F(
"fHistJetHEtaPhi",
"Jet-Hadron deta-dphi",900,-1.8,1.8,720,-1.6,4.8);
142 fHistJHPsi =
new TH3F(
"fHistJHPsi",
"Jet-Hadron ntr-trpt-dpsi",20,0,100,200,0,20,120,0,180);
152 name = Form(
"fHistTrackEtaPhi_%i", trackPtBin);
158 name = Form(
"fHistJetPt_%i",centralityBin);
159 fHistJetPt[centralityBin] =
new TH1F(name,name,200,0,200);
162 name = Form(
"fHistJetPtBias_%i",centralityBin);
168 name = Form(
"fHistJetH_%i_%i_%i",centralityBin,jetPtBin,etaBin);
169 fHistJetH[centralityBin][jetPtBin][etaBin]=
new TH2F(name,name,72,-0.5*TMath::Pi(),1.5*TMath::Pi(),300,0,30);
172 name = Form(
"fHistJetHBias_%i_%i_%i",centralityBin,jetPtBin,etaBin);
173 fHistJetHBias[centralityBin][jetPtBin][etaBin]=
new TH2F(name,name,72,-0.5*TMath::Pi(),1.5*TMath::Pi(),300,0,30);
181 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5;
183 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<7;
192 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5;
194 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<7;
205 Int_t poolSize = 1000;
207 Int_t nZVertexBins = 10;
210 Int_t nEventActivityBins = 8;
223 eventActivityBins = multiplicityBins;
226 fPoolMgr =
new AliEventPoolManager(poolSize,
fNMixingTracks, nEventActivityBins, eventActivityBins, nZVertexBins, zVertexBins);
240 eta = TMath::Abs(eta);
241 if (eta <= 0.4) etabin = 0;
242 else if (eta > 0.4 && eta < 0.8) etabin = 1;
243 else if (eta >= 0.8) etabin = 2;
256 if (pt < 0.5) ptBin = 0;
257 else if (pt < 1 ) ptBin = 1;
258 else if (pt < 2 ) ptBin = 2;
259 else if (pt < 3 ) ptBin = 3;
260 else if (pt < 5 ) ptBin = 4;
261 else if (pt < 8 ) ptBin = 5;
262 else if (pt < 20 ) ptBin = 6;
278 if (pt >= 15 && pt < 20) ptBin = 0;
279 else if (pt >= 20 && pt < 25) ptBin = 1;
280 else if (pt >= 25 && pt < 30) ptBin = 2;
281 else if (pt >= 30 && pt < 60) ptBin = 3;
282 else if (pt >= 60) ptBin = 4;
296 eventTrigger = ((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected();
300 if (embeddingHelper) {
301 auto aodHeader =
dynamic_cast<AliVAODHeader *
>(embeddingHelper->GetEventHeader());
303 eventTrigger = aodHeader->GetOfflineTrigger();
306 AliErrorStream() <<
"Failed to retrieve requested AOD header from embedding helper\n";
310 AliErrorStream() <<
"Failed to retrieve requested embedding helper\n";
326 AliError(Form(
"%s: Unable to retrieve tracks!", GetName()));
333 AliError(Form(
"%s: Unable to retrieve jets!", GetName()));
342 Bool_t biasedJet = kFALSE;
365 AliDebugStream(4) << GetName() <<
": Fast partition disabled\n";
375 AliDebugStream(5) <<
"Jet accepted!\nJet: " << jet->toString().Data() <<
"\n";
380 if (jet->MatchedJet()) {
381 AliDebugStream(4) <<
"Jet is matched!\nJet: " << jet->toString().Data() <<
"\n";
384 AliDebugStream(5) <<
"Rejected jet because it was not matched to a external event jet.\n";
392 if (jet == leadingJet) leadJet = kTRUE;
398 jetVector.SetXYZ(jet->Px(), jet->Py(), jet->Pz());
402 if (biasedJet == kTRUE) {
408 if (jet->Pt() > 15) {
410 AliDebugStream(4) <<
"Passed min jet pt cut of 15. \nJet: " << jet->toString().Data() <<
"\n";
415 track = trackIter.first;
425 AliErrorStream() <<
"Jet Pt Bin negative: " << jet->Pt() <<
"\n";
431 AliErrorStream() <<
"Eta Bin negative: " << deltaEta <<
"\n";
438 if ( (jet->Pt() > 20.) && (jet->Pt() < 60.) ) {
439 fHistJHPsi->Fill(tracks->
GetNTracks(), track.Pt(), track.Vect().Angle(jetVector) * TMath::RadToDeg() );
447 AliDebugStream(6) << GetName() <<
": efficiency: " << efficiency <<
"\n";
449 if (biasedJet == kTRUE) {
453 eventActivity =
fCent;
460 Double_t triggerEntries[6] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet)};
463 Double_t triggerEntries[7] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet), deltaR};
497 AliEventPool *pool = 0;
507 else if (
fBeamType ==
kpp) AliFatal(Form(
"No pool found for ntracks_pp = %d, zVertex = %f", tracks->
GetNTracks(), zVertex));
512 Int_t nMix = pool->GetCurrentNEvents();
514 if(eventTrigger & fTriggerType) {
523 if (jet == leadingJet) { leadJet = kTRUE; }
529 if (jet->Pt() < 15)
continue;
532 if (biasedJet == kTRUE) {
535 for (
Int_t jMix=0; jMix < nMix; jMix++) {
536 TObjArray* bgTracks = pool->GetEvent(jMix);
538 for(
Int_t ibg=0; ibg < bgTracks->GetEntries(); ibg++){
543 AliError(Form(
"%s:Failed to retrieve tracks from mixed events", GetName()));
548 track.SetPtEtaPhiE(bgTrack->
Pt(), bgTrack->
Eta(), bgTrack->
Phi(), 0);
557 eventActivity =
fCent;
564 Double_t triggerEntries[6] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet)};
567 Double_t triggerEntries[7] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet), deltaR};
581 pool->UpdatePool(tracksClone);
617 deltaPhi =
DeltaPhi(particleTwo->Phi(), particleOne.Phi(), -1.0*TMath::Pi(), TMath::Pi());
618 deltaEta = particleOne.Eta() - particleTwo->Eta();
619 deltaR = TMath::Sqrt(deltaPhi*deltaPhi + deltaEta*deltaEta);
622 deltaPhi =
DeltaPhi(particleTwo->Phi(), particleOne.Phi(), -0.5*TMath::Pi(), 3*TMath::Pi()/2.);
642 const Int_t dim = count;
649 while(c<dim && i<32){
654 hnTitle += Form(
";%s",label.Data());
662 return new THnSparseF(name, hnTitle.Data(), dim,
nbins, xmin, xmax);
681 label =
"V0 centrality (%)";
688 label =
"corrected jet pt";
723 label =
"leading jet";
730 label =
"trigger track";
744 label =
"leading track";
763 tracksClone->SetOwner(kTRUE);
769 for (
auto particle : tracks->
accepted())
773 if(trackPtBin > -1)
fHistTrackEtaPhi[trackPtBin]->Fill(particle->Eta(),particle->Phi());
776 clone =
new AliBasicParticle(particle->Eta(), particle->Phi(), particle->Pt(), particle->Charge());
778 clone ->SetUniqueID(particle->GetUniqueID());
780 tracksClone->Add(clone);
822 Int_t runNUM = fCurrentRunNumber;
823 Int_t runSwitchGood = -999;
834 if ((runNUM == 169975 || runNUM == 169981 || runNUM == 170038 || runNUM == 170040 || runNUM == 170083 || runNUM == 170084 || runNUM == 170085 || runNUM == 170088 || runNUM == 170089 || runNUM == 170091 || runNUM == 170152 || runNUM == 170155 || runNUM == 170159 || runNUM == 170163 || runNUM == 170193 || runNUM == 170195 || runNUM == 170203 || runNUM == 170204 || runNUM == 170228 || runNUM == 170230 || runNUM == 170268 || runNUM == 170269 || runNUM == 170270 || runNUM == 170306 || runNUM == 170308 || runNUM == 170309)) runSwitchGood = 0;
837 if ((runNUM == 167902 || runNUM == 167903 || runNUM == 167915 || runNUM == 167920 || runNUM == 167987 || runNUM == 167988 || runNUM == 168066 || runNUM == 168068 || runNUM == 168069 || runNUM == 168076 || runNUM == 168104 || runNUM == 168107 || runNUM == 168108 || runNUM == 168115 || runNUM == 168212 || runNUM == 168310 || runNUM == 168311 || runNUM == 168322 || runNUM == 168325 || runNUM == 168341 || runNUM == 168342 || runNUM == 168361 || runNUM == 168362 || runNUM == 168458 || runNUM == 168460 || runNUM == 168461 || runNUM == 168464 || runNUM == 168467 || runNUM == 168511 || runNUM == 168512 || runNUM == 168777 || runNUM == 168826 || runNUM == 168984 || runNUM == 168988 || runNUM == 168992 || runNUM == 169035 || runNUM == 169091 || runNUM == 169094 || runNUM == 169138 || runNUM == 169143 || runNUM == 169144 || runNUM == 169145 || runNUM == 169148 || runNUM == 169156 || runNUM == 169160 || runNUM == 169167 || runNUM == 169238 || runNUM == 169411 || runNUM == 169415 || runNUM == 169417 || runNUM == 169835 || runNUM == 169837 || runNUM == 169838 || runNUM == 169846 || runNUM == 169855 || runNUM == 169858 || runNUM == 169859 || runNUM == 169923 || runNUM == 169956 || runNUM == 170027 || runNUM == 170036 || runNUM == 170081)) runSwitchGood = 1;
842 if (runSwitchGood != -999) {
843 effSwitch = 2 + runSwitchGood*4 +
fCentBin;
859 TRefficiency = ptaxis*etaaxis;
866 TRefficiency = ptaxis*etaaxis;
873 TRefficiency = ptaxis*etaaxis;
880 TRefficiency = ptaxis*etaaxis;
887 TRefficiency = ptaxis*etaaxis;
894 TRefficiency = ptaxis*etaaxis;
901 TRefficiency = ptaxis*etaaxis;
908 TRefficiency = ptaxis*etaaxis;
925 coefficient = (1 + -0.442232 * trackPT
926 + 0.501831 * std::pow(trackPT, 2)
927 + -0.252024 * std::pow(trackPT, 3)
928 + 0.062964 * std::pow(trackPT, 4)
929 + -0.007681 * std::pow(trackPT, 5)
930 + 0.000365 * std::pow(trackPT, 6));
934 TRefficiency = coefficient * (1 + 0.402825 * std::abs(trackETA)
935 + -2.213152 * std::pow(trackETA, 2)
936 + 4.311098 * std::abs(std::pow(trackETA, 3))
937 + -2.778200 * std::pow(trackETA, 4));
961 AliDebugStream(3) << GetName() <<
":" << hist->GetName() <<
": " << std::boolalpha <<
"Using normal weights: JESHist: " << (
fJESCorrectionHist ?
fJESCorrectionHist->GetName() :
"Null") <<
", noCorrection: " << noCorrection << std::endl;
962 hist->Fill(fillValue, weight);
969 std::vector <Double_t> yBinsContent;
970 AliDebug(3, TString::Format(
"%s: Attempt to access weights from JES correction hist %s with jet pt %f!", GetName(), hist->GetName(), fillValue));
972 AliDebug(3, TString::Format(
"weights size: %zd", yBinsContent.size()));
979 if (yBinsContent.at(index-1) > 0) {
983 AliDebug(4, TString::Format(
"fillLocation: %f, weight: %f", fillLocation, yBinsContent.at(index-1)));
985 hist->Fill(fillLocation, weight*yBinsContent.at(index-1));
1009 AliDebugStream(3) << GetName() <<
":" << hist->GetName() <<
": " << std::boolalpha <<
"Using normal weights: JESHist: " << (
fJESCorrectionHist ?
fJESCorrectionHist->GetName() :
"Null") <<
", noCorrection: " << noCorrection << std::endl;
1010 hist->Fill(fillValue, weight);
1020 std::vector <Double_t> yBinsContent;
1021 AliDebug(3, TString::Format(
"%s: Attempt to access weights from JES correction hist %s with jet pt %f!", GetName(), hist->GetName(), jetPt));
1023 AliDebug(3, TString::Format(
"weights size: %zd", yBinsContent.size()));
1030 if (yBinsContent.at(index-1) > 0) {
1034 AliDebug(4,TString::Format(
"fillValue[1]: %f, weight: %f", fillValue[1], yBinsContent.at(index-1)));
1036 hist->Fill(fillValue, weight*yBinsContent.at(index-1));
1053 for (
Int_t index = 1; index <= hist->GetYaxis()->GetNbins(); index++)
1056 yBinsContent.push_back(hist->GetBinContent(hist->GetBin(xBin,index)));
1058 if (scaleFactor >= 0)
1061 hist->SetBinContent(hist->GetBin(xBin,index), yBinsContent.at(index-1)/scaleFactor);
1085 if (filename.Contains(
"alien://") && !gGrid) {
1086 TGrid::Connect(
"alien://");
1096 TString histBaseName = histName;
1098 histName = TString::Format(
"%s_Track%.2f", histName.Data(), trackBias);
1101 histName = TString::Format(
"%s_Clus%.2f", histName.Data(), clusterBias);
1105 TFile * jesCorrectionFile = TFile::Open(filename);
1106 if (!jesCorrectionFile || jesCorrectionFile->IsZombie()) {
1107 AliError(TString::Format(
"%s: Could not open JES correction file %s", GetName(), filename.Data()));
1112 TH2D * JESCorrectionHist =
dynamic_cast<TH2D*
>(jesCorrectionFile->Get(histName.Data()));
1113 if (JESCorrectionHist) {
1114 AliInfo(TString::Format(
"%s: JES correction hist name \"%s\" loaded from file %s.", GetName(), histName.Data(), filename.Data()));
1117 AliError(TString::Format(
"%s: JES correction hist name \"%s\" not found in file %s.", GetName(), histName.Data(), filename.Data()));
1120 JESCorrectionHist =
dynamic_cast<TH2D*
>(jesCorrectionFile->Get(histBaseName.Data()));
1121 if (JESCorrectionHist) {
1122 AliInfo(TString::Format(
"%s: JES correction hist name \"%s\" loaded from file %s.", GetName(), histBaseName.Data(), filename.Data()));
1123 histName = histBaseName;
1127 AliError(TString::Format(
"%s: JES correction with base hist name %s not found in file %s.", GetName(), histBaseName.Data(), filename.Data()));
1133 TH2D * tempHist =
static_cast<TH2D *
>(JESCorrectionHist->Clone());
1134 tempHist->SetDirectory(0);
1138 jesCorrectionFile->Close();
1147 if (tempName.Index(tag) == -1) {
1149 Ssiz_t suffixLocation = tempName.Last(
'_');
1150 tempName.Insert(suffixLocation, tag.Data());
1153 AliDebug(3, TString::Format(
"%s: Setting task name to %s", GetName(), tempName.Data()));
1154 SetName(tempName.Data());
1166 const char *nTracks,
1167 const char *nCaloClusters,
1172 const Int_t nTracksMixedEvent,
1173 const Int_t minNTracksMixedEvent,
1174 const Int_t minNEventsMixedEvent,
1175 const UInt_t nCentBinsMixedEvent,
1180 const Bool_t lessSparseAxes,
1181 const Bool_t widerTrackBin,
1183 const Int_t doEffCorrSW,
1184 const Bool_t JESCorrection,
1185 const char * JESCorrectionFilename,
1186 const char * JESCorrectionHistName,
1195 AliErrorClass(
"No analysis manager to connect to.");
1205 TString clusName(nCaloClusters);
1207 if (trackName ==
"usedefault") {
1211 if (clusName ==
"usedefault") {
1215 TString name(
"AliAnalysisTaskJetH");
1216 if (!trackName.IsNull()) {
1217 name += TString::Format(
"_%s", trackName.Data());
1219 if (!clusName.IsNull()) {
1220 name += TString::Format(
"_%s", clusName.Data());
1222 if (strcmp(suffix,
"") != 0) {
1223 name += TString::Format(
"_%s", suffix);
1231 correlationTask->
SetEventMixing(static_cast<Bool_t>(nTracksMixedEvent));
1246 if (JESCorrection == kTRUE)
1250 AliErrorClass(
"Failed to successfully retrieve and initialize the JES correction! Task initialization continuing without JES correction (can be set manually later).");
1258 mgr->AddTask(correlationTask);
1261 mgr->ConnectInput (correlationTask, 0, mgr->GetCommonInputContainer() );
1262 AliAnalysisDataContainer * cojeth = mgr->CreateContainer(correlationTask->GetName(),
1264 AliAnalysisManager::kOutputContainer,
1265 Form(
"%s", AliAnalysisManager::GetCommonFileName()));
1266 mgr->ConnectOutput(correlationTask, 1, cojeth);
1268 return correlationTask;
1277 std::string clusName,
1278 const double jetConstituentPtCut,
1279 const double trackEta,
1280 const double jetRadius)
1282 bool returnValue =
false;
1283 AliInfoStream() <<
"Configuring Jet-H Correlations task for a standard analysis.\n";
1287 if (clusName ==
"usedefault") {
1292 clustersForJets->SetName(
"clustersForJets");
1293 clustersForJets->SetMinE(jetConstituentPtCut);
1297 if (trackName ==
"usedefault") {
1301 particlesForJets->SetName(
"particlesForJets");
1302 particlesForJets->SetMinPt(jetConstituentPtCut);
1303 particlesForJets->SetEtaLimits(-1.0*trackEta, trackEta);
1307 if (particlesForCorrelations)
1309 particlesForCorrelations->SetName(
"tracksForCorrelations");
1310 particlesForCorrelations->SetMinPt(0.15);
1311 particlesForCorrelations->SetEtaLimits(-1.0*trackEta, trackEta);
1316 AliWarningStream() <<
"No particle container was successfully created!\n";
1328 jetContainer->
SetJetAreaCut(jetRadius * jetRadius * TMath::Pi() * 0.6);
1344 std::string clusName,
1345 const double jetConstituentPtCut,
1346 const double trackEta,
1347 const double jetRadius,
1348 const std::string & jetTag)
1350 bool returnValue =
false;
1351 AliInfoStream() <<
"Configuring Jet-H Correlations task for an embedding analysis.\n";
1358 if (clusName ==
"usedefault") {
1363 clustersForJets->SetName(
"clustersForJets");
1364 clustersForJets->SetMinE(jetConstituentPtCut);
1376 if (trackName ==
"usedefault") {
1380 particlesForJets->SetName(
"particlesForJets");
1381 particlesForJets->SetMinPt(jetConstituentPtCut);
1382 particlesForJets->SetEtaLimits(-1.0*trackEta, trackEta);
1387 if (particlesForCorrelations)
1389 particlesForCorrelations->SetName(
"tracksForCorrelations");
1390 particlesForCorrelations->SetMinPt(0.15);
1391 particlesForCorrelations->SetEtaLimits(-1.0*trackEta, trackEta);
1392 particlesForCorrelations->SetIsEmbedding(
true);
1397 AliWarningStream() <<
"No particle container was successfully created!\n";
1411 jetContainer->
SetJetAreaCut(jetRadius * jetRadius * TMath::Pi() * 0.6);
1433 partCont = trackCont;
1435 else if (collectionName !=
"") {
static AliAnalysisTaskEmcalJetHCorrelations * AddTaskEmcalJetHCorrelations(const char *nTracks="usedefault", const char *nCaloClusters="usedefault", const Double_t trackBias=5, const Double_t clusterBias=5, const Int_t nTracksMixedEvent=0, const Int_t minNTracksMixedEvent=5000, const Int_t minNEventsMixedEvent=5, const UInt_t nCentBinsMixedEvent=10, UInt_t trigEvent=AliVEvent::kAny, UInt_t mixEvent=AliVEvent::kAny, const Bool_t lessSparseAxes=kFALSE, const Bool_t widerTrackBin=kFALSE, const Int_t doEffCorrSW=0, const Bool_t JESCorrection=kFALSE, const char *JESCorrectionFilename="alien:///alice/cern.ch/user/r/rehlersi/JESCorrection.root", const char *JESCorrectionHistName="JESCorrection", const char *suffix="biased")
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)
Bool_t RetrieveAndInitializeJESCorrectionHist(TString filename, TString histName, Double_t trackBias=AliAnalysisTaskEmcalJetHCorrelations::kDisableBias, Double_t clusterBias=AliAnalysisTaskEmcalJetHCorrelations::kDisableBias)
void FillHist(TH1 *hist, Double_t fillValue, Double_t weight=1.0, Bool_t noCorrection=kFALSE)
virtual void UserCreateOutputObjects()
virtual void SetTrackBias(Double_t b)
Require a track with pt > b in jet.
TH2 * fHistJetHBias[6][5][3]
! Jet-hadron correlations of jets which meet the constituent bias criteria (the arrays correspond to ...
void SetDoLessSparseAxes(Bool_t dlsa)
static Double_t p50_90SG[17]
50-90% centrality semi-good runs
AliParticleContainer * CreateParticleOrTrackContainer(std::string const &collectionName) const
static Double_t DeltaPhi(Double_t phia, Double_t phib, Double_t rMin=-TMath::Pi()/2, Double_t rMax=3 *TMath::Pi()/2)
Bool_t fDisableFastPartition
True if task should be disabled for the fast partition, where the EMCal is not included.
void AccessSetOfYBinValues(TH2D *hist, Int_t xBin, std::vector< Double_t > &yBinsContent, Double_t scaleFactor=-1.0)
AliJetContainer * GetJetContainer(Int_t i=0) const
void SetDoEffCorr(Int_t effcorr)
virtual void SetMinNTracksForMixedEvents(Int_t nmt)
void AdoptParticleContainer(AliParticleContainer *cont)
Int_t GetJetPtBin(Double_t pt) const
THnSparse * fhnJH
! JetH THnSparse
Double_t fClusterBias
Jet cluster bias.
const AliTrackIterableContainer accepted() const
static Double_t p0_10SG[17]
0-10% centrality semi-good runs
void SetJESCorrectionHist(TH2D *hist)
Container with name, TClonesArray and cuts for particles.
UInt_t RetrieveTriggerMask() const
void InitializeArraysToZero()
Declaration of class AliTLorentzVector.
TH3 * fHistJHPsi
! Psi angle distribution
static Double_t p10_30G[17]
10-30% centrality good runs
Double_t GetTrackBias() const
Bool_t fGeneralHistograms
whether or not it should fill some general histograms
Declaration of class AliAnalysisTaskEmcalEmbeddingHelper.
virtual void SetMixedEventTriggerType(UInt_t me)
Set the mixed event trigger selection.
AliAnalysisTaskEmcalJetHCorrelations()
TH2D * fJESCorrectionHist
Histogram containing the jet energy scale correction.
TH2 * fHistJetH[6][5][3]
! Jet-hadron correlations (the arrays correspond to centrality, jet pt bins, and eta bins) ...
AliJetContainer * AddJetContainer(const char *n, TString defaultCutType, Float_t jetRadius=0.4)
Int_t fCentBin
!event centrality bin
void SetVzRange(Double_t min, Double_t max)
virtual void SetNCentBinsMixedEvent(Bool_t centbins)
virtual Double_t Pt() const
TH1 * fHistJetPt[6]
! Jet pt spectrum (the array corresponds to centrality bins)
TObjArray * CloneAndReduceTrackList()
virtual Double_t Eta() const
TH2 * fHistJetHEtaPhi
! Eta-phi distribution of jets which are in jet-hadron correlations
UInt_t fTriggerType
Event selection for jets (ie triggered events).
Container for particles within the EMCAL framework.
Bool_t fIsEmbedded
trigger, embedded signal
BeamType
Switch for the beam type.
virtual void SetMinNEventsForMixedEvents(Int_t nme)
AliParticleContainer * GetParticleContainer(Int_t i=0) const
Get particle container attached to this task.
TH2 * fHistTrackEtaPhi[7]
! Track eta-phi distribution (the array corresponds to track pt)
AliEmcalJet * GetLeadingJet(const char *opt="")
void SetJetPtCut(Float_t cut)
void SetDoWiderTrackBin(Bool_t wtrbin)
Double_t fTrackBias
Jet track bias.
BeamType fForceBeamType
forced beam type
Int_t GetEtaBin(Double_t eta) const
Double_t MaxTrackPt() const
TH2 * fHistJetEtaPhi
! Jet eta-phi distribution
BeamType fBeamType
!event beam type
Double_t fCent
!event centrality
virtual void SetTriggerType(UInt_t te)
Set the trigger event trigger selection.
Bool_t fDoWiderTrackBin
True if the track pt bins in the THnSparse should be wider.
THnSparse * fhnMixedEvents
! Mixed events THnSparse
UInt_t fMixingEventType
Event selection for mixed events.
static Double_t p50_90G[17]
50-90% centrality good runs
! Number of elements in mixed event multiplicity binned arrays
virtual void SetNumberOfMixingTracks(Int_t tracks)
Int_t fMinNTracksMixedEvents
threshold to use event pool # tracks
! Number of elements in track pt binned arrays
! Number of elements in centrality binned arrays
Double_t GetClusterBias() const
virtual void SetNCentBins(Int_t n)
void SetIsEmbedded(Bool_t i)
! Arbitrarily large value which can be used to disable the constituent bias. Can be used for either t...
bool ConfigureForStandardAnalysis(std::string trackName="usedefault", std::string clusName="usedefault", const double jetConstituentPtCut=3, const double trackEta=0.8, const double jetRadius=0.2)
Bool_t fNoMixedEventJESCorrection
True if the jet energy scale correction should be applied to mixed event histograms.
! Number of elements in eta binned arrays
AliEventPoolManager * fPoolMgr
! Event pool manager
Int_t fDoEffCorrection
Control the efficiency correction. See EffCorrection() for meaning of values.
static Double_t * GenerateFixedBinArray(Int_t n, Double_t min, Double_t max)
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
AliEmcalList * fOutput
!output list
static Double_t p0_10G[17]
0-10% centrality good runs
virtual void SetEventMixing(Bool_t enable)
TH1 * fHistTrackPt
! Track pt spectrum
bool ConfigureForEmbeddingAnalysis(std::string trackName="usedefault", std::string clusName="caloClustersCombined", const double jetConstituentPtCut=3, const double trackEta=0.8, const double jetRadius=0.2, const std::string &jetTag="hybridJets")
Double_t fVertex[3]
!event vertex
AliTrackContainer * GetTrackContainer(Int_t i=0) const
TH1 * fHistEventRejection
!book keep reasons for rejecting event
void SetMakeGeneralHistograms(Bool_t g)
Int_t GetTrackPtBin(Double_t pt) const
Base task in the EMCAL jet framework.
Double_t EffCorrection(Double_t trkETA, Double_t trkPT, AliAnalysisTaskEmcal::BeamType beamType) const
Double_t MaxClusterPt() const
Represent a jet reconstructed using the EMCal jet framework.
static std::string DetermineUseDefaultName(InputObject_t objType)
const AliTrackIterableMomentumContainer accepted_momentum() const
static Double_t p30_50SG[17]
30-50% centrality semi-good runs
void GetDeltaEtaDeltaPhiDeltaR(AliTLorentzVector &particleOne, AliVParticle *particleTwo, Double_t &deltaEta, Double_t &deltaPhi, Double_t &deltaR)
Bool_t fDoEventMixing
flag to do evt mixing
Bool_t BiasedJet(AliEmcalJet *jet)
void UserCreateOutputObjects()
Main initialization function on the worker.
Bool_t fDoLessSparseAxes
True if there should be fewer THnSparse axes.
const AliJetIterableContainer accepted() const
Jet-hadron correlations analysis task for central Pb-Pb and pp.
UInt_t fNCentBinsMixedEvent
N cent bins for the event mixing pool.
void SetMaxTrackPt(Float_t b)
TH1 * fHistJetPtBias[6]
! Jet pt spectrum of jets which meet the constituent bias criteria (the array corresponds to centrali...
virtual void SetClusterBias(Double_t b)
Require a cluster with pt > b in jet.
virtual Double_t Phi() const
Container structure for EMCAL clusters.
Int_t fMinNEventsMixedEvents
threshold to use event pool # events
EMCal fiducial acceptance (each eta, phi edge narrowed by jet R)
Int_t fNMixingTracks
size of track buffer for event mixing
static Double_t p30_50G[17]
30-50% centrality good runs
Container for jet within the EMCAL jet framework.
! Number of elements in jet pt binned arrays
static Double_t p10_30SG[17]
10-30% centrality semi-good runs
void SetJetAreaCut(Float_t cut)
static const AliAnalysisTaskEmcalEmbeddingHelper * GetInstance()