11 #include <THnSparse.h>
15 #include "AliAnalysisManager.h"
16 #include "AliInputEventHandler.h"
17 #include "AliEventPoolManager.h"
19 #include "AliVTrack.h"
34 fDoEventMixing(kFALSE),
35 fNMixingTracks(50000), fMinNTracksMixedEvents(5000), fMinNEventsMixedEvents(5), fNCentBinsMixedEvent(10),
37 fTriggerType(AliVEvent::kEMCEJE), fMixingEventType(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral),
38 fDoEffCorrection(0), fEffFunctionCorrection(0),
39 fEmbeddingCorrectionHist(0),
40 fDoLessSparseAxes(0), fDoWiderTrackBin(0),
49 InitializeArraysToZero();
57 fDoEventMixing(kFALSE),
58 fNMixingTracks(50000), fMinNTracksMixedEvents(5000), fMinNEventsMixedEvents(5), fNCentBinsMixedEvent(10),
60 fTriggerType(AliVEvent::kEMCEJE), fMixingEventType(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral),
61 fDoEffCorrection(0), fEffFunctionCorrection(0),
62 fEmbeddingCorrectionHist(0),
63 fDoLessSparseAxes(0), fDoWiderTrackBin(0),
86 fHistJetH[centralityBin][jetPtBin][etaBin]=0;
100 fHistTrackPt =
new TH1F(
"fHistTrackPt",
"P_{T} distribution", 1000, 0.0, 100.0);
102 fHistJetHEtaPhi =
new TH2F(
"fHistJetHEtaPhi",
"Jet-Hadron deta-dphi",900,-1.8,1.8,720,-1.6,4.8);
104 fHistJHPsi =
new TH3F(
"fHistJHPsi",
"Jet-Hadron ntr-trpt-dpsi",20,0,100,200,0,20,120,0,180);
114 name = Form(
"fHistTrackEtaPhi_%i", trackPtBin);
120 name = Form(
"fHistJetPt_%i",centralityBin);
121 fHistJetPt[centralityBin] =
new TH1F(name,name,200,0,200);
124 name = Form(
"fHistJetPtBias_%i",centralityBin);
130 name = Form(
"fHistJetH_%i_%i_%i",centralityBin,jetPtBin,etaBin);
131 fHistJetH[centralityBin][jetPtBin][etaBin]=
new TH2F(name,name,72,-0.5*TMath::Pi(),1.5*TMath::Pi(),300,0,30);
134 name = Form(
"fHistJetHBias_%i_%i_%i",centralityBin,jetPtBin,etaBin);
135 fHistJetHBias[centralityBin][jetPtBin][etaBin]=
new TH2F(name,name,72,-0.5*TMath::Pi(),1.5*TMath::Pi(),300,0,30);
143 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5;
145 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<7;
154 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5;
156 cifras = 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<7;
167 Int_t poolSize = 1000;
169 Int_t nZVertexBins = 10;
172 Int_t nEventActivityBins = 8;
184 eventActivityBins = multiplicityBins;
187 fPoolMgr =
new AliEventPoolManager(poolSize,
fNMixingTracks, nEventActivityBins, eventActivityBins, nZVertexBins, zVertexBins);
195 eta = TMath::Abs(eta);
196 if (eta <= 0.4) etabin = 0;
197 else if (eta > 0.4 && eta < 0.8) etabin = 1;
198 else if (eta >= 0.8) etabin = 2;
206 if (pt < 0.5) ptBin = 0;
207 else if (pt < 1 ) ptBin = 1;
208 else if (pt < 2 ) ptBin = 2;
209 else if (pt < 3 ) ptBin = 3;
210 else if (pt < 5 ) ptBin = 4;
211 else if (pt < 8 ) ptBin = 5;
212 else if (pt < 20 ) ptBin = 6;
223 if (pt >= 15 && pt < 20) ptBin = 0;
224 else if (pt >= 20 && pt < 25) ptBin = 1;
225 else if (pt >= 25 && pt < 30) ptBin = 2;
226 else if (pt >= 30 && pt < 60) ptBin = 3;
227 else if (pt >= 60) ptBin = 4;
244 AliError(Form(
"%s: Unable to retrieve clusters!", GetName()));
251 AliError(Form(
"%s: Unable to retrieve tracks!", GetName()));
258 AliError(Form(
"%s: Unable to retrieve jets!", GetName()));
268 Bool_t biasedJet = kFALSE;
287 UInt_t eventTrigger = ((AliInputEventHandler*)(AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler()))->IsEventSelected();
296 if (jet == leadingJet) leadJet = kTRUE;
302 jetVector.SetXYZ(jet->Px(), jet->Py(), jet->Pz());
306 if (biasedJet == kTRUE) {
312 if (jet->Pt() > 15) {
318 track = trackIter.first;
328 AliError(Form(
"Jet Pt Bin negative: %f", jet->Pt()));
334 AliError(Form(
"Eta Bin negative: %f", deltaEta));
341 if ( (jet->Pt() > 20.) && (jet->Pt() < 60.) ) {
342 fHistJHPsi->Fill(tracks->
GetNTracks(), track.Pt(), track.Vect().Angle(jetVector) * TMath::RadToDeg() );
351 if (biasedJet == kTRUE) {
355 eventActivity =
fCent;
362 Double_t triggerEntries[6] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet)};
365 Double_t triggerEntries[7] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet), deltaR};
399 AliEventPool *pool = 0;
409 else if (
fBeamType ==
kpp) AliFatal(Form(
"No pool found for ntracks_pp = %d, zVertex = %f", tracks->
GetNTracks(), zVertex));
414 Int_t nMix = pool->GetCurrentNEvents();
416 if(eventTrigger & fTriggerType) {
425 if (jet == leadingJet) { leadJet = kTRUE; }
431 if (jet->Pt() < 15)
continue;
434 if (biasedJet == kTRUE) {
437 for (
Int_t jMix=0; jMix < nMix; jMix++) {
438 TObjArray* bgTracks = pool->GetEvent(jMix);
440 for(
Int_t ibg=0; ibg < bgTracks->GetEntries(); ibg++){
445 AliError(Form(
"%s:Failed to retrieve tracks from mixed events", GetName()));
450 track.SetPtEtaPhiE(bgTrack->
Pt(), bgTrack->
Eta(), bgTrack->
Phi(), 0);
459 eventActivity =
fCent;
466 Double_t triggerEntries[6] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet)};
469 Double_t triggerEntries[7] = {eventActivity, jet->Pt(), track.Pt(), deltaEta, deltaPhi,
static_cast<Double_t>(leadJet), deltaR};
483 pool->UpdatePool(tracksClone);
512 deltaPhi =
DeltaPhi(particleTwo->Phi(), particleOne.Phi(), -1.0*TMath::Pi(), TMath::Pi());
513 deltaEta = particleOne.Eta() - particleTwo->Eta();
514 deltaR = TMath::Sqrt(deltaPhi*deltaPhi + deltaEta*deltaEta);
517 deltaPhi =
DeltaPhi(particleTwo->Phi(), particleOne.Phi(), -0.5*TMath::Pi(), 3*TMath::Pi()/2.);
532 const Int_t dim = count;
539 while(c<dim && i<32){
544 hnTitle += Form(
";%s",label.Data());
552 return new THnSparseF(name, hnTitle.Data(), dim,
nbins, xmin, xmax);
565 label =
"V0 centrality (%)";
572 label =
"corrected jet pt";
607 label =
"leading jet";
614 label =
"trigger track";
628 label =
"leading track";
642 tracksClone->SetOwner(kTRUE);
648 for (
auto particle : tracks->
accepted())
652 if(trackPtBin > -1)
fHistTrackEtaPhi[trackPtBin]->Fill(particle->Eta(),particle->Phi());
655 clone =
new AliBasicParticle(particle->Eta(), particle->Phi(), particle->Pt(), particle->Charge());
657 clone ->SetUniqueID(particle->GetUniqueID());
659 tracksClone->Add(clone);
672 Int_t runNUM = fCurrentRunNumber;
673 Int_t runSwitchGood = -999;
680 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;
682 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;
687 effSwitch = 2 + runSwitchGood*4 +
fCentBin;
691 Double_t 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};
693 Double_t 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};
695 Double_t 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};
697 Double_t 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};
700 Double_t 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};
702 Double_t 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};
704 Double_t 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};
706 Double_t 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};
717 ptaxis = (x<2.9)*(p0_10SG[0]*exp(-pow(p0_10SG[1]/x,p0_10SG[2])) + p0_10SG[3]*x) + (x>=2.9)*(p0_10SG[4] + p0_10SG[5]*x + p0_10SG[6]*x*x);
718 etaaxis = (y<-0.07)*(p0_10SG[7]*exp(-pow(p0_10SG[8]/TMath::Abs(y+0.91),p0_10SG[9])) + p0_10SG[10]*y) + (y>=-0.07 && y<=0.4)*(p0_10SG[11] + p0_10SG[12]*y + p0_10SG[13]*y*y) + (y>0.4)*(p0_10SG[14]*exp(-pow(p0_10SG[15]/TMath::Abs(-y+0.91),p0_10SG[16])));
719 TRefficiency = ptaxis*etaaxis;
724 ptaxis = (x<2.9)*(p10_30SG[0]*exp(-pow(p10_30SG[1]/x,p10_30SG[2])) + p10_30SG[3]*x) + (x>=2.9)*(p10_30SG[4] + p10_30SG[5]*x + p10_30SG[6]*x*x);
725 etaaxis = (y<-0.07)*(p10_30SG[7]*exp(-pow(p10_30SG[8]/TMath::Abs(y+0.91),p10_30SG[9])) + p10_30SG[10]*y) + (y>=-0.07 && y<=0.4)*(p10_30SG[11] + p10_30SG[12]*y + p10_30SG[13]*y*y) + (y>0.4)*(p10_30SG[14]*exp(-pow(p10_30SG[15]/TMath::Abs(-y+0.91),p10_30SG[16])));
726 TRefficiency = ptaxis*etaaxis;
731 ptaxis = (x<2.9)*(p30_50SG[0]*exp(-pow(p30_50SG[1]/x,p30_50SG[2])) + p30_50SG[3]*x) + (x>=2.9)*(p30_50SG[4] + p30_50SG[5]*x + p30_50SG[6]*x*x);
732 etaaxis = (y<-0.07)*(p30_50SG[7]*exp(-pow(p30_50SG[8]/TMath::Abs(y+0.91),p30_50SG[9])) + p30_50SG[10]*y) + (y>=-0.07 && y<=0.4)*(p30_50SG[11] + p30_50SG[12]*y + p30_50SG[13]*y*y) + (y>0.4)*(p30_50SG[14]*exp(-pow(p30_50SG[15]/TMath::Abs(-y+0.91),p30_50SG[16])));
733 TRefficiency = ptaxis*etaaxis;
738 ptaxis = (x<2.9)*(p50_90SG[0]*exp(-pow(p50_90SG[1]/x,p50_90SG[2])) + p50_90SG[3]*x) + (x>=2.9)*(p50_90SG[4] + p50_90SG[5]*x + p50_90SG[6]*x*x);
739 etaaxis = (y<-0.07)*(p50_90SG[7]*exp(-pow(p50_90SG[8]/TMath::Abs(y+0.91),p50_90SG[9])) + p50_90SG[10]*y) + (y>=-0.07 && y<=0.4)*(p50_90SG[11] + p50_90SG[12]*y + p50_90SG[13]*y*y) + (y>0.4)*(p50_90SG[14]*exp(-pow(p50_90SG[15]/TMath::Abs(-y+0.91),p50_90SG[16])));
740 TRefficiency = ptaxis*etaaxis;
745 ptaxis = (x<2.9)*(p0_10G[0]*exp(-pow(p0_10G[1]/x,p0_10G[2])) + p0_10G[3]*x) + (x>=2.9)*(p0_10G[4] + p0_10G[5]*x + p0_10G[6]*x*x);
746 etaaxis = (y<0.0)*(p0_10G[7]*exp(-pow(p0_10G[8]/TMath::Abs(y+0.91),p0_10G[9])) + p0_10G[10]*y) + (y>=0.0 && y<=0.4)*(p0_10G[11] + p0_10G[12]*y + p0_10G[13]*y*y) + (y>0.4)*(p0_10G[14]*exp(-pow(p0_10G[15]/TMath::Abs(-y+0.91),p0_10G[16])));
747 TRefficiency = ptaxis*etaaxis;
752 ptaxis = (x<2.9)*(p10_30G[0]*exp(-pow(p10_30G[1]/x,p10_30G[2])) + p10_30G[3]*x) + (x>=2.9)*(p10_30G[4] + p10_30G[5]*x + p10_30G[6]*x*x);
753 etaaxis = (y<0.0)*(p10_30G[7]*exp(-pow(p10_30G[8]/TMath::Abs(y+0.91),p10_30G[9])) + p10_30G[10]*y) + (y>=0.0 && y<=0.4)*(p10_30G[11] + p10_30G[12]*y + p10_30G[13]*y*y) + (y>0.4)*(p10_30G[14]*exp(-pow(p10_30G[15]/TMath::Abs(-y+0.91),p10_30G[16])));
754 TRefficiency = ptaxis*etaaxis;
759 ptaxis = (x<2.9)*(p30_50G[0]*exp(-pow(p30_50G[1]/x,p30_50G[2])) + p30_50G[3]*x) + (x>=2.9)*(p30_50G[4] + p30_50G[5]*x + p30_50G[6]*x*x);
760 etaaxis = (y<0.0)*(p30_50G[7]*exp(-pow(p30_50G[8]/TMath::Abs(y+0.91),p30_50G[9])) + p30_50G[10]*y) + (y>=0.0 && y<=0.4)*(p30_50G[11] + p30_50G[12]*y + p30_50G[13]*y*y) + (y>0.4)*(p30_50G[14]*exp(-pow(p30_50G[15]/TMath::Abs(-y+0.91),p30_50G[16])));
761 TRefficiency = ptaxis*etaaxis;
766 ptaxis = (x<2.9)*(p50_90G[0]*exp(-pow(p50_90G[1]/x,p50_90G[2])) + p50_90G[3]*x) + (x>=2.9)*(p50_90G[4] + p50_90G[5]*x + p50_90G[6]*x*x);
767 etaaxis = (y<0.0)*(p50_90G[7]*exp(-pow(p50_90G[8]/TMath::Abs(y+0.91),p50_90G[9])) + p50_90G[10]*y) + (y>=0.0 && y<=0.4)*(p50_90G[11] + p50_90G[12]*y + p50_90G[13]*y*y) + (y>0.4)*(p50_90G[14]*exp(-pow(p50_90G[15]/TMath::Abs(-y+0.91),p50_90G[16])));
768 TRefficiency = ptaxis*etaaxis;
785 hist->Fill(fillValue, weight);
792 std::vector <Double_t> yBinsContent;
802 Printf(
"fillLocation: %f, weight: %f", fillLocation, yBinsContent.at(index-1));
804 hist->Fill(fillLocation, weight*yBinsContent.at(index-1));
818 hist->Fill(fillValue, weight);
828 std::vector <Double_t> yBinsContent;
838 Printf(
"fillValue[1]: %f, weight: %f", fillValue[1], yBinsContent.at(index-1));
840 hist->Fill(fillValue, weight*yBinsContent.at(index-1));
848 for (
Int_t index = 1; index <= hist->GetYaxis()->GetNbins(); index++)
851 yBinsContent.push_back(hist->GetBinContent(hist->GetBin(xBin,index)));
853 if (scaleFactor >= 0)
856 hist->SetBinContent(hist->GetBin(xBin,index), yBinsContent.at(index-1)/scaleFactor);
868 const char *nCaloClusters,
874 const Int_t nTracksMixedEvent,
875 const Int_t minNTracksMixedEvent,
876 const Int_t minNEventsMixedEvent,
877 const UInt_t nCentBinsMixedEvent,
885 const Bool_t lessSparseAxes,
886 const Bool_t widerTrackBin,
888 const Int_t doEffCorrSW,
889 const Bool_t embeddingCorrection,
890 const char * embeddingCorrectionFilename,
891 const char * embeddingCorrectionHistName,
900 AliErrorClass(
"No analysis manager to connect to.");
906 AliVEventHandler* handler = mgr->GetInputEventHandler();
909 AliErrorClass(
"This task requires an input event handler");
926 if (handler->InheritsFrom(
"AliESDInputHandler")) {
929 else if (handler->InheritsFrom(
"AliAODInputHandler")) {
935 TString clusName(nCaloClusters);
937 if (trackName ==
"usedefault") {
938 if (dataType ==
kESD) {
939 trackName =
"Tracks";
941 else if (dataType ==
kAOD) {
942 trackName =
"tracks";
949 if (clusName ==
"usedefault") {
950 if (dataType ==
kESD) {
951 clusName =
"CaloClusters";
953 else if (dataType ==
kAOD) {
954 clusName =
"caloClusters";
961 TString name(
"AliAnalysisTaskJetH");
962 if (!trackName.IsNull()) {
963 name += TString::Format(
"_%s", trackName.Data());
965 if (!clusName.IsNull()) {
966 name += TString::Format(
"_%s", clusName.Data());
968 if (strcmp(suffix,
"") != 0) {
969 name += TString::Format(
"_%s", suffix);
977 correlationTask->
SetEventMixing(static_cast<Bool_t>(nTracksMixedEvent));
993 if (embeddingCorrection == kTRUE)
996 TFile * embeddingCorrectionFile = TFile::Open(embeddingCorrectionFilename);
997 if (!embeddingCorrectionFile || embeddingCorrectionFile->IsZombie()) {
998 AliErrorClass(TString::Format(
"Could not open embedding correction file %s", embeddingCorrectionFilename));
1003 TH2F * embeddingCorrectionHist =
dynamic_cast<TH2F*
>(embeddingCorrectionFile->Get(embeddingCorrectionHistName));
1004 if (embeddingCorrectionHist) {
1005 AliInfoClass(TString::Format(
"Embedding correction %s loaded from file %s.", embeddingCorrectionHistName, embeddingCorrectionFilename));
1008 AliErrorClass(TString::Format(
"Embedding correction %s not found in file %s.", embeddingCorrectionHistName, embeddingCorrectionFilename));
1023 clusterContainer->SetMinE(minClusterPt);
1028 tracksForJets->SetName(
"tracksForJets");
1029 tracksForJets->SetMinPt(minTrackPt);
1030 tracksForJets->SetEtaLimits(-1.0*trackEta, trackEta);
1035 tracksForCorrelations->SetName(
"tracksForCorrelations");
1036 tracksForCorrelations->SetMinPt(0.15);
1037 tracksForCorrelations->SetEtaLimits(-1.0*trackEta, trackEta);
1057 mgr->AddTask(correlationTask);
1060 mgr->ConnectInput (correlationTask, 0, mgr->GetCommonInputContainer() );
1061 AliAnalysisDataContainer * cojeth = mgr->CreateContainer(name,
1063 AliAnalysisManager::kOutputContainer,
1064 Form(
"%s", AliAnalysisManager::GetCommonFileName()));
1065 mgr->ConnectOutput(correlationTask, 1, cojeth);
1067 return correlationTask;
void accessSetOfYBinValues(TH2F *hist, Int_t xBin, std::vector< Double_t > &yBinsContent, Double_t scaleFactor=-1.0)
virtual void SetTriggerType(UInt_t te)
void GetDeltaEtaDeltaPhiDeltaR(AliTLorentzVector &particleOne, AliVParticle *particleTwo, Double_t &deltaEta, Double_t &deltaPhi, Double_t &deltaR)
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.
AliJetContainer * GetJetContainer(Int_t i=0) const
virtual Int_t GetTrackPtBin(Double_t pt) const
void AdoptParticleContainer(AliParticleContainer *cont)
TH1 * fHistTrackPt
! Pt spectrum
const AliTrackIterableContainer accepted() const
Container with name, TClonesArray and cuts for particles.
Declaration of class AliTLorentzVector.
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
TH2 * fHistJetHBias[6][5][3]
!
void SetVzRange(Double_t min, Double_t max)
virtual Double_t Pt() const
TH2F * fEmbeddingCorrectionHist
!
virtual Int_t GetJetPtBin(Double_t pt) const
virtual Double_t Eta() const
AliClusterContainer * AddClusterContainer(const char *n)
Int_t fMinNTracksMixedEvents
threshold to use event pool # tracks
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
Bool_t BiasedJet(AliEmcalJet *jet)
AliParticleContainer * GetParticleContainer(Int_t i=0) const
TObjArray * CloneAndReduceTrackList()
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 char *CentEst="V0M", const Int_t nCentBins=5, const Double_t trackEta=0.9, const Bool_t lessSparseAxes=0, const Bool_t widerTrackBin=0, const Int_t doEffCorrSW=0, const Bool_t embeddingCorrection=kFALSE, const char *embeddingCorrectionFilename="alien:///alice/cern.ch/user/r/rehlersi/embeddingCorrection.root", const char *embeddingCorrectionHistName="embeddingCorrection", const char *suffix="biased")
AliEmcalJet * GetLeadingJet(const char *opt="")
void SetJetPtCut(Float_t cut)
TH3 * fHistJHPsi
! Psi angle distribution
virtual void SetMinNTracksForMixedEvents(Int_t nmt)
void SetEmbeddingCorrectionHist(TH2F *hist)
BeamType fForceBeamType
forced beam type
AliClusterContainer * GetClusterContainer(Int_t i=0) const
Double_t MaxTrackPt() const
virtual Int_t GetEtaBin(Double_t eta) const
BeamType fBeamType
!event beam type
void FillHist(TH1 *hist, Double_t fillValue, Double_t weight=1.0, Bool_t noCorrection=kTRUE)
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)
virtual void SetNCentBins(Int_t n)
virtual void SetEventMixing(Bool_t enable)
ClassImp(AliAnalysisTaskEmcalJetHMEC) AliAnalysisTaskEmcalJetHMEC
static Double_t * GenerateFixedBinArray(Int_t n, Double_t min, Double_t max)
AliEmcalList * fOutput
!output list
Double_t fTrackBias
Jet track bias.
virtual void SetNumberOfMixingTracks(Int_t tracks)
Double_t fVertex[3]
!event vertex
AliTrackContainer * GetTrackContainer(Int_t i=0) const
void SetDoEffCorr(Int_t effcorr)
THnSparse * fhnMixedEvents
! Mixed events THnSparse
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)
const AliTrackIterableMomentumContainer accepted_momentum() const
virtual void SetMinNEventsForMixedEvents(Int_t nme)
void UserCreateOutputObjects()
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.
void SetCentralityEstimator(const char *c)
virtual Double_t EffCorrection(Double_t trkETA, Double_t trkPT, Int_t effswitch) const
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)
void SetJetAreaCut(Float_t cut)
TH2 * fHistJetH[6][5][3]
!
THnSparse * fhnJH
! JetH THnSparse
TList * OpenFile(const char *fname)
TH2 * fHistTrackEtaPhi[7]
!
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)