18 #include <TClonesArray.h> 24 #include <AliVCluster.h> 25 #include <AliVParticle.h> 34 #include "AliAnalysisManager.h" 35 #include "AliVEventHandler.h" 36 #include "AliAnalysisDataContainer.h" 88 TH1::SetDefaultSumw2(kTRUE);
89 TH2::SetDefaultSumw2(kTRUE);
92 TString histname =
"", groupname =
"", fullgroupname =
"";
96 while ( (jetCont = static_cast<AliJetContainer*>(next())) ) {
101 if (!fTracksCont) { std::cout <<
"********* JET CONTAINER WITHOUT TRACKS CONTAINER *********" << std::endl;
continue; }
102 TClonesArray* fTracksContArray = fTracksCont->GetArray();
111 if ( ( fNJets_accepted < 1 ) || ( fNaccPart < 1 ) ) {
112 if ( fDebug > 1 ) { std::cout <<
"accepted (fNJets || fNPart) == 0" << std::endl; }
116 if ( fDebug > 1 ) { std::cout <<
"fNJets = " << fNJets_accepted <<
" ; fNPart = " << fNaccPart << std::endl; }
121 if ( fDebug > 1 ) { Printf (
"Jet1 not found (did not survive cuts?)\n" ); }
126 groupname = jetCont->GetName();
128 Double_t jet_pt_min = jetCont->GetMinPt();
129 Double_t jet_pt_max = jetCont->GetMaxPt();
131 TString jetstrmin = TString::Itoa((
Int_t)jet_pt_min,10);
132 TString jetstrmax = TString::Itoa((
Int_t)jet_pt_max,10);
135 groupname = groupname +
"_" +
"ptbin" +
"_" + jetstrmin +
"_" + jetstrmax;
139 histname = TString::Format(
"%s/histo1_%d", groupname.Data(),
fCentBin);
142 histname = TString::Format(
"%s/histo2_%d", groupname.Data(),
fCentBin);
145 histname = TString::Format(
"%s/histo3_%d", groupname.Data(),
fCentBin);
148 histname = TString::Format(
"%s/histo4_%d", groupname.Data(),
fCentBin);
151 histname = TString::Format(
"%s/histo4c_%d", groupname.Data(),
fCentBin);
154 histname = TString::Format(
"%s/histo5_%d", groupname.Data(),
fCentBin);
157 histname = TString::Format(
"%s/histo6_%d", groupname.Data(),
fCentBin);
160 histname = TString::Format(
"%s/histo6c_%d", groupname.Data(),
fCentBin);
163 histname = TString::Format(
"%s/histo7_%d", groupname.Data(),
fCentBin);
166 histname = TString::Format(
"%s/histo7all_%d", groupname.Data(),
fCentBin);
169 histname = TString::Format(
"%s/histo8_%d", groupname.Data(),
fCentBin);
172 histname = TString::Format(
"%s/histo8_all_%d", groupname.Data(),
fCentBin);
175 histname = TString::Format(
"%s/histo8_p_%d", groupname.Data(),
fCentBin);
178 histname = TString::Format(
"%s/histo8_all_p_%d", groupname.Data(),
fCentBin);
181 histname = TString::Format(
"%s/histo8_pt_%d", groupname.Data(),
fCentBin);
184 histname = TString::Format(
"%s/histo8_all_pt_%d", groupname.Data(),
fCentBin);
187 histname = TString::Format(
"%s/histo8xi_%d", groupname.Data(),
fCentBin);
190 histname = TString::Format(
"%s/histo8xi_all_%d", groupname.Data(),
fCentBin);
193 histname = TString::Format(
"%s/histo8xi_p_%d", groupname.Data(),
fCentBin);
196 histname = TString::Format(
"%s/histo8xi_all_p_%d", groupname.Data(),
fCentBin);
199 histname = TString::Format(
"%s/histo8xi_pt_%d", groupname.Data(),
fCentBin);
202 histname = TString::Format(
"%s/histo8xi_all_pt_%d", groupname.Data(),
fCentBin);
206 histname = TString::Format(
"%s/histo15_%d", groupname.Data(),
fCentBin);
209 histname = TString::Format(
"%s/histo15_n70_%d", groupname.Data(),
fCentBin);
212 histname = TString::Format(
"%s/histo15_n75_%d", groupname.Data(),
fCentBin);
215 histname = TString::Format(
"%s/histo15_n80_%d", groupname.Data(),
fCentBin);
218 histname = TString::Format(
"%s/histo15_n85_%d", groupname.Data(),
fCentBin);
221 histname = TString::Format(
"%s/histo15_n90_%d", groupname.Data(),
fCentBin);
224 histname = TString::Format(
"%s/histo15_pt70_%d", groupname.Data(),
fCentBin);
227 histname = TString::Format(
"%s/histo15_pt75_%d", groupname.Data(),
fCentBin);
230 histname = TString::Format(
"%s/histo15_pt80_%d", groupname.Data(),
fCentBin);
233 histname = TString::Format(
"%s/histo15_pt85_%d", groupname.Data(),
fCentBin);
236 histname = TString::Format(
"%s/histo15_pt90_%d", groupname.Data(),
fCentBin);
239 histname = TString::Format(
"%s/histo15all_%d", groupname.Data(),
fCentBin);
242 histname = TString::Format(
"%s/histo15all_n70_%d", groupname.Data(),
fCentBin);
245 histname = TString::Format(
"%s/histo15all_n75_%d", groupname.Data(),
fCentBin);
248 histname = TString::Format(
"%s/histo15all_n80_%d", groupname.Data(),
fCentBin);
251 histname = TString::Format(
"%s/histo15all_n85_%d", groupname.Data(),
fCentBin);
254 histname = TString::Format(
"%s/histo15all_n90_%d", groupname.Data(),
fCentBin);
257 histname = TString::Format(
"%s/histo15all_pt70_%d", groupname.Data(),
fCentBin);
260 histname = TString::Format(
"%s/histo15all_pt75_%d", groupname.Data(),
fCentBin);
263 histname = TString::Format(
"%s/histo15all_pt80_%d", groupname.Data(),
fCentBin);
266 histname = TString::Format(
"%s/histo15all_pt85_%d", groupname.Data(),
fCentBin);
269 histname = TString::Format(
"%s/histo15all_pt90_%d", groupname.Data(),
fCentBin);
273 histname = TString::Format(
"%s/histo20_%d", groupname.Data(),
fCentBin);
276 histname = TString::Format(
"%s/histo20_n70_%d", groupname.Data(),
fCentBin);
279 histname = TString::Format(
"%s/histo20_n75_%d", groupname.Data(),
fCentBin);
282 histname = TString::Format(
"%s/histo20_n80_%d", groupname.Data(),
fCentBin);
285 histname = TString::Format(
"%s/histo20_n85_%d", groupname.Data(),
fCentBin);
288 histname = TString::Format(
"%s/histo20_n90_%d", groupname.Data(),
fCentBin);
291 histname = TString::Format(
"%s/histo20_pt70_%d", groupname.Data(),
fCentBin);
294 histname = TString::Format(
"%s/histo20_pt75_%d", groupname.Data(),
fCentBin);
297 histname = TString::Format(
"%s/histo20_pt80_%d", groupname.Data(),
fCentBin);
300 histname = TString::Format(
"%s/histo20_pt85_%d", groupname.Data(),
fCentBin);
303 histname = TString::Format(
"%s/histo20_pt90_%d", groupname.Data(),
fCentBin);
306 histname = TString::Format(
"%s/histo20all_%d", groupname.Data(),
fCentBin);
309 histname = TString::Format(
"%s/histo20all_n70_%d", groupname.Data(),
fCentBin);
312 histname = TString::Format(
"%s/histo20all_n75_%d", groupname.Data(),
fCentBin);
315 histname = TString::Format(
"%s/histo20all_n80_%d", groupname.Data(),
fCentBin);
318 histname = TString::Format(
"%s/histo20all_n85_%d", groupname.Data(),
fCentBin);
321 histname = TString::Format(
"%s/histo20all_n90_%d", groupname.Data(),
fCentBin);
324 histname = TString::Format(
"%s/histo20all_pt70_%d", groupname.Data(),
fCentBin);
327 histname = TString::Format(
"%s/histo20all_pt75_%d", groupname.Data(),
fCentBin);
330 histname = TString::Format(
"%s/histo20all_pt80_%d", groupname.Data(),
fCentBin);
333 histname = TString::Format(
"%s/histo20all_pt85_%d", groupname.Data(),
fCentBin);
336 histname = TString::Format(
"%s/histo20all_pt90_%d", groupname.Data(),
fCentBin);
340 histname = TString::Format(
"%s/histo_g_%d", groupname.Data(),
fCentBin);
343 histname = TString::Format(
"%s/histo_g_n70_%d", groupname.Data(),
fCentBin);
346 histname = TString::Format(
"%s/histo_g_n75_%d", groupname.Data(),
fCentBin);
349 histname = TString::Format(
"%s/histo_g_n80_%d", groupname.Data(),
fCentBin);
352 histname = TString::Format(
"%s/histo_g_n85_%d", groupname.Data(),
fCentBin);
355 histname = TString::Format(
"%s/histo_g_n90_%d", groupname.Data(),
fCentBin);
358 histname = TString::Format(
"%s/histo_g_pt70_%d", groupname.Data(),
fCentBin);
361 histname = TString::Format(
"%s/histo_g_pt75_%d", groupname.Data(),
fCentBin);
364 histname = TString::Format(
"%s/histo_g_pt80_%d", groupname.Data(),
fCentBin);
367 histname = TString::Format(
"%s/histo_g_pt85_%d", groupname.Data(),
fCentBin);
370 histname = TString::Format(
"%s/histo_g_pt90_%d", groupname.Data(),
fCentBin);
374 histname = TString::Format(
"%s/histo_ptd_%d", groupname.Data(),
fCentBin);
377 histname = TString::Format(
"%s/histo_ptd_n70_%d", groupname.Data(),
fCentBin);
380 histname = TString::Format(
"%s/histo_ptd_n75_%d", groupname.Data(),
fCentBin);
383 histname = TString::Format(
"%s/histo_ptd_n80_%d", groupname.Data(),
fCentBin);
386 histname = TString::Format(
"%s/histo_ptd_n85_%d", groupname.Data(),
fCentBin);
389 histname = TString::Format(
"%s/histo_ptd_n90_%d", groupname.Data(),
fCentBin);
392 histname = TString::Format(
"%s/histo_ptd_pt70_%d", groupname.Data(),
fCentBin);
395 histname = TString::Format(
"%s/histo_ptd_pt75_%d", groupname.Data(),
fCentBin);
398 histname = TString::Format(
"%s/histo_ptd_pt80_%d", groupname.Data(),
fCentBin);
401 histname = TString::Format(
"%s/histo_ptd_pt85_%d", groupname.Data(),
fCentBin);
404 histname = TString::Format(
"%s/histo_ptd_pt90_%d", groupname.Data(),
fCentBin);
408 histname = TString::Format(
"%s/histo_Rjt_%d", groupname.Data(),
fCentBin);
411 histname = TString::Format(
"%s/histo_Rjt_n70_%d", groupname.Data(),
fCentBin);
414 histname = TString::Format(
"%s/histo_Rjt_n75_%d", groupname.Data(),
fCentBin);
417 histname = TString::Format(
"%s/histo_Rjt_n80_%d", groupname.Data(),
fCentBin);
420 histname = TString::Format(
"%s/histo_Rjt_n85_%d", groupname.Data(),
fCentBin);
423 histname = TString::Format(
"%s/histo_Rjt_n90_%d", groupname.Data(),
fCentBin);
426 histname = TString::Format(
"%s/histo_Rjt_pt70_%d", groupname.Data(),
fCentBin);
429 histname = TString::Format(
"%s/histo_Rjt_pt75_%d", groupname.Data(),
fCentBin);
432 histname = TString::Format(
"%s/histo_Rjt_pt80_%d", groupname.Data(),
fCentBin);
435 histname = TString::Format(
"%s/histo_Rjt_pt85_%d", groupname.Data(),
fCentBin);
438 histname = TString::Format(
"%s/histo_Rjt_pt90_%d", groupname.Data(),
fCentBin);
442 histname = TString::Format(
"%s/histo_jt_%d", groupname.Data(),
fCentBin);
445 histname = TString::Format(
"%s/histo_jt_n70_%d", groupname.Data(),
fCentBin);
448 histname = TString::Format(
"%s/histo_jt_n75_%d", groupname.Data(),
fCentBin);
451 histname = TString::Format(
"%s/histo_jt_n80_%d", groupname.Data(),
fCentBin);
454 histname = TString::Format(
"%s/histo_jt_n85_%d", groupname.Data(),
fCentBin);
457 histname = TString::Format(
"%s/histo_jt_n90_%d", groupname.Data(),
fCentBin);
460 histname = TString::Format(
"%s/histo_jt_pt70_%d", groupname.Data(),
fCentBin);
463 histname = TString::Format(
"%s/histo_jt_pt75_%d", groupname.Data(),
fCentBin);
466 histname = TString::Format(
"%s/histo_jt_pt80_%d", groupname.Data(),
fCentBin);
469 histname = TString::Format(
"%s/histo_jt_pt85_%d", groupname.Data(),
fCentBin);
472 histname = TString::Format(
"%s/histo_jt_pt90_%d", groupname.Data(),
fCentBin);
480 Int_t fNaccClus = -1;
483 fH5->Fill ( fNJets_accepted );
509 if ( fDebug > 1 ) { std::cout <<
"+++++++++++++++++>>>>>>>>> Leading jet found" << std::endl; jet1->
Print(); }
519 Double_t jet1_pt90 = 0.90 * jet1_pt;
522 Double_t jet1_pt85 = 0.85 * jet1_pt;
525 Double_t jet1_pt80 = 0.80 * jet1_pt;
528 Double_t jet1_pt75 = 0.75 * jet1_pt;
531 Double_t jet1_pt70 = 0.70 * jet1_pt;
533 fH6->Fill ( jet1_npart );
534 fH6c->Fill ( jet1_nconst );
535 fH7->Fill ( jet1_pt, jet1_nconst );
537 Int_t track_idx = -999;
538 counter_part = 0; counter_pt = 0.;
541 for (std::size_t i = 0; i < jet1_npart; i++ ) {
542 track_idx = jet1_sorted_idxvec.at (i);
544 AliVParticle* track = jet1->
TrackAt ( track_idx, fTracksContArray );
545 if (!track) { std::cout <<
"Parsing tracks of jet1 :: track not defined but it should!!!" << std::endl;
continue; }
550 fH8->Fill ( jet1->
GetZ ( track ) );
551 fH8xi->Fill ( jet1->
GetXi ( track ) );
555 fH8xi_p->Fill (
CDF::Xi (z_p) );
558 fH8_pt->Fill ( z_pt );
559 fH8xi_pt->Fill (
CDF::Xi (z_pt) );
561 fH15->Fill ( dpart, track_pt, track_pt );
562 fH20->Fill ( dpart );
565 if ( counter_part <= jet1_n70 ) {
566 fH15_n70->Fill ( dpart, track_pt, track_pt );
567 fH20_n70->Fill ( dpart );
570 if ( counter_part <= jet1_n75 ) {
571 fH15_n75->Fill ( dpart, track_pt, track_pt );
572 fH20_n75->Fill ( dpart );
575 if ( counter_part <= jet1_n80 ) {
576 fH15_n80->Fill ( dpart, track_pt, track_pt );
577 fH20_n80->Fill ( dpart );
580 if ( counter_part <= jet1_n85 ) {
581 fH15_n85->Fill ( dpart, track_pt, track_pt );
582 fH20_n85->Fill ( dpart );
585 if ( counter_part <= jet1_n90 ) {
586 fH15_n90->Fill ( dpart, track_pt, track_pt );
587 fH20_n90->Fill ( dpart );
591 if ( counter_pt <= jet1_pt70 ) {
592 fH15_pt70->Fill ( dpart, track_pt, track_pt );
593 fH20_pt70->Fill ( dpart );
596 if ( counter_pt <= jet1_pt75 ) {
597 fH15_pt75->Fill ( dpart, track_pt, track_pt );
598 fH20_pt75->Fill ( dpart );
601 if ( counter_pt <= jet1_pt80 ) {
602 fH15_pt80->Fill ( dpart, track_pt, track_pt );
603 fH20_pt80->Fill ( dpart );
606 if ( counter_pt <= jet1_pt85 ) {
607 fH15_pt85->Fill ( dpart, track_pt, track_pt );
608 fH20_pt85->Fill ( dpart );
611 if ( counter_pt <= jet1_pt90 ) {
612 fH15_pt90->Fill ( dpart, track_pt, track_pt );
613 fH20_pt90->Fill ( dpart );
616 ++counter_part; counter_pt += track_pt;
626 for(
auto jet : jetCont->
accepted()) {
627 if (!jet) {
continue; }
630 std::vector< int > jet_sorted_idxvec ;
632 Int_t track_idx = -999;
633 jet_pt = 0. ; jet_npart = 0; jet_nconst = 0;
634 counter_part = 0; counter_pt = 0.;
637 jet_sorted_idxvec.clear();
638 jet_sorted_idxvec = jet->GetPtSortedTrackConstituentIndexes ( fTracksContArray );
641 jet_npart = jet->GetNumberOfTracks();
642 jet_nconst = jet->GetNumberOfConstituents();
645 g_tot = 0.; sum_part_pt_tot = 0.; sum_part_pt2_tot = 0.;
646 g_n90 = 0.; sum_part_pt_n90 = 0.; sum_part_pt2_n90 = 0.;
647 g_n85 = 0.; sum_part_pt_n85 = 0.; sum_part_pt2_n85 = 0.;
648 g_n80 = 0.; sum_part_pt_n80 = 0.; sum_part_pt2_n80 = 0.;
649 g_n75 = 0.; sum_part_pt_n75 = 0.; sum_part_pt2_n75 = 0.;
650 g_n70 = 0.; sum_part_pt_n70 = 0.; sum_part_pt2_n70 = 0.;
651 g_pt90 = 0.; sum_part_pt_pt90 = 0.; sum_part_pt2_pt90 = 0.;
652 g_pt85 = 0.; sum_part_pt_pt85 = 0.; sum_part_pt2_pt85 = 0.;
653 g_pt80 = 0.; sum_part_pt_pt80 = 0.; sum_part_pt2_pt80 = 0.;
654 g_pt75 = 0.; sum_part_pt_pt75 = 0.; sum_part_pt2_pt75 = 0.;
655 g_pt70 = 0.; sum_part_pt_pt70 = 0.; sum_part_pt2_pt70 = 0.;
658 jet_n90 = (
UShort_t ) ( 0.9 * jet_npart );
659 jet_pt90 = 0.9 * jet_pt;
661 jet_n85 = (
UShort_t ) ( 0.85 * jet_npart );
662 jet_pt85 = 0.85 * jet_pt;
664 jet_n80 = (
UShort_t ) ( 0.8 * jet_npart );
665 jet_pt80 = 0.8 * jet_pt;
667 jet_n75 = (
UShort_t ) ( 0.75 * jet_npart );
668 jet_pt75 = 0.75 * jet_pt;
670 jet_n70 = (
UShort_t ) ( 0.7 * jet_npart );
671 jet_pt70 = 0.7 * jet_pt;
673 fH1->Fill ( jet_pt );
674 fH2->Fill ( jet->Eta() );
675 fH3->Fill ( jet->Phi() );
676 fH4->Fill ( jet_npart );
677 fH4c->Fill ( jet_nconst );
678 fH7all->Fill ( jet_pt, jet_nconst );
681 for (std::size_t i = 0; i < jet_npart; i++ ) {
682 track_idx = jet_sorted_idxvec.at (i);
684 AliVParticle* track = jet->TrackAt ( track_idx, fTracksContArray );
685 if (!track) { std::cout <<
"Parsing tracks of jets :: track not defined but it should!!!" << std::endl;
continue; }
687 Double_t dpart = jet->DeltaR ( track );
691 fH8_all->Fill ( jet->GetZ ( track ) );
692 fH8xi_all->Fill ( jet->GetXi ( track ) );
695 fH8_all_p->Fill ( z_p );
696 fH8xi_all_p->Fill (
CDF::Xi (z_p) );
699 fH8_all_pt->Fill ( z_pt );
700 fH8xi_all_pt->Fill (
CDF::Xi (z_pt) );
702 fH15all->Fill ( dpart, track_pt, track_pt );
703 fH20all->Fill ( dpart );
705 fH_Rjt->Fill ( dpart, jt, jt );
709 g_tot += (track_pt * dpart)/jet_pt;
710 sum_part_pt_tot += TMath::Abs(track_pt);
711 sum_part_pt2_tot += TMath::Power( track_pt, 2 );
714 if ( counter_part <= jet_n90 ) {
715 fH15all_n90->Fill ( dpart, track_pt );
716 fH20all_n90->Fill ( dpart );
717 fH_Rjt_n90->Fill ( dpart, jt, jt );
718 fH_jt_n90->Fill ( jt );
721 g_n90 += (track_pt * dpart)/jet_pt;
722 sum_part_pt_n90 += track_pt;
723 sum_part_pt2_n90 += TMath::Power( track_pt, 2 );
726 if ( counter_pt <= jet_pt90 ) {
727 fH15all_pt90->Fill ( dpart, track_pt );
728 fH20all_pt90->Fill ( dpart );
729 fH_Rjt_pt90->Fill ( dpart, jt, jt );
730 fH_jt_pt90->Fill ( jt );
733 g_pt90 += (track_pt * dpart)/jet_pt;
734 sum_part_pt_pt90 += track_pt;
735 sum_part_pt2_pt90 += TMath::Power( track_pt, 2 );
739 if ( counter_part <= jet_n85 ) {
740 fH15all_n85->Fill ( dpart, track_pt );
741 fH20all_n85->Fill ( dpart );
742 fH_Rjt_n85->Fill ( dpart, jt, jt );
743 fH_jt_n85->Fill ( jt );
746 g_n85 += (track_pt * dpart)/jet_pt;
747 sum_part_pt_n85 += track_pt;
748 sum_part_pt2_n85 += TMath::Power( track_pt, 2 );
751 if ( counter_pt <= jet_pt85 ) {
752 fH15all_pt85->Fill ( dpart, track_pt );
753 fH20all_pt85->Fill ( dpart );
754 fH_Rjt_pt85->Fill ( dpart, jt, jt );
755 fH_jt_pt85->Fill ( jt );
758 g_pt85 += (track_pt * dpart)/jet_pt;
759 sum_part_pt_pt85 += track_pt;
760 sum_part_pt2_pt85 += TMath::Power( track_pt, 2 );
764 if ( counter_part <= jet_n80 ) {
765 fH15all_n80->Fill ( dpart, track_pt );
766 fH20all_n80->Fill ( dpart );
767 fH_Rjt_n80->Fill ( dpart, jt, jt );
768 fH_jt_n80->Fill ( jt );
771 g_n80 += (track_pt * dpart)/jet_pt;
772 sum_part_pt_n80 += track_pt;
773 sum_part_pt2_n80 += TMath::Power( track_pt, 2 );
776 if ( counter_pt <= jet_pt80 ) {
777 fH15all_pt80->Fill ( dpart, track_pt );
778 fH20all_pt80->Fill ( dpart );
779 fH_Rjt_pt80->Fill ( dpart, jt, jt );
780 fH_jt_pt80->Fill ( jt );
783 g_pt80 += (track_pt * dpart)/jet_pt;
784 sum_part_pt_pt80 += track_pt;
785 sum_part_pt2_pt80 += TMath::Power( track_pt, 2 );
789 if ( counter_part <= jet_n75 ) {
790 fH15all_n75->Fill ( dpart, track_pt );
791 fH20all_n75->Fill ( dpart );
792 fH_Rjt_n75->Fill ( dpart, jt, jt );
793 fH_jt_n75->Fill ( jt );
796 g_n75 += (track_pt * dpart)/jet_pt;
797 sum_part_pt_n75 += track_pt;
798 sum_part_pt2_n75 += TMath::Power( track_pt, 2 );
801 if ( counter_pt <= jet_pt75 ) {
802 fH15all_pt75->Fill ( dpart, track_pt );
803 fH20all_pt75->Fill ( dpart );
804 fH_Rjt_pt75->Fill ( dpart, jt, jt );
805 fH_jt_pt75->Fill ( jt );
808 g_pt75 += (track_pt * dpart)/jet_pt;
809 sum_part_pt_pt75 += track_pt;
810 sum_part_pt2_pt75 += TMath::Power( track_pt, 2 );
814 if ( counter_part <= jet_n70 ) {
815 fH15all_n70->Fill ( dpart, track_pt );
816 fH20all_n70->Fill ( dpart );
817 fH_Rjt_n70->Fill ( dpart, jt, jt );
818 fH_jt_n70->Fill ( jt );
821 g_n70 += (track_pt * dpart)/jet_pt;
822 sum_part_pt_n70 += track_pt;
823 sum_part_pt2_n70 += TMath::Power( track_pt, 2 );
826 if ( counter_pt <= jet_pt70 ) {
827 fH15all_pt70->Fill ( dpart, track_pt );
828 fH20all_pt70->Fill ( dpart );
829 fH_Rjt_pt70->Fill ( dpart, jt, jt );
830 fH_jt_pt70->Fill ( jt );
833 g_pt70 += (track_pt * dpart)/jet_pt;
834 sum_part_pt_pt70 += track_pt;
835 sum_part_pt2_pt70 += TMath::Power( track_pt, 2 );
837 ++counter_part; counter_pt += track_pt;
841 fHg_n70->Fill ( g_n70 ); fHg_pt70->Fill ( g_pt70 );
842 fHg_n75->Fill ( g_n75 ); fHg_pt75->Fill ( g_pt75 );
843 fHg_n80->Fill ( g_n80 ); fHg_pt80->Fill ( g_pt80 );
844 fHg_n85->Fill ( g_n85 ); fHg_pt85->Fill ( g_pt85 );
845 fHg_n90->Fill ( g_n90 ); fHg_pt90->Fill ( g_pt90 );
847 if ( sum_part_pt_tot > 1e-8 )
848 { fHptd->Fill( TMath::Sqrt(sum_part_pt2_tot)/sum_part_pt_tot ); }
850 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_tot aprox 0!!!!" << endl; }
852 if ( sum_part_pt_n70 > 1e-8 )
853 { fHptd_n70->Fill( TMath::Sqrt(sum_part_pt2_n70)/sum_part_pt_n70 ); }
855 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_n70 aprox 0!!!!" << endl; }
857 if ( sum_part_pt_n75 > 1e-8 )
858 { fHptd_n75->Fill( TMath::Sqrt(sum_part_pt2_n75)/sum_part_pt_n75 ); }
860 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_n75 aprox 0!!!!" << endl; }
862 if ( sum_part_pt_n80 > 1e-8 )
863 { fHptd_n80->Fill( TMath::Sqrt(sum_part_pt2_n80)/sum_part_pt_n80 ); }
865 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_n80 aprox 0!!!!" << endl; }
867 if ( sum_part_pt_n85 > 1e-8 )
868 { fHptd_n85->Fill( TMath::Sqrt(sum_part_pt2_n85)/sum_part_pt_n85 ); }
870 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_n85 aprox 0!!!!" << endl; }
872 if ( sum_part_pt_n90 > 1e-8 )
873 { fHptd_n90->Fill( TMath::Sqrt(sum_part_pt2_n90)/sum_part_pt_n90 ); }
875 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_n90 aprox 0!!!!" << endl; }
877 if ( sum_part_pt_pt70 > 1e-8 )
878 { fHptd_pt70->Fill( TMath::Sqrt(sum_part_pt2_pt70)/sum_part_pt_pt70 ); }
880 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_pt70 aprox 0!!!!" << endl; }
882 if ( sum_part_pt_pt75 > 1e-8 )
883 { fHptd_pt75->Fill( TMath::Sqrt(sum_part_pt2_pt75)/sum_part_pt_pt75 ); }
885 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_pt75 aprox 0!!!!" << endl; }
887 if ( sum_part_pt_pt80 > 1e-8 )
888 { fHptd_pt80->Fill( TMath::Sqrt(sum_part_pt2_pt80)/sum_part_pt_pt80 ); }
890 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_pt80 aprox 0!!!!" << endl; }
892 if ( sum_part_pt_pt85 > 1e-8 )
893 { fHptd_pt85->Fill( TMath::Sqrt(sum_part_pt2_pt85)/sum_part_pt_pt85 ); }
895 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_pt85 aprox 0!!!!" << endl; }
897 if ( sum_part_pt_pt90 > 1e-8 )
898 { fHptd_pt90->Fill( TMath::Sqrt(sum_part_pt2_pt90)/sum_part_pt_pt90 ); }
900 {
if ( fDebug > 2 ) cout <<
"sum_part_pt_pt90 aprox 0!!!!" << endl; }
916 TString histname =
"", histtitle =
"", groupname =
"", fullgroupname =
"";
919 while ((jetCont = static_cast<AliJetContainer*>(next())))
921 groupname = jetCont->GetName();
923 Double_t jet_pt_min = jetCont->GetMinPt();
924 Double_t jet_pt_max = jetCont->GetMaxPt();
926 TString jetstrmin = TString::Itoa((
Int_t)jet_pt_min,10);
927 TString jetstrmax = TString::Itoa((
Int_t)jet_pt_max,10);
930 groupname = groupname +
"_" +
"ptbin" +
"_" + jetstrmin +
"_" + jetstrmax;
937 Double_t h1_high = h1_low + h1_binwidth * h1_nbin;
938 histname = TString::Format(
"%s/histo1_%d", groupname.Data(), cent);
939 histtitle = TString::Format(
"%s;#it{p}_{T,jet} (GeV/#it{c}) (accepted);Jets", histname.Data());
944 Double_t h2_high = h2_low + h2_binwidth * h2_nbin;
945 histname = TString::Format(
"%s/histo2_%d", groupname.Data(), cent);
946 histtitle = TString::Format(
"%s;#it{#eta}_{jet};Jets", histname.Data());
951 Double_t h3_high = h3_low + h3_binwidth * h3_nbin;
952 histname = TString::Format(
"%s/histo3_%d", groupname.Data(), cent);
953 histtitle = TString::Format(
"%s;#it{#phi}_{jet};Jets", histname.Data());
958 Double_t h4_high = h4_low + h4_binwidth * h4_nbin;
959 histname = TString::Format(
"%s/histo4_%d", groupname.Data(), cent);
960 histtitle = TString::Format(
"%s;N_{tracks}(jet);Jets", histname.Data());
963 histname = TString::Format(
"%s/histo4c_%d", groupname.Data(), cent);
964 histtitle = TString::Format(
"%s;N_{tracks}(jet);Jets", histname.Data());
967 histname = TString::Format(
"%s/histo6_%d", groupname.Data(), cent);
968 histtitle = TString::Format(
"%s;N_{tracks}(jet1);Jets", histname.Data());
971 histname = TString::Format(
"%s/histo6c_%d", groupname.Data(), cent);
972 histtitle = TString::Format(
"%s;N_{tracks}(jet1);Jets", histname.Data());
978 Double_t h5_high = h5_low + h5_binwidth * h5_nbin;
979 histname = TString::Format(
"%s/histo5_%d", groupname.Data(), cent);
980 histtitle = TString::Format(
"%s;N_{jets};Events", histname.Data());
985 Double_t h7_xhigh = h7_xlow + h7_xbinwidth * h7_xnbin;
987 Double_t h7_yhigh = h7_ylow + h7_ybinwidth * h7_ynbin;
989 histname = TString::Format(
"%s/histo7_%d", groupname.Data(), cent);
990 histtitle = TString::Format(
"%s;#it{p}_{T,jet1} (GeV/c);N_{tracks}(jet1)", histname.Data());
991 fHistManager.
CreateTH2(histname, histtitle, h7_xnbin, h7_xlow, h7_xhigh, h7_ynbin, h7_ylow, h7_yhigh);
993 histname = TString::Format(
"%s/histo7all_%d", groupname.Data(), cent);
994 histtitle = TString::Format(
"%s;#it{p}_{T,jet} (GeV/c);N_{tracks}(jets)", histname.Data());
995 fHistManager.
CreateTH2(histname, histtitle, h7_xnbin, h7_xlow, h7_xhigh, h7_ynbin, h7_ylow, h7_yhigh);
1000 Double_t h8_high = h8_low + h8_binwidth * h8_nbin;
1003 histname = TString::Format(
"%s/histo8_%d", groupname.Data(), cent);
1004 histtitle = TString::Format(
"%s - jet1;z;F(Z) = 1/N_{jet1} dN/dz", histname.Data());
1007 histname = TString::Format(
"%s/histo8_all_%d", groupname.Data(), cent);
1008 histtitle = TString::Format(
"%s - all jets;z;F(Z) = 1/N_{jets} dN/dz", histname.Data());
1013 histname = TString::Format(
"%s/histo8_p_%d", groupname.Data(), cent);
1014 histtitle = TString::Format(
"%s - jet1 P_tot;z = p_{track}/p_{jet1};F(Z) = 1/N_{jet1} dN/dz", histname.Data());
1017 histname = TString::Format(
"%s/histo8_all_p_%d", groupname.Data(), cent);
1018 histtitle = TString::Format(
"%s - all jets P_tot;z = p_{track}/p_{jet};F(Z) = 1/N_{jets} dN/dz", histname.Data());
1023 histname = TString::Format(
"%s/histo8_pt_%d", groupname.Data(), cent);
1024 histtitle = TString::Format(
"%s - jet1 Pt;z = p_{T,track}/p_{T,jet1};F(Z) = 1/N_{jet1} dN/dz", histname.Data());
1027 histname = TString::Format(
"%s/histo8_all_pt_%d", groupname.Data(), cent);
1028 histtitle = TString::Format(
"%s - all jets Pt;z = p_{T,track}/p_{T,jet1};F(Z) = 1/N_{jets} dN/dz", histname.Data());
1034 Double_t h8xi_high = h8xi_low + h8xi_binwidth * h8xi_nbin;
1035 histname = TString::Format(
"%s/histo8xi_%d", groupname.Data(), cent);
1036 histtitle = TString::Format(
"%s - jet1;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
1039 histname = TString::Format(
"%s/histo8xi_all_%d", groupname.Data(), cent);
1040 histtitle = TString::Format(
"%s - all jets;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
1044 histname = TString::Format(
"%s/histo8xi_p_%d", groupname.Data(), cent);
1045 histtitle = TString::Format(
"%s - jet1 P_tot;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
1048 histname = TString::Format(
"%s/histo8xi_all_p_%d", groupname.Data(), cent);
1049 histtitle = TString::Format(
"%s - all jets P_tot;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
1053 histname = TString::Format(
"%s/histo8xi_pt_%d", groupname.Data(), cent);
1054 histtitle = TString::Format(
"%s - jet1 Pt;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
1057 histname = TString::Format(
"%s/histo8xi_all_pt_%d", groupname.Data(), cent);
1058 histtitle = TString::Format(
"%s - all jets Pt;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
1064 Double_t h15_xhigh = h15_xlow + h15_xbinwidth * h15_xnbin;
1066 Double_t h15_yhigh = h15_ylow + h15_ybinwidth * h15_ynbin;
1069 histname = TString::Format(
"%s/histo15_%d", groupname.Data(), cent);
1070 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1071 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1074 histname = TString::Format(
"%s/histo15_n70_%d", groupname.Data(), cent);
1075 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1076 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1078 histname = TString::Format(
"%s/histo15_n75_%d", groupname.Data(), cent);
1079 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1080 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1082 histname = TString::Format(
"%s/histo15_n80_%d", groupname.Data(), cent);
1083 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1084 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1086 histname = TString::Format(
"%s/histo15_n85_%d", groupname.Data(), cent);
1087 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1088 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1090 histname = TString::Format(
"%s/histo15_n90_%d", groupname.Data(), cent);
1091 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1092 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1095 histname = TString::Format(
"%s/histo15_pt70_%d", groupname.Data(), cent);
1096 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1097 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1099 histname = TString::Format(
"%s/histo15_pt75_%d", groupname.Data(), cent);
1100 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1101 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1103 histname = TString::Format(
"%s/histo15_pt80_%d", groupname.Data(), cent);
1104 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1105 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1107 histname = TString::Format(
"%s/histo15_pt85_%d", groupname.Data(), cent);
1108 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1109 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1111 histname = TString::Format(
"%s/histo15_pt90_%d", groupname.Data(), cent);
1112 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1113 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1117 histname = TString::Format(
"%s/histo15all_%d", groupname.Data(), cent);
1118 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1119 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1122 histname = TString::Format(
"%s/histo15all_n70_%d", groupname.Data(), cent);
1123 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1124 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1126 histname = TString::Format(
"%s/histo15all_n75_%d", groupname.Data(), cent);
1127 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1128 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1130 histname = TString::Format(
"%s/histo15all_n80_%d", groupname.Data(), cent);
1131 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1132 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1134 histname = TString::Format(
"%s/histo15all_n85_%d", groupname.Data(), cent);
1135 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1136 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1138 histname = TString::Format(
"%s/histo15all_n90_%d", groupname.Data(), cent);
1139 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1140 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1143 histname = TString::Format(
"%s/histo15all_pt70_%d", groupname.Data(), cent);
1144 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1145 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1147 histname = TString::Format(
"%s/histo15all_pt75_%d", groupname.Data(), cent);
1148 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1149 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1151 histname = TString::Format(
"%s/histo15all_pt80_%d", groupname.Data(), cent);
1152 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1153 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1155 histname = TString::Format(
"%s/histo15all_pt85_%d", groupname.Data(), cent);
1156 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1157 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1159 histname = TString::Format(
"%s/histo15all_pt90_%d", groupname.Data(), cent);
1160 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1161 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1166 Double_t h20_high = h20_low + h20_binwidth * h20_nbin;
1169 histname = TString::Format(
"%s/histo20_%d", groupname.Data(), cent);
1170 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1174 histname = TString::Format(
"%s/histo20_n70_%d", groupname.Data(), cent);
1175 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1178 histname = TString::Format(
"%s/histo20_n75_%d", groupname.Data(), cent);
1179 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1182 histname = TString::Format(
"%s/histo20_n80_%d", groupname.Data(), cent);
1183 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1186 histname = TString::Format(
"%s/histo20_n85_%d", groupname.Data(), cent);
1187 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1190 histname = TString::Format(
"%s/histo20_n90_%d", groupname.Data(), cent);
1191 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1196 histname = TString::Format(
"%s/histo20_pt70_%d", groupname.Data(), cent);
1197 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1200 histname = TString::Format(
"%s/histo20_pt75_%d", groupname.Data(), cent);
1201 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1204 histname = TString::Format(
"%s/histo20_pt80_%d", groupname.Data(), cent);
1205 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1208 histname = TString::Format(
"%s/histo20_pt85_%d", groupname.Data(), cent);
1209 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1212 histname = TString::Format(
"%s/histo20_pt90_%d", groupname.Data(), cent);
1213 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1218 histname = TString::Format(
"%s/histo20all_%d", groupname.Data(), cent);
1219 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1223 histname = TString::Format(
"%s/histo20all_n70_%d", groupname.Data(), cent);
1224 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1227 histname = TString::Format(
"%s/histo20all_n75_%d", groupname.Data(), cent);
1228 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1231 histname = TString::Format(
"%s/histo20all_n80_%d", groupname.Data(), cent);
1232 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1235 histname = TString::Format(
"%s/histo20all_n85_%d", groupname.Data(), cent);
1236 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1239 histname = TString::Format(
"%s/histo20all_n90_%d", groupname.Data(), cent);
1240 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1245 histname = TString::Format(
"%s/histo20all_pt70_%d", groupname.Data(), cent);
1246 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1249 histname = TString::Format(
"%s/histo20all_pt75_%d", groupname.Data(), cent);
1250 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1253 histname = TString::Format(
"%s/histo20all_pt80_%d", groupname.Data(), cent);
1254 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1257 histname = TString::Format(
"%s/histo20all_pt85_%d", groupname.Data(), cent);
1258 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1261 histname = TString::Format(
"%s/histo20all_pt90_%d", groupname.Data(), cent);
1262 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1269 Double_t hg_high = hg_low + hg_binwidth * hg_nbin;
1272 histname = TString::Format(
"%s/histo_g_%d", groupname.Data(), cent);
1273 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1278 histname = TString::Format(
"%s/histo_g_n70_%d", groupname.Data(), cent);
1279 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1282 histname = TString::Format(
"%s/histo_g_n75_%d", groupname.Data(), cent);
1283 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1286 histname = TString::Format(
"%s/histo_g_n80_%d", groupname.Data(), cent);
1287 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1290 histname = TString::Format(
"%s/histo_g_n85_%d", groupname.Data(), cent);
1291 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1294 histname = TString::Format(
"%s/histo_g_n90_%d", groupname.Data(), cent);
1295 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1300 histname = TString::Format(
"%s/histo_g_pt70_%d", groupname.Data(), cent);
1301 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1304 histname = TString::Format(
"%s/histo_g_pt75_%d", groupname.Data(), cent);
1305 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1308 histname = TString::Format(
"%s/histo_g_pt80_%d", groupname.Data(), cent);
1309 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1312 histname = TString::Format(
"%s/histo_g_pt85_%d", groupname.Data(), cent);
1313 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1316 histname = TString::Format(
"%s/histo_g_pt90_%d", groupname.Data(), cent);
1317 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1324 Double_t hptd_high = hptd_low + hptd_binwidth * hptd_nbin;
1327 histname = TString::Format(
"%s/histo_ptd_%d", groupname.Data(), cent);
1328 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1333 histname = TString::Format(
"%s/histo_ptd_n70_%d", groupname.Data(), cent);
1334 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1337 histname = TString::Format(
"%s/histo_ptd_n75_%d", groupname.Data(), cent);
1338 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1341 histname = TString::Format(
"%s/histo_ptd_n80_%d", groupname.Data(), cent);
1342 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1345 histname = TString::Format(
"%s/histo_ptd_n85_%d", groupname.Data(), cent);
1346 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1349 histname = TString::Format(
"%s/histo_ptd_n90_%d", groupname.Data(), cent);
1350 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1355 histname = TString::Format(
"%s/histo_ptd_pt70_%d", groupname.Data(), cent);
1356 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1359 histname = TString::Format(
"%s/histo_ptd_pt75_%d", groupname.Data(), cent);
1360 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1363 histname = TString::Format(
"%s/histo_ptd_pt80_%d", groupname.Data(), cent);
1364 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1367 histname = TString::Format(
"%s/histo_ptd_pt85_%d", groupname.Data(), cent);
1368 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1371 histname = TString::Format(
"%s/histo_ptd_pt90_%d", groupname.Data(), cent);
1372 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1378 Double_t h_Rjt_xhigh = h_Rjt_xlow + h_Rjt_xbinwidth * h_Rjt_xnbin;
1380 Double_t h_Rjt_yhigh = h_Rjt_ylow + h_Rjt_ybinwidth * h_Rjt_ynbin;
1383 histname = TString::Format(
"%s/histo_Rjt_%d", groupname.Data(), cent);
1384 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1385 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1388 histname = TString::Format(
"%s/histo_Rjt_n70_%d", groupname.Data(), cent);
1389 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1390 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1392 histname = TString::Format(
"%s/histo_Rjt_n75_%d", groupname.Data(), cent);
1393 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1394 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1396 histname = TString::Format(
"%s/histo_Rjt_n80_%d", groupname.Data(), cent);
1397 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1398 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1400 histname = TString::Format(
"%s/histo_Rjt_n85_%d", groupname.Data(), cent);
1401 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1402 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1404 histname = TString::Format(
"%s/histo_Rjt_n90_%d", groupname.Data(), cent);
1405 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1406 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1409 histname = TString::Format(
"%s/histo_Rjt_pt70_%d", groupname.Data(), cent);
1410 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1411 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1413 histname = TString::Format(
"%s/histo_Rjt_pt75_%d", groupname.Data(), cent);
1414 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1415 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1417 histname = TString::Format(
"%s/histo_Rjt_pt80_%d", groupname.Data(), cent);
1418 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1419 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1421 histname = TString::Format(
"%s/histo_Rjt_pt85_%d", groupname.Data(), cent);
1422 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1423 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1425 histname = TString::Format(
"%s/histo_Rjt_pt90_%d", groupname.Data(), cent);
1426 histtitle = TString::Format(
"%s ;dR;j_{T} (GeV/c);", histname.Data());
1427 fHistManager.
CreateTH2(histname, histtitle, h_Rjt_xnbin, h_Rjt_xlow, h_Rjt_xhigh, h_Rjt_ynbin, h_Rjt_ylow, h_Rjt_yhigh);
1432 Double_t h_jt_xhigh = h_jt_xlow + h_jt_xbinwidth * h_jt_xnbin;
1435 histname = TString::Format(
"%s/histo_jt_%d", groupname.Data(), cent);
1436 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1440 histname = TString::Format(
"%s/histo_jt_n70_%d", groupname.Data(), cent);
1441 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1444 histname = TString::Format(
"%s/histo_jt_n75_%d", groupname.Data(), cent);
1445 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1448 histname = TString::Format(
"%s/histo_jt_n80_%d", groupname.Data(), cent);
1449 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1452 histname = TString::Format(
"%s/histo_jt_n85_%d", groupname.Data(), cent);
1453 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1456 histname = TString::Format(
"%s/histo_jt_n90_%d", groupname.Data(), cent);
1457 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1461 histname = TString::Format(
"%s/histo_jt_pt70_%d", groupname.Data(), cent);
1462 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1465 histname = TString::Format(
"%s/histo_jt_pt75_%d", groupname.Data(), cent);
1466 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1469 histname = TString::Format(
"%s/histo_jt_pt80_%d", groupname.Data(), cent);
1470 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1473 histname = TString::Format(
"%s/histo_jt_pt85_%d", groupname.Data(), cent);
1474 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1477 histname = TString::Format(
"%s/histo_jt_pt90_%d", groupname.Data(), cent);
1478 histtitle = TString::Format(
"%s ;j_{T} (GeV/c);1/N_{jets} dN/dj_{T};", histname.Data());
1488 TH1::SetDefaultSumw2(kTRUE);
1489 TH2::SetDefaultSumw2(kTRUE);
1494 while ((obj = nexthist())) {
fOutput->Add(obj); }
1529 Int_t entries =
event->GetNumberOfTracks();
1532 std::vector<ptidx_pair> pair_list;
1533 pair_list.reserve ( entries );
1535 for (
Int_t i_entry = 0; i_entry < entries; i_entry++ )
1537 AliVParticle* track =
event->GetTrack ( i_entry );
1538 if ( !track ) { std::cout << Form (
"Unable to find track %d in collection %s", i_entry, event->GetName()) << std::endl ;
continue; }
1540 pair_list.push_back ( std::make_pair ( track->Pt(), i_entry ) );
1543 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1546 std::vector<Int_t> index_sorted_list;
1547 index_sorted_list.reserve ( entries );
1550 for (
auto it : pair_list) { index_sorted_list.push_back(it.second); }
1552 return index_sorted_list;
1559 Int_t entries = trackscont->GetNEntries();
1562 std::vector<ptidx_pair> pair_list;
1563 pair_list.reserve ( entries );
1567 for(
auto part : partCont->
all()) {
1568 if (!part) {
continue;}
1569 pair_list.push_back ( std::make_pair ( part->Pt(), i_entry++ ) );
1572 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1575 std::vector<Int_t> index_sorted_list;
1576 index_sorted_list.reserve ( i_entry );
1579 for (
auto it : pair_list) { index_sorted_list.push_back(it.second); }
1581 return index_sorted_list;
1596 if ( !mgr ) { ::Error (
"AddTaskEmcalJetCDF",
"No analysis manager to connect to." );
return NULL; }
1600 AliVEventHandler* handler = mgr->GetInputEventHandler();
1601 if (!handler) { ::Error (
"AddTaskEmcalJetCDF",
"This task requires an input event handler" );
return NULL; }
1605 if (handler->InheritsFrom(
"AliESDInputHandler")) { dataType =
kESD; }
1607 if (handler->InheritsFrom(
"AliAODInputHandler")) { dataType =
kAOD; }
1614 TString clusters ( nclusters );
1617 if ( tracks.EqualTo(
"usedefault") )
1619 if ( dataType ==
kESD ) { tracks =
"Tracks"; }
1621 if ( dataType == kAOD ) { tracks =
"tracks"; }
1626 if ( clusters.EqualTo(
"usedefault") )
1628 if ( dataType ==
kESD ) { clusters =
"CaloClusters"; }
1630 if ( dataType == kAOD ) { clusters =
"caloClusters"; }
1635 if ( cells.EqualTo(
"usedefault") )
1637 if (dataType ==
kESD) { cells =
"EMCALCells"; }
1639 if (dataType == kAOD) { cells =
"emcalCells"; }
1645 if (!tracks.IsNull()) { name +=
"_" + tracks; }
1646 if (!clusters.IsNull()) { name +=
"_" + clusters; }
1647 if (!cells.IsNull()) { name +=
"_" + cells; }
1648 if (!suffix.IsNull()) { name +=
"_" +
suffix; }
1654 if ( tracks.EqualTo(
"mcparticles") ) {
1659 if ( tracks.EqualTo(
"tracks") || tracks.EqualTo(
"Tracks") ) {
1664 if ( !tracks.IsNull())
1672 mgr->AddTask ( cdfTask );
1675 AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();
1677 TString contname = name +
"_histos";
1678 TString outfile (Form(
"%s", AliAnalysisManager::GetCommonFileName()));
1679 AliAnalysisDataContainer *coutput1 = mgr->CreateContainer ( contname.Data(), TList::Class(), AliAnalysisManager::kOutputContainer, outfile.Data() );
1681 mgr->ConnectInput ( cdfTask, 0, cinput1 );
1682 mgr->ConnectOutput ( cdfTask, 1, coutput1 );
1698 if (!jetCont) {
return; }
AliAnalysisTaskEmcalJetCDF()
THistManager fHistManager
Histogram manager.
THashList * CreateHistoGroup(const char *groupname)
Create a new group of histograms within a parent group.
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)
Create new cluster container and attach it to the task.
UShort_t GetNumberOfConstituents() const
Container for particles within the EMCAL framework.
void Terminate(Option_t *option)
void UserCreateOutputObjects()
Int_t TrackAt(Int_t idx) const
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="")
Create a new TH2 within the container.
TObject * FindObject(const char *name) const
Find an object inside the container.
void SetJetPtCut(Float_t cut)
THashList * GetListOfHistograms() const
Get the list of histograms.
void SetNLeadingJets(Int_t t)
TObject * GetHistogram(const char *histName)
AliParticleContainer * AddParticleContainer(const char *n)
Create new particle container and attach it to the task.
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
Create a new TH1 within the container.
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)
Create new container for MC particles and attach it to the task.
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.
AliTrackContainer * AddTrackContainer(const char *n)
Create new track container and attach it to the task.
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()
Main initialization function on the worker.
const AliJetIterableContainer accepted() const
Declaration of class AliAnalysisTaskEmcalJetCDF.
EDataType_t
Switch for the data type.
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.