18 #include <TClonesArray.h>
24 #include <AliVCluster.h>
25 #include <AliVParticle.h>
34 #include "AliAnalysisManager.h"
35 #include "AliVEventHandler.h"
36 #include "AliAnalysisDataContainer.h"
85 TH1::SetDefaultSumw2(kTRUE);
86 TH2::SetDefaultSumw2(kTRUE);
88 namespace CDF = NS_AliAnalysisTaskEmcalJetCDF;
89 TString histname =
"", groupname =
"", fullgroupname =
"";
93 while ( (jetCont = static_cast<AliJetContainer*>(next())) )
95 groupname = jetCont->GetName();
97 Double_t jet_pt_min = jetCont->GetMinPt();
98 Double_t jet_pt_max = jetCont->GetMaxPt();
100 TString jetstrmin = TString::Itoa((
Int_t)jet_pt_min,10);
101 TString jetstrmax = TString::Itoa((
Int_t)jet_pt_max,10);
104 groupname = groupname +
"_" +
"ptbin" +
"_" + jetstrmin +
"_" + jetstrmax;
108 histname = TString::Format(
"%s/histo1_%d", groupname.Data(),
fCentBin);
111 histname = TString::Format(
"%s/histo2_%d", groupname.Data(),
fCentBin);
114 histname = TString::Format(
"%s/histo3_%d", groupname.Data(),
fCentBin);
117 histname = TString::Format(
"%s/histo4_%d", groupname.Data(),
fCentBin);
120 histname = TString::Format(
"%s/histo4c_%d", groupname.Data(),
fCentBin);
123 histname = TString::Format(
"%s/histo5_%d", groupname.Data(),
fCentBin);
126 histname = TString::Format(
"%s/histo6_%d", groupname.Data(),
fCentBin);
129 histname = TString::Format(
"%s/histo6c_%d", groupname.Data(),
fCentBin);
132 histname = TString::Format(
"%s/histo7_%d", groupname.Data(),
fCentBin);
135 histname = TString::Format(
"%s/histo7all_%d", groupname.Data(),
fCentBin);
138 histname = TString::Format(
"%s/histo8_%d", groupname.Data(),
fCentBin);
141 histname = TString::Format(
"%s/histo8_all_%d", groupname.Data(),
fCentBin);
144 histname = TString::Format(
"%s/histo8_p_%d", groupname.Data(),
fCentBin);
147 histname = TString::Format(
"%s/histo8_all_p_%d", groupname.Data(),
fCentBin);
150 histname = TString::Format(
"%s/histo8_pt_%d", groupname.Data(),
fCentBin);
153 histname = TString::Format(
"%s/histo8_all_pt_%d", groupname.Data(),
fCentBin);
156 histname = TString::Format(
"%s/histo8xi_%d", groupname.Data(),
fCentBin);
159 histname = TString::Format(
"%s/histo8xi_all_%d", groupname.Data(),
fCentBin);
162 histname = TString::Format(
"%s/histo8xi_p_%d", groupname.Data(),
fCentBin);
165 histname = TString::Format(
"%s/histo8xi_all_p_%d", groupname.Data(),
fCentBin);
168 histname = TString::Format(
"%s/histo8xi_pt_%d", groupname.Data(),
fCentBin);
171 histname = TString::Format(
"%s/histo8xi_all_pt_%d", groupname.Data(),
fCentBin);
175 histname = TString::Format(
"%s/histo15_%d", groupname.Data(),
fCentBin);
178 histname = TString::Format(
"%s/histo15_n70_%d", groupname.Data(),
fCentBin);
181 histname = TString::Format(
"%s/histo15_n75_%d", groupname.Data(),
fCentBin);
184 histname = TString::Format(
"%s/histo15_n80_%d", groupname.Data(),
fCentBin);
187 histname = TString::Format(
"%s/histo15_n85_%d", groupname.Data(),
fCentBin);
190 histname = TString::Format(
"%s/histo15_n90_%d", groupname.Data(),
fCentBin);
193 histname = TString::Format(
"%s/histo15_pt70_%d", groupname.Data(),
fCentBin);
196 histname = TString::Format(
"%s/histo15_pt75_%d", groupname.Data(),
fCentBin);
199 histname = TString::Format(
"%s/histo15_pt80_%d", groupname.Data(),
fCentBin);
202 histname = TString::Format(
"%s/histo15_pt85_%d", groupname.Data(),
fCentBin);
205 histname = TString::Format(
"%s/histo15_pt90_%d", groupname.Data(),
fCentBin);
208 histname = TString::Format(
"%s/histo15all_%d", groupname.Data(),
fCentBin);
211 histname = TString::Format(
"%s/histo15all_n70_%d", groupname.Data(),
fCentBin);
214 histname = TString::Format(
"%s/histo15all_n75_%d", groupname.Data(),
fCentBin);
217 histname = TString::Format(
"%s/histo15all_n80_%d", groupname.Data(),
fCentBin);
220 histname = TString::Format(
"%s/histo15all_n85_%d", groupname.Data(),
fCentBin);
223 histname = TString::Format(
"%s/histo15all_n90_%d", groupname.Data(),
fCentBin);
226 histname = TString::Format(
"%s/histo15all_pt70_%d", groupname.Data(),
fCentBin);
229 histname = TString::Format(
"%s/histo15all_pt75_%d", groupname.Data(),
fCentBin);
232 histname = TString::Format(
"%s/histo15all_pt80_%d", groupname.Data(),
fCentBin);
235 histname = TString::Format(
"%s/histo15all_pt85_%d", groupname.Data(),
fCentBin);
238 histname = TString::Format(
"%s/histo15all_pt90_%d", groupname.Data(),
fCentBin);
242 histname = TString::Format(
"%s/histo20_%d", groupname.Data(),
fCentBin);
245 histname = TString::Format(
"%s/histo20_n70_%d", groupname.Data(),
fCentBin);
248 histname = TString::Format(
"%s/histo20_n75_%d", groupname.Data(),
fCentBin);
251 histname = TString::Format(
"%s/histo20_n80_%d", groupname.Data(),
fCentBin);
254 histname = TString::Format(
"%s/histo20_n85_%d", groupname.Data(),
fCentBin);
257 histname = TString::Format(
"%s/histo20_n90_%d", groupname.Data(),
fCentBin);
260 histname = TString::Format(
"%s/histo20_pt70_%d", groupname.Data(),
fCentBin);
263 histname = TString::Format(
"%s/histo20_pt75_%d", groupname.Data(),
fCentBin);
266 histname = TString::Format(
"%s/histo20_pt80_%d", groupname.Data(),
fCentBin);
269 histname = TString::Format(
"%s/histo20_pt85_%d", groupname.Data(),
fCentBin);
272 histname = TString::Format(
"%s/histo20_pt90_%d", groupname.Data(),
fCentBin);
275 histname = TString::Format(
"%s/histo20all_%d", groupname.Data(),
fCentBin);
278 histname = TString::Format(
"%s/histo20all_n70_%d", groupname.Data(),
fCentBin);
281 histname = TString::Format(
"%s/histo20all_n75_%d", groupname.Data(),
fCentBin);
284 histname = TString::Format(
"%s/histo20all_n80_%d", groupname.Data(),
fCentBin);
287 histname = TString::Format(
"%s/histo20all_n85_%d", groupname.Data(),
fCentBin);
290 histname = TString::Format(
"%s/histo20all_n90_%d", groupname.Data(),
fCentBin);
293 histname = TString::Format(
"%s/histo20all_pt70_%d", groupname.Data(),
fCentBin);
296 histname = TString::Format(
"%s/histo20all_pt75_%d", groupname.Data(),
fCentBin);
299 histname = TString::Format(
"%s/histo20all_pt80_%d", groupname.Data(),
fCentBin);
302 histname = TString::Format(
"%s/histo20all_pt85_%d", groupname.Data(),
fCentBin);
305 histname = TString::Format(
"%s/histo20all_pt90_%d", groupname.Data(),
fCentBin);
309 histname = TString::Format(
"%s/histo_g_%d", groupname.Data(),
fCentBin);
312 histname = TString::Format(
"%s/histo_g_n70_%d", groupname.Data(),
fCentBin);
315 histname = TString::Format(
"%s/histo_g_n75_%d", groupname.Data(),
fCentBin);
318 histname = TString::Format(
"%s/histo_g_n80_%d", groupname.Data(),
fCentBin);
321 histname = TString::Format(
"%s/histo_g_n85_%d", groupname.Data(),
fCentBin);
324 histname = TString::Format(
"%s/histo_g_n90_%d", groupname.Data(),
fCentBin);
327 histname = TString::Format(
"%s/histo_g_pt70_%d", groupname.Data(),
fCentBin);
330 histname = TString::Format(
"%s/histo_g_pt75_%d", groupname.Data(),
fCentBin);
333 histname = TString::Format(
"%s/histo_g_pt80_%d", groupname.Data(),
fCentBin);
336 histname = TString::Format(
"%s/histo_g_pt85_%d", groupname.Data(),
fCentBin);
339 histname = TString::Format(
"%s/histo_g_pt90_%d", groupname.Data(),
fCentBin);
343 histname = TString::Format(
"%s/histo_ptd_%d", groupname.Data(),
fCentBin);
346 histname = TString::Format(
"%s/histo_ptd_n70_%d", groupname.Data(),
fCentBin);
349 histname = TString::Format(
"%s/histo_ptd_n75_%d", groupname.Data(),
fCentBin);
352 histname = TString::Format(
"%s/histo_ptd_n80_%d", groupname.Data(),
fCentBin);
355 histname = TString::Format(
"%s/histo_ptd_n85_%d", groupname.Data(),
fCentBin);
358 histname = TString::Format(
"%s/histo_ptd_n90_%d", groupname.Data(),
fCentBin);
361 histname = TString::Format(
"%s/histo_ptd_pt70_%d", groupname.Data(),
fCentBin);
364 histname = TString::Format(
"%s/histo_ptd_pt75_%d", groupname.Data(),
fCentBin);
367 histname = TString::Format(
"%s/histo_ptd_pt80_%d", groupname.Data(),
fCentBin);
370 histname = TString::Format(
"%s/histo_ptd_pt85_%d", groupname.Data(),
fCentBin);
373 histname = TString::Format(
"%s/histo_ptd_pt90_%d", groupname.Data(),
fCentBin);
377 histname = TString::Format(
"%s/histo_Rjt_%d", groupname.Data(),
fCentBin);
380 histname = TString::Format(
"%s/histo_Rjt_n70_%d", groupname.Data(),
fCentBin);
383 histname = TString::Format(
"%s/histo_Rjt_n75_%d", groupname.Data(),
fCentBin);
386 histname = TString::Format(
"%s/histo_Rjt_n80_%d", groupname.Data(),
fCentBin);
389 histname = TString::Format(
"%s/histo_Rjt_n85_%d", groupname.Data(),
fCentBin);
392 histname = TString::Format(
"%s/histo_Rjt_n90_%d", groupname.Data(),
fCentBin);
395 histname = TString::Format(
"%s/histo_Rjt_pt70_%d", groupname.Data(),
fCentBin);
398 histname = TString::Format(
"%s/histo_Rjt_pt75_%d", groupname.Data(),
fCentBin);
401 histname = TString::Format(
"%s/histo_Rjt_pt80_%d", groupname.Data(),
fCentBin);
404 histname = TString::Format(
"%s/histo_Rjt_pt85_%d", groupname.Data(),
fCentBin);
407 histname = TString::Format(
"%s/histo_Rjt_pt90_%d", groupname.Data(),
fCentBin);
411 histname = TString::Format(
"%s/histo_jt_%d", groupname.Data(),
fCentBin);
414 histname = TString::Format(
"%s/histo_jt_n70_%d", groupname.Data(),
fCentBin);
417 histname = TString::Format(
"%s/histo_jt_n75_%d", groupname.Data(),
fCentBin);
420 histname = TString::Format(
"%s/histo_jt_n80_%d", groupname.Data(),
fCentBin);
423 histname = TString::Format(
"%s/histo_jt_n85_%d", groupname.Data(),
fCentBin);
426 histname = TString::Format(
"%s/histo_jt_n90_%d", groupname.Data(),
fCentBin);
429 histname = TString::Format(
"%s/histo_jt_pt70_%d", groupname.Data(),
fCentBin);
432 histname = TString::Format(
"%s/histo_jt_pt75_%d", groupname.Data(),
fCentBin);
435 histname = TString::Format(
"%s/histo_jt_pt80_%d", groupname.Data(),
fCentBin);
438 histname = TString::Format(
"%s/histo_jt_pt85_%d", groupname.Data(),
fCentBin);
441 histname = TString::Format(
"%s/histo_jt_pt90_%d", groupname.Data(),
fCentBin);
452 if (!fTracksCont) { std::cout <<
"********* JET CONTAINER WITHOUT TRACKS CONTAINER *********" << std::endl;
continue; }
453 TClonesArray* fTracksContArray = fTracksCont->GetArray();
461 Int_t fNaccClus = -1;
465 if ( ( fNJets_accepted < 1 ) || ( fNaccPart < 1 ) )
467 if ( fDebug > 1 ) { std::cout <<
"accepted (fNJets || fNPart) == 0" << std::endl; }
472 { std::cout <<
"fNJets = " << fNJets_accepted <<
" ; fNPart = " << fNaccPart << std::endl; }
474 AliVParticle* track = NULL;
477 fH5->Fill ( fNJets_accepted );
509 { std::cout <<
"+++++++++++++++++>>>>>>>>> Leading jet found" << std::endl; jet1->
Print(); }
511 { Printf (
"Jet1 not found (did not survive cuts?)\n" ); }
517 std::vector< int > jet1_sorted_idxvec;
522 Int_t track_idx = -999;
531 Double_t jet1_pt85 = 0.85 * jet1_pt;
537 Double_t jet1_pt75 = 0.75 * jet1_pt;
542 fH6->Fill ( jet1_npart );
543 fH6c->Fill ( jet1_nconst );
544 fH7->Fill ( jet1_pt, jet1_nconst );
546 counter_part = 0; counter_pt = 0.;
551 for (std::size_t i = 0; i < jet1_npart; i++ )
553 track_idx = jet1_sorted_idxvec.at (i);
555 track = jet1->
TrackAt ( track_idx, fTracksContArray );
556 if (!track) { std::cout <<
"Parsing tracks of jet1 :: track not defined but it should!!!" << std::endl;
continue; }
561 fH8->Fill ( jet1->
GetZ ( track ) );
562 fH8xi->Fill ( jet1->
GetXi ( track ) );
566 fH8xi_p->Fill (
CDF::Xi (z_p) );
569 fH8_pt->Fill ( z_pt );
570 fH8xi_pt->Fill (
CDF::Xi (z_pt) );
572 fH15->Fill ( dpart, track_pt, track_pt );
573 fH20->Fill ( dpart );
576 if ( counter_part <= jet1_n70 )
578 fH15_n70->Fill ( dpart, track_pt, track_pt );
579 fH20_n70->Fill ( dpart );
582 if ( counter_part <= jet1_n75 )
584 fH15_n75->Fill ( dpart, track_pt, track_pt );
585 fH20_n75->Fill ( dpart );
588 if ( counter_part <= jet1_n80 )
590 fH15_n80->Fill ( dpart, track_pt, track_pt );
591 fH20_n80->Fill ( dpart );
594 if ( counter_part <= jet1_n85 )
596 fH15_n85->Fill ( dpart, track_pt, track_pt );
597 fH20_n85->Fill ( dpart );
600 if ( counter_part <= jet1_n90 )
602 fH15_n90->Fill ( dpart, track_pt, track_pt );
603 fH20_n90->Fill ( dpart );
607 if ( counter_pt <= jet1_pt70 )
609 fH15_pt70->Fill ( dpart, track_pt, track_pt );
610 fH20_pt70->Fill ( dpart );
613 if ( counter_pt <= jet1_pt75 )
615 fH15_pt75->Fill ( dpart, track_pt, track_pt );
616 fH20_pt75->Fill ( dpart );
619 if ( counter_pt <= jet1_pt80 )
621 fH15_pt80->Fill ( dpart, track_pt, track_pt );
622 fH20_pt80->Fill ( dpart );
625 if ( counter_pt <= jet1_pt85 )
627 fH15_pt85->Fill ( dpart, track_pt, track_pt );
628 fH20_pt85->Fill ( dpart );
631 if ( counter_pt <= jet1_pt90 )
633 fH15_pt90->Fill ( dpart, track_pt, track_pt );
634 fH20_pt90->Fill ( dpart );
637 ++counter_part; counter_pt += track_pt;
639 jet1_sorted_idxvec.clear();
643 track = NULL; jet1 = NULL;
650 std::vector< int > jet_sorted_idxvec ;
653 for(
auto jet : jetCont->
accepted())
655 if (!jet) {
continue; }
656 Int_t track_idx = -999;
657 jet_pt = 0. ; jet_npart = 0; jet_nconst = 0;
658 counter_part = 0; counter_pt = 0.;
661 jet_sorted_idxvec.clear();
669 g_tot = 0.; sum_part_pt_tot = 0.; sum_part_pt2_tot = 0.;
670 g_n90 = 0.; sum_part_pt_n90 = 0.; sum_part_pt2_n90 = 0.;
671 g_n85 = 0.; sum_part_pt_n85 = 0.; sum_part_pt2_n85 = 0.;
672 g_n80 = 0.; sum_part_pt_n80 = 0.; sum_part_pt2_n80 = 0.;
673 g_n75 = 0.; sum_part_pt_n75 = 0.; sum_part_pt2_n75 = 0.;
674 g_n70 = 0.; sum_part_pt_n70 = 0.; sum_part_pt2_n70 = 0.;
675 g_pt90 = 0.; sum_part_pt_pt90 = 0.; sum_part_pt2_pt90 = 0.;
676 g_pt85 = 0.; sum_part_pt_pt85 = 0.; sum_part_pt2_pt85 = 0.;
677 g_pt80 = 0.; sum_part_pt_pt80 = 0.; sum_part_pt2_pt80 = 0.;
678 g_pt75 = 0.; sum_part_pt_pt75 = 0.; sum_part_pt2_pt75 = 0.;
679 g_pt70 = 0.; sum_part_pt_pt70 = 0.; sum_part_pt2_pt70 = 0.;
682 jet_n90 = (
UShort_t ) ( 0.9 * jet_npart );
683 jet_pt90 = 0.9 * jet_pt;
685 jet_n85 = (
UShort_t ) ( 0.85 * jet_npart );
686 jet_pt85 = 0.85 * jet_pt;
688 jet_n80 = (
UShort_t ) ( 0.8 * jet_npart );
689 jet_pt80 = 0.8 * jet_pt;
691 jet_n75 = (
UShort_t ) ( 0.75 * jet_npart );
692 jet_pt75 = 0.75 * jet_pt;
694 jet_n70 = (
UShort_t ) ( 0.7 * jet_npart );
695 jet_pt70 = 0.7 * jet_pt;
697 fH1->Fill ( jet_pt );
698 fH2->Fill ( jet->
Eta() );
699 fH3->Fill ( jet->
Phi() );
700 fH4->Fill ( jet_npart );
701 fH4c->Fill ( jet_nconst );
702 fH7all->Fill ( jet_pt, jet_nconst );
705 for (std::size_t i = 0; i < jet_npart; i++ )
707 track_idx = jet_sorted_idxvec.at (i);
709 track = jet->
TrackAt ( track_idx, fTracksContArray );
710 if (!track) { std::cout <<
"Parsing tracks of jets :: track not defined but it should!!!" << std::endl;
continue; }
716 fH8_all->Fill ( jet->
GetZ ( track ) );
717 fH8xi_all->Fill ( jet->
GetXi ( track ) );
720 fH8_all_p->Fill ( z_p );
721 fH8xi_all_p->Fill (
CDF::Xi (z_p) );
724 fH8_all_pt->Fill ( z_pt );
725 fH8xi_all_pt->Fill (
CDF::Xi (z_pt) );
727 fH15all->Fill ( dpart, track_pt, track_pt );
728 fH20all->Fill ( dpart );
730 fH_Rjt->Fill ( dpart, jt, jt );
734 g_tot += (track_pt * dpart)/jet_pt;
735 sum_part_pt_tot += track_pt;
736 sum_part_pt2_tot += TMath::Power( track_pt, 2 );
739 if ( counter_part <= jet_n90 )
741 fH15all_n90->Fill ( dpart, track_pt );
742 fH20all_n90->Fill ( dpart );
743 fH_Rjt_n90->Fill ( dpart, jt, jt );
744 fH_jt_n90->Fill ( jt );
747 g_n90 += (track_pt * dpart)/jet_pt;
748 sum_part_pt_n90 += track_pt;
749 sum_part_pt2_n90 += TMath::Power( track_pt, 2 );
752 if ( counter_pt <= jet_pt90 )
754 fH15all_pt90->Fill ( dpart, track_pt );
755 fH20all_pt90->Fill ( dpart );
756 fH_Rjt_pt90->Fill ( dpart, jt, jt );
757 fH_jt_pt90->Fill ( jt );
760 g_pt90 += (track_pt * dpart)/jet_pt;
761 sum_part_pt_pt90 += track_pt;
762 sum_part_pt2_pt90 += TMath::Power( track_pt, 2 );
766 if ( counter_part <= jet_n85 )
768 fH15all_n85->Fill ( dpart, track_pt );
769 fH20all_n85->Fill ( dpart );
770 fH_Rjt_n85->Fill ( dpart, jt, jt );
771 fH_jt_n85->Fill ( jt );
774 g_n85 += (track_pt * dpart)/jet_pt;
775 sum_part_pt_n85 += track_pt;
776 sum_part_pt2_n85 += TMath::Power( track_pt, 2 );
779 if ( counter_pt <= jet_pt85 )
781 fH15all_pt85->Fill ( dpart, track_pt );
782 fH20all_pt85->Fill ( dpart );
783 fH_Rjt_pt85->Fill ( dpart, jt, jt );
784 fH_jt_pt85->Fill ( jt );
787 g_pt85 += (track_pt * dpart)/jet_pt;
788 sum_part_pt_pt85 += track_pt;
789 sum_part_pt2_pt85 += TMath::Power( track_pt, 2 );
793 if ( counter_part <= jet_n80 )
795 fH15all_n80->Fill ( dpart, track_pt );
796 fH20all_n80->Fill ( dpart );
797 fH_Rjt_n80->Fill ( dpart, jt, jt );
798 fH_jt_n80->Fill ( jt );
801 g_n80 += (track_pt * dpart)/jet_pt;
802 sum_part_pt_n80 += track_pt;
803 sum_part_pt2_n80 += TMath::Power( track_pt, 2 );
806 if ( counter_pt <= jet_pt80 )
808 fH15all_pt80->Fill ( dpart, track_pt );
809 fH20all_pt80->Fill ( dpart );
810 fH_Rjt_pt80->Fill ( dpart, jt, jt );
811 fH_jt_pt80->Fill ( jt );
814 g_pt80 += (track_pt * dpart)/jet_pt;
815 sum_part_pt_pt80 += track_pt;
816 sum_part_pt2_pt80 += TMath::Power( track_pt, 2 );
820 if ( counter_part <= jet_n75 )
822 fH15all_n75->Fill ( dpart, track_pt );
823 fH20all_n75->Fill ( dpart );
824 fH_Rjt_n75->Fill ( dpart, jt, jt );
825 fH_jt_n75->Fill ( jt );
828 g_n75 += (track_pt * dpart)/jet_pt;
829 sum_part_pt_n75 += track_pt;
830 sum_part_pt2_n75 += TMath::Power( track_pt, 2 );
833 if ( counter_pt <= jet_pt75 )
835 fH15all_pt75->Fill ( dpart, track_pt );
836 fH20all_pt75->Fill ( dpart );
837 fH_Rjt_pt75->Fill ( dpart, jt, jt );
838 fH_jt_pt75->Fill ( jt );
841 g_pt75 += (track_pt * dpart)/jet_pt;
842 sum_part_pt_pt75 += track_pt;
843 sum_part_pt2_pt75 += TMath::Power( track_pt, 2 );
847 if ( counter_part <= jet_n70 )
849 fH15all_n70->Fill ( dpart, track_pt );
850 fH20all_n70->Fill ( dpart );
851 fH_Rjt_n70->Fill ( dpart, jt, jt );
852 fH_jt_n70->Fill ( jt );
855 g_n70 += (track_pt * dpart)/jet_pt;
856 sum_part_pt_n70 += track_pt;
857 sum_part_pt2_n70 += TMath::Power( track_pt, 2 );
860 if ( counter_pt <= jet_pt70 )
862 fH15all_pt70->Fill ( dpart, track_pt );
863 fH20all_pt70->Fill ( dpart );
864 fH_Rjt_pt70->Fill ( dpart, jt, jt );
865 fH_jt_pt70->Fill ( jt );
868 g_pt70 += (track_pt * dpart)/jet_pt;
869 sum_part_pt_pt70 += track_pt;
870 sum_part_pt2_pt70 += TMath::Power( track_pt, 2 );
872 ++counter_part; counter_pt += track_pt;
876 fHg_n70->Fill ( g_n70 ); fHg_pt70->Fill ( g_pt70 );
877 fHg_n75->Fill ( g_n75 ); fHg_pt75->Fill ( g_pt75 );
878 fHg_n80->Fill ( g_n80 ); fHg_pt80->Fill ( g_pt80 );
879 fHg_n85->Fill ( g_n85 ); fHg_pt85->Fill ( g_pt85 );
880 fHg_n90->Fill ( g_n90 ); fHg_pt90->Fill ( g_pt90 );
882 fHptd->Fill( TMath::Sqrt(sum_part_pt2_tot)/sum_part_pt_tot );
884 fHptd_n70->Fill( TMath::Sqrt(sum_part_pt2_n70)/sum_part_pt_n70 );
885 fHptd_n75->Fill( TMath::Sqrt(sum_part_pt2_n75)/sum_part_pt_n75 );
886 fHptd_n80->Fill( TMath::Sqrt(sum_part_pt2_n80)/sum_part_pt_n80 );
887 fHptd_n85->Fill( TMath::Sqrt(sum_part_pt2_n85)/sum_part_pt_n85 );
888 fHptd_n90->Fill( TMath::Sqrt(sum_part_pt2_n90)/sum_part_pt_n90 );
890 fHptd_pt70->Fill( TMath::Sqrt(sum_part_pt2_pt70)/sum_part_pt_pt70 );
891 fHptd_pt75->Fill( TMath::Sqrt(sum_part_pt2_pt75)/sum_part_pt_pt75 );
892 fHptd_pt80->Fill( TMath::Sqrt(sum_part_pt2_pt80)/sum_part_pt_pt80 );
893 fHptd_pt85->Fill( TMath::Sqrt(sum_part_pt2_pt85)/sum_part_pt_pt85 );
894 fHptd_pt90->Fill( TMath::Sqrt(sum_part_pt2_pt90)/sum_part_pt_pt90 );
899 jet = NULL; track = NULL;
914 TString histname =
"", histtitle =
"", groupname =
"", fullgroupname =
"";
917 while ((jetCont = static_cast<AliJetContainer*>(next())))
919 groupname = jetCont->GetName();
921 Double_t jet_pt_min = jetCont->GetMinPt();
922 Double_t jet_pt_max = jetCont->GetMaxPt();
924 TString jetstrmin = TString::Itoa((
Int_t)jet_pt_min,10);
925 TString jetstrmax = TString::Itoa((
Int_t)jet_pt_max,10);
928 groupname = groupname +
"_" +
"ptbin" +
"_" + jetstrmin +
"_" + jetstrmax;
935 Double_t h1_high = h1_low + h1_binwidth * h1_nbin;
936 histname = TString::Format(
"%s/histo1_%d", groupname.Data(), cent);
937 histtitle = TString::Format(
"%s;#it{p}_{T,jet} (GeV/#it{c}) (accepted);Jets", histname.Data());
942 Double_t h2_high = h2_low + h2_binwidth * h2_nbin;
943 histname = TString::Format(
"%s/histo2_%d", groupname.Data(), cent);
944 histtitle = TString::Format(
"%s;#it{#eta}_{jet};Jets", histname.Data());
949 Double_t h3_high = h3_low + h3_binwidth * h3_nbin;
950 histname = TString::Format(
"%s/histo3_%d", groupname.Data(), cent);
951 histtitle = TString::Format(
"%s;#it{#phi}_{jet};Jets", histname.Data());
956 Double_t h4_high = h4_low + h4_binwidth * h4_nbin;
957 histname = TString::Format(
"%s/histo4_%d", groupname.Data(), cent);
958 histtitle = TString::Format(
"%s;N_{tracks}(jet);Jets", histname.Data());
961 histname = TString::Format(
"%s/histo4c_%d", groupname.Data(), cent);
962 histtitle = TString::Format(
"%s;N_{tracks}(jet);Jets", histname.Data());
965 histname = TString::Format(
"%s/histo6_%d", groupname.Data(), cent);
966 histtitle = TString::Format(
"%s;N_{tracks}(jet1);Jets", histname.Data());
969 histname = TString::Format(
"%s/histo6c_%d", groupname.Data(), cent);
970 histtitle = TString::Format(
"%s;N_{tracks}(jet1);Jets", histname.Data());
976 Double_t h5_high = h5_low + h5_binwidth * h5_nbin;
977 histname = TString::Format(
"%s/histo5_%d", groupname.Data(), cent);
978 histtitle = TString::Format(
"%s;N_{jets};Events", histname.Data());
983 Double_t h7_xhigh = h7_xlow + h7_xbinwidth * h7_xnbin;
985 Double_t h7_yhigh = h7_ylow + h7_ybinwidth * h7_ynbin;
987 histname = TString::Format(
"%s/histo7_%d", groupname.Data(), cent);
988 histtitle = TString::Format(
"%s;#it{p}_{T,jet1} (GeV/c);N_{tracks}(jet1)", histname.Data());
989 fHistManager.
CreateTH2(histname, histtitle, h7_xnbin, h7_xlow, h7_xhigh, h7_ynbin, h7_ylow, h7_yhigh);
991 histname = TString::Format(
"%s/histo7all_%d", groupname.Data(), cent);
992 histtitle = TString::Format(
"%s;#it{p}_{T,jet} (GeV/c);N_{tracks}(jets)", histname.Data());
993 fHistManager.
CreateTH2(histname, histtitle, h7_xnbin, h7_xlow, h7_xhigh, h7_ynbin, h7_ylow, h7_yhigh);
998 Double_t h8_high = h8_low + h8_binwidth * h8_nbin;
1001 histname = TString::Format(
"%s/histo8_%d", groupname.Data(), cent);
1002 histtitle = TString::Format(
"%s - jet1;z;F(Z) = 1/N_{jet1} dN/dz", histname.Data());
1005 histname = TString::Format(
"%s/histo8_all_%d", groupname.Data(), cent);
1006 histtitle = TString::Format(
"%s - all jets;z;F(Z) = 1/N_{jets} dN/dz", histname.Data());
1011 histname = TString::Format(
"%s/histo8_p_%d", groupname.Data(), cent);
1012 histtitle = TString::Format(
"%s - jet1 P_tot;z = p_{track}/p_{jet1};F(Z) = 1/N_{jet1} dN/dz", histname.Data());
1015 histname = TString::Format(
"%s/histo8_all_p_%d", groupname.Data(), cent);
1016 histtitle = TString::Format(
"%s - all jets P_tot;z = p_{track}/p_{jet};F(Z) = 1/N_{jets} dN/dz", histname.Data());
1021 histname = TString::Format(
"%s/histo8_pt_%d", groupname.Data(), cent);
1022 histtitle = TString::Format(
"%s - jet1 Pt;z = p_{T,track}/p_{T,jet1};F(Z) = 1/N_{jet1} dN/dz", histname.Data());
1025 histname = TString::Format(
"%s/histo8_all_pt_%d", groupname.Data(), cent);
1026 histtitle = TString::Format(
"%s - all jets Pt;z = p_{T,track}/p_{T,jet1};F(Z) = 1/N_{jets} dN/dz", histname.Data());
1032 Double_t h8xi_high = h8xi_low + h8xi_binwidth * h8xi_nbin;
1033 histname = TString::Format(
"%s/histo8xi_%d", groupname.Data(), cent);
1034 histtitle = TString::Format(
"%s - jet1;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
1037 histname = TString::Format(
"%s/histo8xi_all_%d", groupname.Data(), cent);
1038 histtitle = TString::Format(
"%s - all jets;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
1042 histname = TString::Format(
"%s/histo8xi_p_%d", groupname.Data(), cent);
1043 histtitle = TString::Format(
"%s - jet1 P_tot;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
1046 histname = TString::Format(
"%s/histo8xi_all_p_%d", groupname.Data(), cent);
1047 histtitle = TString::Format(
"%s - all jets P_tot;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
1051 histname = TString::Format(
"%s/histo8xi_pt_%d", groupname.Data(), cent);
1052 histtitle = TString::Format(
"%s - jet1 Pt;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
1055 histname = TString::Format(
"%s/histo8xi_all_pt_%d", groupname.Data(), cent);
1056 histtitle = TString::Format(
"%s - all jets Pt;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
1062 Double_t h15_xhigh = h15_xlow + h15_xbinwidth * h15_xnbin;
1064 Double_t h15_yhigh = h15_ylow + h15_ybinwidth * h15_ynbin;
1067 histname = TString::Format(
"%s/histo15_%d", groupname.Data(), cent);
1068 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1069 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1072 histname = TString::Format(
"%s/histo15_n70_%d", groupname.Data(), cent);
1073 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1074 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1076 histname = TString::Format(
"%s/histo15_n75_%d", groupname.Data(), cent);
1077 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1078 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1080 histname = TString::Format(
"%s/histo15_n80_%d", groupname.Data(), cent);
1081 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1082 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1084 histname = TString::Format(
"%s/histo15_n85_%d", groupname.Data(), cent);
1085 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1086 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1088 histname = TString::Format(
"%s/histo15_n90_%d", groupname.Data(), cent);
1089 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1090 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1093 histname = TString::Format(
"%s/histo15_pt70_%d", groupname.Data(), cent);
1094 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1095 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1097 histname = TString::Format(
"%s/histo15_pt75_%d", groupname.Data(), cent);
1098 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1099 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1101 histname = TString::Format(
"%s/histo15_pt80_%d", groupname.Data(), cent);
1102 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1103 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1105 histname = TString::Format(
"%s/histo15_pt85_%d", groupname.Data(), cent);
1106 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1107 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1109 histname = TString::Format(
"%s/histo15_pt90_%d", groupname.Data(), cent);
1110 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1111 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1115 histname = TString::Format(
"%s/histo15all_%d", groupname.Data(), cent);
1116 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1117 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1120 histname = TString::Format(
"%s/histo15all_n70_%d", groupname.Data(), cent);
1121 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1122 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1124 histname = TString::Format(
"%s/histo15all_n75_%d", groupname.Data(), cent);
1125 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1126 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1128 histname = TString::Format(
"%s/histo15all_n80_%d", groupname.Data(), cent);
1129 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1130 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1132 histname = TString::Format(
"%s/histo15all_n85_%d", groupname.Data(), cent);
1133 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1134 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1136 histname = TString::Format(
"%s/histo15all_n90_%d", groupname.Data(), cent);
1137 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1138 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1141 histname = TString::Format(
"%s/histo15all_pt70_%d", groupname.Data(), cent);
1142 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1143 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1145 histname = TString::Format(
"%s/histo15all_pt75_%d", groupname.Data(), cent);
1146 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1147 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1149 histname = TString::Format(
"%s/histo15all_pt80_%d", groupname.Data(), cent);
1150 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1151 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1153 histname = TString::Format(
"%s/histo15all_pt85_%d", groupname.Data(), cent);
1154 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1155 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1157 histname = TString::Format(
"%s/histo15all_pt90_%d", groupname.Data(), cent);
1158 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1159 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1164 Double_t h20_high = h20_low + h20_binwidth * h20_nbin;
1167 histname = TString::Format(
"%s/histo20_%d", groupname.Data(), cent);
1168 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1172 histname = TString::Format(
"%s/histo20_n70_%d", groupname.Data(), cent);
1173 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1176 histname = TString::Format(
"%s/histo20_n75_%d", groupname.Data(), cent);
1177 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1180 histname = TString::Format(
"%s/histo20_n80_%d", groupname.Data(), cent);
1181 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1184 histname = TString::Format(
"%s/histo20_n85_%d", groupname.Data(), cent);
1185 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1188 histname = TString::Format(
"%s/histo20_n90_%d", groupname.Data(), cent);
1189 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1194 histname = TString::Format(
"%s/histo20_pt70_%d", groupname.Data(), cent);
1195 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1198 histname = TString::Format(
"%s/histo20_pt75_%d", groupname.Data(), cent);
1199 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1202 histname = TString::Format(
"%s/histo20_pt80_%d", groupname.Data(), cent);
1203 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1206 histname = TString::Format(
"%s/histo20_pt85_%d", groupname.Data(), cent);
1207 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1210 histname = TString::Format(
"%s/histo20_pt90_%d", groupname.Data(), cent);
1211 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1216 histname = TString::Format(
"%s/histo20all_%d", groupname.Data(), cent);
1217 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1221 histname = TString::Format(
"%s/histo20all_n70_%d", groupname.Data(), cent);
1222 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1225 histname = TString::Format(
"%s/histo20all_n75_%d", groupname.Data(), cent);
1226 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1229 histname = TString::Format(
"%s/histo20all_n80_%d", groupname.Data(), cent);
1230 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1233 histname = TString::Format(
"%s/histo20all_n85_%d", groupname.Data(), cent);
1234 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1237 histname = TString::Format(
"%s/histo20all_n90_%d", groupname.Data(), cent);
1238 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1243 histname = TString::Format(
"%s/histo20all_pt70_%d", groupname.Data(), cent);
1244 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1247 histname = TString::Format(
"%s/histo20all_pt75_%d", groupname.Data(), cent);
1248 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1251 histname = TString::Format(
"%s/histo20all_pt80_%d", groupname.Data(), cent);
1252 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1255 histname = TString::Format(
"%s/histo20all_pt85_%d", groupname.Data(), cent);
1256 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1259 histname = TString::Format(
"%s/histo20all_pt90_%d", groupname.Data(), cent);
1260 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1267 Double_t hg_high = hg_low + hg_binwidth * hg_nbin;
1270 histname = TString::Format(
"%s/histo_g_%d", groupname.Data(), cent);
1271 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1276 histname = TString::Format(
"%s/histo_g_n70_%d", groupname.Data(), cent);
1277 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1280 histname = TString::Format(
"%s/histo_g_n75_%d", groupname.Data(), cent);
1281 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1284 histname = TString::Format(
"%s/histo_g_n80_%d", groupname.Data(), cent);
1285 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1288 histname = TString::Format(
"%s/histo_g_n85_%d", groupname.Data(), cent);
1289 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1292 histname = TString::Format(
"%s/histo_g_n90_%d", groupname.Data(), cent);
1293 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1298 histname = TString::Format(
"%s/histo_g_pt70_%d", groupname.Data(), cent);
1299 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1302 histname = TString::Format(
"%s/histo_g_pt75_%d", groupname.Data(), cent);
1303 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1306 histname = TString::Format(
"%s/histo_g_pt80_%d", groupname.Data(), cent);
1307 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1310 histname = TString::Format(
"%s/histo_g_pt85_%d", groupname.Data(), cent);
1311 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1314 histname = TString::Format(
"%s/histo_g_pt90_%d", groupname.Data(), cent);
1315 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1322 Double_t hptd_high = hptd_low + hptd_binwidth * hptd_nbin;
1325 histname = TString::Format(
"%s/histo_ptd_%d", groupname.Data(), cent);
1326 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1331 histname = TString::Format(
"%s/histo_ptd_n70_%d", groupname.Data(), cent);
1332 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1335 histname = TString::Format(
"%s/histo_ptd_n75_%d", groupname.Data(), cent);
1336 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1339 histname = TString::Format(
"%s/histo_ptd_n80_%d", groupname.Data(), cent);
1340 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1343 histname = TString::Format(
"%s/histo_ptd_n85_%d", groupname.Data(), cent);
1344 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1347 histname = TString::Format(
"%s/histo_ptd_n90_%d", groupname.Data(), cent);
1348 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1353 histname = TString::Format(
"%s/histo_ptd_pt70_%d", groupname.Data(), cent);
1354 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1357 histname = TString::Format(
"%s/histo_ptd_pt75_%d", groupname.Data(), cent);
1358 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1361 histname = TString::Format(
"%s/histo_ptd_pt80_%d", groupname.Data(), cent);
1362 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1365 histname = TString::Format(
"%s/histo_ptd_pt85_%d", groupname.Data(), cent);
1366 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1369 histname = TString::Format(
"%s/histo_ptd_pt90_%d", groupname.Data(), cent);
1370 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1376 Double_t h_Rjt_xhigh = h_Rjt_xlow + h_Rjt_xbinwidth * h_Rjt_xnbin;
1378 Double_t h_Rjt_yhigh = h_Rjt_ylow + h_Rjt_ybinwidth * h_Rjt_ynbin;
1381 histname = TString::Format(
"%s/histo_Rjt_%d", groupname.Data(), cent);
1382 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1383 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1386 histname = TString::Format(
"%s/histo_Rjt_n70_%d", groupname.Data(), cent);
1387 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1388 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1390 histname = TString::Format(
"%s/histo_Rjt_n75_%d", groupname.Data(), cent);
1391 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1392 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1394 histname = TString::Format(
"%s/histo_Rjt_n80_%d", groupname.Data(), cent);
1395 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1396 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1398 histname = TString::Format(
"%s/histo_Rjt_n85_%d", groupname.Data(), cent);
1399 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1400 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1402 histname = TString::Format(
"%s/histo_Rjt_n90_%d", groupname.Data(), cent);
1403 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1404 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1407 histname = TString::Format(
"%s/histo_Rjt_pt70_%d", groupname.Data(), cent);
1408 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1409 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1411 histname = TString::Format(
"%s/histo_Rjt_pt75_%d", groupname.Data(), cent);
1412 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1413 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1415 histname = TString::Format(
"%s/histo_Rjt_pt80_%d", groupname.Data(), cent);
1416 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1417 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1419 histname = TString::Format(
"%s/histo_Rjt_pt85_%d", groupname.Data(), cent);
1420 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1421 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1423 histname = TString::Format(
"%s/histo_Rjt_pt90_%d", groupname.Data(), cent);
1424 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1425 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1430 Double_t h_jt_xhigh = h_jt_xlow + h_jt_xbinwidth * h_jt_xnbin;
1433 histname = TString::Format(
"%s/histo_jt_%d", groupname.Data(), cent);
1434 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1438 histname = TString::Format(
"%s/histo_jt_n70_%d", groupname.Data(), cent);
1439 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1442 histname = TString::Format(
"%s/histo_jt_n75_%d", groupname.Data(), cent);
1443 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1446 histname = TString::Format(
"%s/histo_jt_n80_%d", groupname.Data(), cent);
1447 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1450 histname = TString::Format(
"%s/histo_jt_n85_%d", groupname.Data(), cent);
1451 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1454 histname = TString::Format(
"%s/histo_jt_n90_%d", groupname.Data(), cent);
1455 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1459 histname = TString::Format(
"%s/histo_jt_pt70_%d", groupname.Data(), cent);
1460 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1463 histname = TString::Format(
"%s/histo_jt_pt75_%d", groupname.Data(), cent);
1464 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1467 histname = TString::Format(
"%s/histo_jt_pt80_%d", groupname.Data(), cent);
1468 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1471 histname = TString::Format(
"%s/histo_jt_pt85_%d", groupname.Data(), cent);
1472 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1475 histname = TString::Format(
"%s/histo_jt_pt90_%d", groupname.Data(), cent);
1476 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1486 TH1::SetDefaultSumw2(kTRUE);
1487 TH2::SetDefaultSumw2(kTRUE);
1492 while ((obj = nexthist())) {
fOutput->Add(obj); }
1527 Int_t entries =
event->GetNumberOfTracks();
1530 std::vector<ptidx_pair> pair_list;
1531 pair_list.reserve ( entries );
1533 for (
Int_t i_entry = 0; i_entry < entries; i_entry++ )
1535 AliVParticle* track =
event->GetTrack ( i_entry );
1536 if ( !track ) { std::cout << Form (
"Unable to find track %d in collection %s", i_entry, event->GetName()) << std::endl ;
continue; }
1538 pair_list.push_back ( std::make_pair ( track->Pt(), i_entry ) );
1541 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1544 std::vector<Int_t> index_sorted_list;
1545 index_sorted_list.reserve ( entries );
1548 for (
auto it : pair_list) { index_sorted_list.push_back(it.second); }
1550 return index_sorted_list;
1557 Int_t entries = trackscont->GetNEntries();
1560 std::vector<ptidx_pair> pair_list;
1561 pair_list.reserve ( entries );
1565 for(
auto part : partCont->
all()) {
1566 if (!part) {
continue;}
1567 pair_list.push_back ( std::make_pair ( part->Pt(), i_entry++ ) );
1570 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1573 std::vector<Int_t> index_sorted_list;
1574 index_sorted_list.reserve ( i_entry );
1577 for (
auto it : pair_list) { index_sorted_list.push_back(it.second); }
1579 return index_sorted_list;
1594 if ( !mgr ) { ::Error (
"AddTaskEmcalJetCDF",
"No analysis manager to connect to." );
return NULL; }
1598 AliVEventHandler* handler = mgr->GetInputEventHandler();
1599 if (!handler) { ::Error (
"AddTaskEmcalJetCDF",
"This task requires an input event handler" );
return NULL; }
1601 enum EDataType_t { kUnknown, kESD, kAOD }; EDataType_t dataType = kUnknown;
1603 if (handler->InheritsFrom(
"AliESDInputHandler")) { dataType = kESD; }
1605 if (handler->InheritsFrom(
"AliAODInputHandler")) { dataType = kAOD; }
1612 TString clusters ( nclusters );
1615 if ( tracks.EqualTo(
"usedefault") )
1617 if ( dataType == kESD ) { tracks =
"Tracks"; }
1619 if ( dataType == kAOD ) { tracks =
"tracks"; }
1624 if ( clusters.EqualTo(
"usedefault") )
1626 if ( dataType == kESD ) { clusters =
"CaloClusters"; }
1628 if ( dataType == kAOD ) { clusters =
"caloClusters"; }
1633 if ( cells.EqualTo(
"usedefault") )
1635 if (dataType == kESD) { cells =
"EMCALCells"; }
1637 if (dataType == kAOD) { cells =
"emcalCells"; }
1643 if (!tracks.IsNull()) { name +=
"_" + tracks; }
1644 if (!clusters.IsNull()) { name +=
"_" + clusters; }
1645 if (!cells.IsNull()) { name +=
"_" + cells; }
1646 if (!suffix.IsNull()) { name +=
"_" +
suffix; }
1652 if ( tracks.EqualTo(
"mcparticles") ) {
1657 if ( tracks.EqualTo(
"tracks") || tracks.EqualTo(
"Tracks") ) {
1662 if ( !tracks.IsNull())
1670 mgr->AddTask ( cdfTask );
1673 AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();
1675 TString contname = name +
"_histos";
1676 TString outfile (Form(
"%s", AliAnalysisManager::GetCommonFileName()));
1677 AliAnalysisDataContainer *coutput1 = mgr->CreateContainer ( contname.Data(), TList::Class(), AliAnalysisManager::kOutputContainer, outfile.Data() );
1679 mgr->ConnectInput ( cdfTask, 0, cinput1 );
1680 mgr->ConnectOutput ( cdfTask, 1, coutput1 );
1696 if (!jetCont) {
return; }
AliAnalysisTaskEmcalJetCDF()
THistManager fHistManager
Histogram manager.
THashList * CreateHistoGroup(const char *groupname)
Double_t GetXi(const AliVParticle *trk) const
const AliParticleIterableContainer all() const
void SetLeadingHadronType(Int_t t)
Declaration of class AliTLorentzVector.
AliClusterContainer * GetClusterContainer() const
Int_t fCentBin
!event centrality bin
std::vector< Int_t > SortTracksPt(AliVEvent *event)
void SetPercAreaCut(Float_t p)
void SetVzRange(Double_t min, Double_t max)
void jetContSetParams(AliJetContainer *jetCont, Float_t jetptmin=1., Float_t jetptmax=500., Float_t jetareacutperc=0., Int_t leadhadtype=2, Int_t nLeadJets=1, Float_t mintrackpt=0.15, Float_t maxtrackpt=1000.)
AliClusterContainer * AddClusterContainer(const char *n)
UShort_t GetNumberOfConstituents() const
Container for particles within the EMCAL framework.
void Terminate(Option_t *option)
void UserCreateOutputObjects()
UShort_t GetNumberOfTracks() const
std::ostream & Print(std::ostream &in) const
AliParticleContainer * GetParticleContainer() const
AliEmcalJet * GetLeadingJet(const char *opt="")
void SetMinTrackPt(Float_t b)
TH2 * CreateTH2(const char *name, const char *title, int nbinsx, double xmin, double xmax, int nbinsy, double ymin, double ymax, Option_t *opt="")
TObject * FindObject(const char *name) const
void SetJetPtCut(Float_t cut)
THashList * GetListOfHistograms() const
void SetNLeadingJets(Int_t t)
TObject * GetHistogram(const char *histName)
AliParticleContainer * AddParticleContainer(const char *n)
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
Double_t Z_pt(const AliEmcalJet *jet, const AliVParticle *trk)
Int_t fNcentBins
how many centrality bins
AliAnalysisTaskEmcalJetCDF * AddTaskEmcalJetCDF(const char *ntracks="usedefault", const char *nclusters="usedefault", const char *ncells="usedefault", const char *tag="CDF")
Int_t GetNAcceptedClusters() const
AliMCParticleContainer * AddMCParticleContainer(const char *n)
Double_t GetZ(const Double_t trkPx, const Double_t trkPy, const Double_t trkPz) const
TObjArray fJetCollArray
jet collection array
Double_t DeltaR(const AliVParticle *part) const
Double_t Perp(const AliVParticle &trk1, const AliVParticle &trk2)
AliEmcalList * fOutput
!output list
virtual ~AliAnalysisTaskEmcalJetCDF()
Destructor.
Short_t TrackAt(Int_t idx) const
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
AliTrackContainer * AddTrackContainer(const char *n)
void SetMakeGeneralHistograms(Bool_t g)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
functional for sorting pair by first element - descending
void UserCreateOutputObjects()
const AliJetIterableContainer accepted() const
Declaration of class AliAnalysisTaskEmcalJetCDF.
void SetCaloCellsName(const char *n)
Int_t GetNAcceptedParticles() const
void SetMaxTrackPt(Float_t b)
Container structure for EMCAL clusters.
Double_t Z_ptot(const AliEmcalJet *jet, const AliVParticle *trk)
Container for jet within the EMCAL jet framework.
void SetJetPtCutMax(Float_t cut)
std::vector< int > GetPtSortedTrackConstituentIndexes(TClonesArray *tracks) const
Analysis of jet shapes and FF of all jets and leading jets.