11 #include <THnSparse.h>
16 #include "AliAnalysisManager.h"
17 #include "AliInputEventHandler.h"
18 #include "AliEventPoolManager.h"
20 #include "AliVTrack.h"
33 Double_t AliAnalysisTaskEmcalJetHMEC::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};
35 Double_t AliAnalysisTaskEmcalJetHMEC::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};
37 Double_t AliAnalysisTaskEmcalJetHMEC::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};
39 Double_t AliAnalysisTaskEmcalJetHMEC::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};
42 Double_t AliAnalysisTaskEmcalJetHMEC::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};
44 Double_t AliAnalysisTaskEmcalJetHMEC::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};
46 Double_t AliAnalysisTaskEmcalJetHMEC::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};
48 Double_t AliAnalysisTaskEmcalJetHMEC::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};
55 fDoEventMixing(kFALSE),
56 fNMixingTracks(50000), fMinNTracksMixedEvents(5000), fMinNEventsMixedEvents(5), fNCentBinsMixedEvent(10),
58 fTriggerType(AliVEvent::kEMCEJE), fMixingEventType(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral),
59 fDisableFastPartition(kFALSE),
61 fJESCorrectionHist(0),
62 fNoMixedEventJESCorrection(kFALSE),
63 fDoLessSparseAxes(0), fDoWiderTrackBin(0),
80 fDoEventMixing(kFALSE),
81 fNMixingTracks(50000), fMinNTracksMixedEvents(5000), fMinNEventsMixedEvents(5), fNCentBinsMixedEvent(10),
83 fTriggerType(AliVEvent::kEMCEJE), fMixingEventType(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral),
84 fDisableFastPartition(kFALSE),
86 fJESCorrectionHist(0),
87 fNoMixedEventJESCorrection(kFALSE),
88 fDoLessSparseAxes(0), fDoWiderTrackBin(0),
113 fHistJetH[centralityBin][jetPtBin][etaBin]=0;
126 fHistTrackPt =
new TH1F(
"fHistTrackPt",
"P_{T} distribution", 1000, 0.0, 100.0);
128 fHistJetHEtaPhi =
new TH2F(
"fHistJetHEtaPhi",
"Jet-Hadron deta-dphi",900,-1.8,1.8,720,-1.6,4.8);
130 fHistJHPsi =
new TH3F(
"fHistJHPsi",
"Jet-Hadron ntr-trpt-dpsi",20,0,100,200,0,20,120,0,180);
140 name = Form(
"fHistTrackEtaPhi_%i", trackPtBin);
146 name = Form(
"fHistJetPt_%i",centralityBin);
147 fHistJetPt[centralityBin] =
new TH1F(name,name,200,0,200);
150 name = Form(
"fHistJetPtBias_%i",centralityBin);
156 name = Form(
"fHistJetH_%i_%i_%i",centralityBin,jetPtBin,etaBin);
157 fHistJetH[centralityBin][jetPtBin][etaBin]=
new TH2F(name,name,72,-0.5*TMath::Pi(),1.5*TMath::Pi(),300,0,30);
160 name = Form(
"fHistJetHBias_%i_%i_%i",centralityBin,jetPtBin,etaBin);
161 fHistJetHBias[centralityBin][jetPtBin][etaBin]=
new TH2F(name,name,72,-0.5*TMath::Pi(),1.5*TMath::Pi(),300,0,30);
169 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5;
171 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<7;
180 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5;
182 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<7;
193 Int_t poolSize = 1000;
195 Int_t nZVertexBins = 10;
198 Int_t nEventActivityBins = 8;
211 eventActivityBins = multiplicityBins;
214 fPoolMgr =
new AliEventPoolManager(poolSize,
fNMixingTracks, nEventActivityBins, eventActivityBins, nZVertexBins, zVertexBins);
222 eta = TMath::Abs(eta);
223 if (eta <= 0.4) etabin = 0;
224 else if (eta > 0.4 && eta < 0.8) etabin = 1;
225 else if (eta >= 0.8) etabin = 2;
233 if (pt < 0.5) ptBin = 0;
234 else if (pt < 1 ) ptBin = 1;
235 else if (pt < 2 ) ptBin = 2;
236 else if (pt < 3 ) ptBin = 3;
237 else if (pt < 5 ) ptBin = 4;
238 else if (pt < 8 ) ptBin = 5;
239 else if (pt < 20 ) ptBin = 6;
250 if (pt >= 15 && pt < 20) ptBin = 0;
251 else if (pt >= 20 && pt < 25) ptBin = 1;
252 else if (pt >= 25 && pt < 30) ptBin = 2;
253 else if (pt >= 30 && pt < 60) ptBin = 3;
254 else if (pt >= 60) ptBin = 4;
271 AliError(Form(
"%s: Unable to retrieve clusters!", GetName()));
278 AliError(Form(
"%s: Unable to retrieve tracks!", GetName()));
285 AliError(Form(
"%s: Unable to retrieve jets!", GetName()));
294 Bool_t biasedJet = kFALSE;
313 UInt_t eventTrigger = ((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected();
317 AliDebug(4, TString::Format(
"%s: Fast partition disabled", GetName()));
327 AliDebug(5, TString::Format(
"%s: Jet accepted!\nJet: %s", GetName(), jet->toString().Data()));
332 if (jet == leadingJet) leadJet = kTRUE;
338 jetVector.SetXYZ(jet->Px(), jet->Py(), jet->Pz());
342 if (biasedJet == kTRUE) {
348 if (jet->Pt() > 15) {
354 track = trackIter.first;
364 AliError(Form(
"Jet Pt Bin negative: %f", jet->Pt()));
370 AliError(Form(
"Eta Bin negative: %f", deltaEta));
377 if ( (jet->Pt() > 20.) && (jet->Pt() < 60.) ) {
378 fHistJHPsi->Fill(tracks->
GetNTracks(), track.Pt(), track.Vect().Angle(jetVector) * TMath::RadToDeg() );
386 AliDebug(6, TString::Format(
"%s: efficiency: %f", GetName(), efficiency));
388 if (biasedJet == kTRUE) {
392 eventActivity =
fCent;
399 Double_t triggerEntries[6] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet)};
402 Double_t triggerEntries[7] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet), deltaR};
436 AliEventPool *pool = 0;
446 else if (
fBeamType ==
kpp) AliFatal(Form(
"No pool found for ntracks_pp = %d, zVertex = %f", tracks->
GetNTracks(), zVertex));
451 Int_t nMix = pool->GetCurrentNEvents();
453 if(eventTrigger & fTriggerType) {
462 if (jet == leadingJet) { leadJet = kTRUE; }
468 if (jet->Pt() < 15)
continue;
471 if (biasedJet == kTRUE) {
474 for (
Int_t jMix=0; jMix < nMix; jMix++) {
475 TObjArray* bgTracks = pool->GetEvent(jMix);
477 for(
Int_t ibg=0; ibg < bgTracks->GetEntries(); ibg++){
482 AliError(Form(
"%s:Failed to retrieve tracks from mixed events", GetName()));
487 track.SetPtEtaPhiE(bgTrack->
Pt(), bgTrack->
Eta(), bgTrack->
Phi(), 0);
496 eventActivity =
fCent;
503 Double_t triggerEntries[6] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet)};
506 Double_t triggerEntries[7] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet), deltaR};
520 pool->UpdatePool(tracksClone);
549 deltaPhi =
DeltaPhi(particleTwo->Phi(), particleOne.Phi(), -1.0*TMath::Pi(), TMath::Pi());
550 deltaEta = particleOne.Eta() - particleTwo->Eta();
551 deltaR = TMath::Sqrt(deltaPhi*deltaPhi + deltaEta*deltaEta);
554 deltaPhi =
DeltaPhi(particleTwo->Phi(), particleOne.Phi(), -0.5*TMath::Pi(), 3*TMath::Pi()/2.);
569 const Int_t dim = count;
576 while(c<dim && i<32){
581 hnTitle += Form(
";%s",label.Data());
589 return new THnSparseF(name, hnTitle.Data(), dim,
nbins, xmin, xmax);
602 label =
"V0 centrality (%)";
609 label =
"corrected jet pt";
644 label =
"leading jet";
651 label =
"trigger track";
665 label =
"leading track";
679 tracksClone->SetOwner(kTRUE);
685 for (
auto particle : tracks->
accepted())
689 if(trackPtBin > -1)
fHistTrackEtaPhi[trackPtBin]->Fill(particle->Eta(),particle->Phi());
692 clone =
new AliBasicParticle(particle->Eta(), particle->Phi(), particle->Pt(), particle->Charge());
694 clone ->SetUniqueID(particle->GetUniqueID());
696 tracksClone->Add(clone);
736 Int_t runNUM = fCurrentRunNumber;
737 Int_t runSwitchGood = -999;
748 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;
751 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;
756 if (runSwitchGood != -999) {
757 effSwitch = 2 + runSwitchGood*4 +
fCentBin;
773 TRefficiency = ptaxis*etaaxis;
780 TRefficiency = ptaxis*etaaxis;
787 TRefficiency = ptaxis*etaaxis;
794 TRefficiency = ptaxis*etaaxis;
801 TRefficiency = ptaxis*etaaxis;
808 TRefficiency = ptaxis*etaaxis;
815 TRefficiency = ptaxis*etaaxis;
822 TRefficiency = ptaxis*etaaxis;
839 coefficient = (1 + -0.442232 * trackPT
840 + 0.501831 * std::pow(trackPT, 2)
841 + -0.252024 * std::pow(trackPT, 3)
842 + 0.062964 * std::pow(trackPT, 4)
843 + -0.007681 * std::pow(trackPT, 5)
844 + 0.000365 * std::pow(trackPT, 6));
848 TRefficiency = coefficient * (1 + 0.402825 * std::abs(trackETA)
849 + -2.213152 * std::pow(trackETA, 2)
850 + 4.311098 * std::abs(std::pow(trackETA, 3))
851 + -2.778200 * std::pow(trackETA, 4));
867 AliDebugStream(3) << GetName() <<
":" << hist->GetName() <<
": " << std::boolalpha <<
"Using normal weights: JESHist: " << (
fJESCorrectionHist ?
fJESCorrectionHist->GetName() :
"Null") <<
", noCorrection: " << noCorrection << std::endl;
868 hist->Fill(fillValue, weight);
875 std::vector <Double_t> yBinsContent;
876 AliDebug(3, TString::Format(
"%s: Attempt to access weights from JES correction hist %s with jet pt %f!", GetName(), hist->GetName(), fillValue));
878 AliDebug(3, TString::Format(
"weights size: %zd", yBinsContent.size()));
885 if (yBinsContent.at(index-1) > 0) {
889 AliDebug(4, TString::Format(
"fillLocation: %f, weight: %f", fillLocation, yBinsContent.at(index-1)));
891 hist->Fill(fillLocation, weight*yBinsContent.at(index-1));
906 AliDebugStream(3) << GetName() <<
":" << hist->GetName() <<
": " << std::boolalpha <<
"Using normal weights: JESHist: " << (
fJESCorrectionHist ?
fJESCorrectionHist->GetName() :
"Null") <<
", noCorrection: " << noCorrection << std::endl;
907 hist->Fill(fillValue, weight);
917 std::vector <Double_t> yBinsContent;
918 AliDebug(3, TString::Format(
"%s: Attempt to access weights from JES correction hist %s with jet pt %f!", GetName(), hist->GetName(), jetPt));
920 AliDebug(3, TString::Format(
"weights size: %zd", yBinsContent.size()));
927 if (yBinsContent.at(index-1) > 0) {
931 AliDebug(4,TString::Format(
"fillValue[1]: %f, weight: %f", fillValue[1], yBinsContent.at(index-1)));
933 hist->Fill(fillValue, weight*yBinsContent.at(index-1));
942 for (
Int_t index = 1; index <= hist->GetYaxis()->GetNbins(); index++)
945 yBinsContent.push_back(hist->GetBinContent(hist->GetBin(xBin,index)));
947 if (scaleFactor >= 0)
950 hist->SetBinContent(hist->GetBin(xBin,index), yBinsContent.at(index-1)/scaleFactor);
974 if (filename.Contains(
"alien://") && !gGrid) {
975 TGrid::Connect(
"alien://");
985 TString histBaseName = histName;
987 histName = TString::Format(
"%s_Track%.2f", histName.Data(), trackBias);
990 histName = TString::Format(
"%s_Clus%.2f", histName.Data(), clusterBias);
994 TFile * jesCorrectionFile = TFile::Open(filename);
995 if (!jesCorrectionFile || jesCorrectionFile->IsZombie()) {
996 AliError(TString::Format(
"%s: Could not open JES correction file %s", GetName(), filename.Data()));
1001 TH2D * JESCorrectionHist =
dynamic_cast<TH2D*
>(jesCorrectionFile->Get(histName.Data()));
1002 if (JESCorrectionHist) {
1003 AliInfo(TString::Format(
"%s: JES correction hist name \"%s\" loaded from file %s.", GetName(), histName.Data(), filename.Data()));
1006 AliError(TString::Format(
"%s: JES correction hist name \"%s\" not found in file %s.", GetName(), histName.Data(), filename.Data()));
1009 JESCorrectionHist =
dynamic_cast<TH2D*
>(jesCorrectionFile->Get(histBaseName.Data()));
1010 if (JESCorrectionHist) {
1011 AliInfo(TString::Format(
"%s: JES correction hist name \"%s\" loaded from file %s.", GetName(), histBaseName.Data(), filename.Data()));
1012 histName = histBaseName;
1016 AliError(TString::Format(
"%s: JES correction with base hist name %s not found in file %s.", GetName(), histBaseName.Data(), filename.Data()));
1022 TH2D * tempHist =
static_cast<TH2D *
>(JESCorrectionHist->Clone());
1023 tempHist->SetDirectory(0);
1027 jesCorrectionFile->Close();
1036 if (tempName.Index(tag) == -1) {
1038 Ssiz_t suffixLocation = tempName.Last(
'_');
1039 tempName.Insert(suffixLocation, tag.Data());
1042 AliDebug(3, TString::Format(
"%s: Setting task name to %s", GetName(), tempName.Data()));
1043 SetName(tempName.Data());
1055 const char *nTracks,
1056 const char *nCaloClusters,
1062 const Int_t nTracksMixedEvent,
1063 const Int_t minNTracksMixedEvent,
1064 const Int_t minNEventsMixedEvent,
1065 const UInt_t nCentBinsMixedEvent,
1071 const Bool_t lessSparseAxes,
1072 const Bool_t widerTrackBin,
1074 const Int_t doEffCorrSW,
1075 const Bool_t JESCorrection,
1076 const char * JESCorrectionFilename,
1077 const char * JESCorrectionHistName,
1086 AliErrorClass(
"No analysis manager to connect to.");
1092 AliVEventHandler* handler = mgr->GetInputEventHandler();
1095 AliErrorClass(
"This task requires an input event handler");
1112 if (handler->InheritsFrom(
"AliESDInputHandler")) {
1115 else if (handler->InheritsFrom(
"AliAODInputHandler")) {
1121 TString clusName(nCaloClusters);
1123 if (trackName ==
"usedefault") {
1124 if (dataType ==
kESD) {
1125 trackName =
"Tracks";
1127 else if (dataType ==
kAOD) {
1128 trackName =
"tracks";
1135 if (clusName ==
"usedefault") {
1136 if (dataType ==
kESD) {
1137 clusName =
"CaloClusters";
1139 else if (dataType ==
kAOD) {
1140 clusName =
"caloClusters";
1147 TString name(
"AliAnalysisTaskJetH");
1148 if (!trackName.IsNull()) {
1149 name += TString::Format(
"_%s", trackName.Data());
1151 if (!clusName.IsNull()) {
1152 name += TString::Format(
"_%s", clusName.Data());
1154 if (strcmp(suffix,
"") != 0) {
1155 name += TString::Format(
"_%s", suffix);
1163 correlationTask->
SetEventMixing(static_cast<Bool_t>(nTracksMixedEvent));
1178 if (JESCorrection == kTRUE)
1182 AliErrorClass(
"Failed to successfully retrieve and initialize the JES correction! Task initialization continuing without JES correction (can be set manually later).");
1194 clusterContainer->SetMinE(minClusterPt);
1199 tracksForJets->SetName(
"tracksForJets");
1200 tracksForJets->SetMinPt(minTrackPt);
1201 tracksForJets->SetEtaLimits(-1.0*trackEta, trackEta);
1206 tracksForCorrelations->SetName(
"tracksForCorrelations");
1207 tracksForCorrelations->SetMinPt(0.15);
1208 tracksForCorrelations->SetEtaLimits(-1.0*trackEta, trackEta);
1228 mgr->AddTask(correlationTask);
1231 mgr->ConnectInput (correlationTask, 0, mgr->GetCommonInputContainer() );
1232 AliAnalysisDataContainer * cojeth = mgr->CreateContainer(correlationTask->GetName(),
1234 AliAnalysisManager::kOutputContainer,
1235 Form(
"%s", AliAnalysisManager::GetCommonFileName()));
1236 mgr->ConnectOutput(correlationTask, 1, cojeth);
1238 return correlationTask;
Jet-hadron correlations analysis task for central Pb-Pb and pp.
virtual void SetTriggerType(UInt_t te)
Set the trigger event trigger selection.
void GetDeltaEtaDeltaPhiDeltaR(AliTLorentzVector &particleOne, AliVParticle *particleTwo, Double_t &deltaEta, Double_t &deltaPhi, Double_t &deltaR)
void SetJESCorrectionHist(TH2D *hist)
Bool_t fDoEventMixing
flag to do evt mixing
Int_t fMinNEventsMixedEvents
threshold to use event pool # events
static Double_t DeltaPhi(Double_t phia, Double_t phib, Double_t rMin=-TMath::Pi()/2, Double_t rMax=3 *TMath::Pi()/2)
UInt_t fNCentBinsMixedEvent
N cent bins for the event mixing pool.
TH2D * fJESCorrectionHist
Histogram containing the jet energy scale correction.
AliJetContainer * GetJetContainer(Int_t i=0) const
Int_t GetTrackPtBin(Double_t pt) const
! Number of elements in track pt binned arrays
void AdoptParticleContainer(AliParticleContainer *cont)
! Number of elements in mixed event multiplicity binned arrays
static AliAnalysisTaskEmcalJetHMEC * AddTaskEmcalJetHMEC(const char *nTracks="usedefault", const char *nCaloClusters="usedefault", const Double_t trackBias=5, const Double_t clusterBias=5, const Double_t minJetArea=0.4, 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 Double_t trackEta=0.9, const Bool_t lessSparseAxes=0, const Bool_t widerTrackBin=0, 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")
TH1 * fHistTrackPt
! Track pt spectrum
const AliTrackIterableContainer accepted() const
Container with name, TClonesArray and cuts for particles.
! Number of elements in jet pt binned arrays
Declaration of class AliTLorentzVector.
Bool_t RetrieveAndInitializeJESCorrectionHist(TString filename, TString histName, Double_t trackBias=AliAnalysisTaskEmcalJetHMEC::kDisableBias, Double_t clusterBias=AliAnalysisTaskEmcalJetHMEC::kDisableBias)
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
static Double_t p50_90SG[17]
50-90% centrality semi-good runs
Bool_t fGeneralHistograms
whether or not it should fill some general histograms
static Double_t p0_10SG[17]
0-10% centrality semi-good runs
TH2 * fHistJetHEtaPhi
! Eta-phi distribution of jets which are in jet-hadron correlations
AliJetContainer * AddJetContainer(const char *n, TString defaultCutType, Float_t jetRadius=0.4)
virtual void UserCreateOutputObjects()
AliEventPoolManager * fPoolMgr
! Event pool manager
Int_t fCentBin
!event centrality bin
void ExecOnce()
Perform steps needed to initialize the analysis.
TH2 * fHistJetHBias[6][5][3]
! Jet-hadron correlations of jets which meet the constituent bias criteria (the arrays correspond to ...
static Double_t p50_90G[17]
50-90% centrality good runs
Double_t GetClusterBias() const
void SetVzRange(Double_t min, Double_t max)
Int_t fDoEffCorrection
Control the efficiency correction. See EffCorrection() for meaning of values.
virtual Double_t Pt() const
Int_t GetJetPtBin(Double_t pt) const
Bool_t fDoWiderTrackBin
True if the track pt bins in the THnSparse should be wider.
virtual Double_t Eta() const
AliClusterContainer * AddClusterContainer(const char *n)
Create new cluster container and attach it to the task.
Int_t fMinNTracksMixedEvents
threshold to use event pool # tracks
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
Bool_t BiasedJet(AliEmcalJet *jet)
! Number of elements in eta binned arrays
! Arbitrarily large value which can be used to disable the constituent bias. Can be used for either t...
TH1 * fHistJetPtBias[6]
! Jet pt spectrum of jets which meet the constituent bias criteria (the array corresponds to centrali...
BeamType
Switch for the beam type.
AliParticleContainer * GetParticleContainer(Int_t i=0) const
Get particle container attached to this task.
TObjArray * CloneAndReduceTrackList()
static Double_t p30_50SG[17]
30-50% centrality semi-good runs
TH1 * fHistJetPt[6]
! Jet pt spectrum (the array corresponds to centrality bins)
AliEmcalJet * GetLeadingJet(const char *opt="")
static Double_t p10_30G[17]
10-30% centrality good runs
static Double_t p0_10G[17]
0-10% centrality good runs
Double_t GetTrackBias() const
void SetJetPtCut(Float_t cut)
TH3 * fHistJHPsi
! Psi angle distribution
Bool_t fNoMixedEventJESCorrection
True if the jet energy scale correction should be applied to mixed event histograms.
virtual void SetMinNTracksForMixedEvents(Int_t nmt)
void FillHist(TH1 *hist, Double_t fillValue, Double_t weight=1.0, Bool_t noCorrection=kFALSE)
UInt_t fTriggerType
Event selection for jets (ie triggered events).
BeamType fForceBeamType
forced beam type
AliClusterContainer * GetClusterContainer(Int_t i=0) const
Get cluster container attached to this task.
Double_t MaxTrackPt() const
Int_t GetEtaBin(Double_t eta) const
BeamType fBeamType
!event beam type
static Double_t p30_50G[17]
30-50% centrality good runs
Double_t fCent
!event centrality
AliAnalysisTaskEmcalJetHMEC()
Double_t fClusterBias
Jet cluster bias.
void InitializeArraysToZero()
void SetDoLessSparseAxes(Bool_t dlsa)
virtual void SetClusterBias(Double_t b)
Require a cluster with pt > b in jet.
virtual void SetNCentBins(Int_t n)
virtual void SetEventMixing(Bool_t enable)
static Double_t p10_30SG[17]
10-30% centrality semi-good runs
Bool_t fDisableFastPartition
True if task should be disabled for the fast partition, where the EMCal is not included.
static Double_t * GenerateFixedBinArray(Int_t n, Double_t min, Double_t max)
AliEmcalList * fOutput
!output list
Double_t fTrackBias
Jet track bias.
TH2 * fHistJetEtaPhi
! Jet eta-phi distribution
virtual void SetNumberOfMixingTracks(Int_t tracks)
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
Double_t fVertex[3]
!event vertex
Double_t EffCorrection(Double_t trkETA, Double_t trkPT, AliAnalysisTaskEmcal::BeamType beamType) const
AliTrackContainer * GetTrackContainer(Int_t i=0) const
TH1 * fHistEventRejection
!book keep reasons for rejecting event
void SetMakeGeneralHistograms(Bool_t g)
! Number of elements in centrality binned arrays
void SetDoEffCorr(Int_t effcorr)
THnSparse * fhnMixedEvents
! Mixed events THnSparse
void AccessSetOfYBinValues(TH2D *hist, Int_t xBin, std::vector< Double_t > &yBinsContent, Double_t scaleFactor=-1.0)
Base task in the EMCAL jet framework.
Double_t MaxClusterPt() const
Represent a jet reconstructed using the EMCal jet framework.
virtual void SetMixedEventTriggerType(UInt_t me)
Set the mixed event trigger selection.
Bool_t fDoLessSparseAxes
True if there should be fewer THnSparse axes.
const AliTrackIterableMomentumContainer accepted_momentum() const
virtual void SetMinNEventsForMixedEvents(Int_t nme)
void UserCreateOutputObjects()
Main initialization function on the worker.
virtual void Terminate(Option_t *)
const AliJetIterableContainer accepted() const
Int_t fNMixingTracks
size of track buffer for event mixing
EDataType_t
Switch for the data type.
UInt_t fMixingEventType
Event selection for mixed events.
void SetMaxTrackPt(Float_t b)
virtual Double_t Phi() const
Container structure for EMCAL clusters.
EMCal fiducial acceptance (each eta, phi edge narrowed by jet R)
void SetDoWiderTrackBin(Bool_t wtrbin)
Container for jet within the EMCAL jet framework.
virtual void SetNCentBinsMixedEvent(Bool_t centbins)
virtual void SetTrackBias(Double_t b)
Require a track with pt > b in jet.
void SetJetAreaCut(Float_t cut)
TH2 * fHistJetH[6][5][3]
! Jet-hadron correlations (the arrays correspond to centrality, jet pt bins, and eta bins) ...
THnSparse * fhnJH
! JetH THnSparse
TH2 * fHistTrackEtaPhi[7]
! Track eta-phi distribution (the array corresponds to track pt)
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)