10 #include <TMathBase.h>
11 #include <TClonesArray.h>
15 #include <TSeqCollection.h>
16 #include <TCollection.h>
18 #include <TLorentzVector.h>
20 #include <TAttMarker.h>
22 #include <AliVCluster.h>
23 #include <AliAODCaloCluster.h>
24 #include <AliESDCaloCluster.h>
25 #include <AliVTrack.h>
27 #include <AliVEvent.h>
34 #include "AliVEvent.h"
35 #include "AliVParticle.h"
51 fH21Transverse_min ( NULL ),
52 fH21Transverse_max ( NULL ),
55 fH21Toward_bin ( NULL ),
56 fH21Transverse_min_bin ( NULL ),
57 fH21Transverse_max_bin ( NULL ),
58 fH21Away_bin ( NULL ),
59 fH21_bin_wojet1 ( NULL ),
60 fH21Toward_bin_wojet1 ( NULL ),
61 fH21Transverse_min_bin_wojet1 ( NULL ),
62 fH21Transverse_max_bin_wojet1 ( NULL ),
63 fH21Away_bin_wojet1 ( NULL ),
66 fH22Transverse_min ( NULL ),
67 fH22Transverse_max ( NULL ),
70 fH22Toward_bin ( NULL ),
71 fH22Transverse_min_bin ( NULL ),
72 fH22Transverse_max_bin ( NULL ),
73 fH22Away_bin ( NULL ),
74 fH22_bin_wojet1 ( NULL ),
75 fH22Toward_bin_wojet1 ( NULL ),
76 fH22Transverse_min_bin_wojet1 ( NULL ),
77 fH22Transverse_max_bin_wojet1 ( NULL ),
78 fH22Away_bin_wojet1 ( NULL ),
81 fH23Transverse_min ( NULL ),
82 fH23Transverse_max ( NULL ),
87 fH40transmin ( NULL ),
88 fH40transmax ( NULL ),
90 fH40toward_bin ( NULL ),
91 fH40away_bin ( NULL ),
92 fH40transmin_bin ( NULL ),
93 fH40transmax_bin ( NULL ),
97 fH41transmin ( NULL ),
98 fH41transmax ( NULL ),
100 fH41toward_bin ( NULL ),
101 fH41away_bin ( NULL ),
102 fH41transmin_bin ( NULL ),
103 fH41transmax_bin ( NULL ),
105 fTracksCont ( NULL ),
106 fCaloClustersCont ( NULL ),
107 fTracksContArray ( NULL ),
108 fCaloClustContArray ( NULL ),
110 fNJets_accepted ( 0 ),
114 fJet1_sorted_idxvec(),
115 fEvent_sorted_idxvec()
118 fDebug = AliLog::GetGlobalDebugLevel();
127 fH21Transverse_min ( NULL ),
128 fH21Transverse_max ( NULL ),
131 fH21Toward_bin ( NULL ),
132 fH21Transverse_min_bin ( NULL ),
133 fH21Transverse_max_bin ( NULL ),
134 fH21Away_bin ( NULL ),
137 fH22Transverse_min ( NULL ),
138 fH22Transverse_max ( NULL ),
141 fH22Toward_bin ( NULL ),
142 fH22Transverse_min_bin ( NULL ),
143 fH22Transverse_max_bin ( NULL ),
144 fH22Away_bin ( NULL ),
147 fH23Transverse_min ( NULL ),
148 fH23Transverse_max ( NULL ),
153 fH40transmin ( NULL ),
154 fH40transmax ( NULL ),
156 fH40toward_bin ( NULL ),
157 fH40away_bin ( NULL ),
158 fH40transmin_bin ( NULL ),
159 fH40transmax_bin ( NULL ),
163 fH41transmin ( NULL ),
164 fH41transmax ( NULL ),
166 fH41toward_bin ( NULL ),
167 fH41away_bin ( NULL ),
168 fH41transmin_bin ( NULL ),
169 fH41transmax_bin ( NULL ),
171 fTracksCont ( NULL ),
172 fCaloClustersCont ( NULL ),
173 fTracksContArray ( NULL ),
175 fNJets_accepted ( 0 ),
178 fJet1_sorted_idxvec(),
179 fEvent_sorted_idxvec()
182 fDebug = AliLog::GetGlobalDebugLevel();
195 Int_t idx_jet_container = 0;
202 std::cout <<
"ERROR :: Jet Container not found!!!" << std::endl;
241 std::cout <<
"accepted (fNJets || fNPart) == 0" << std::endl;
270 Double_t
const kPI_3 = TMath::Pi() / 3.;
271 Double_t
const k2PI_3 = 2 * kPI_3;
273 Double_t jet1_pt =
fJet1->
Pt();
277 Double_t jet1_ptmax = jet1_trklead->Pt();
279 Int_t counter_part = 0;
280 Double_t counter_pt = 0.;
281 Int_t track_idx = -999;
282 TArrayI jet1_idx_list ( jet1_npart );
285 AliVParticle *track = NULL;
300 std::cout <<
"track not retrieved from fTracksCont" << std::endl;
305 Double_t track_pt = track->Pt();
308 Double_t dphi_part = TVector2::Phi_mpi_pi ( track->Phi() - jet1_trklead->Phi() );
312 Double_t dphi_part_jet1 = TVector2::Phi_mpi_pi ( track->Phi() -
fJet1->
Phi() );
316 counter_pt += track_pt;
318 fH23->Fill ( track_pt );
321 fH21->Fill ( jet1_pt, counter_part );
324 fH22->Fill ( jet1_pt, counter_pt );
325 fH22_bin->Fill ( jet1_pt, track_pt );
327 if ( ( dphi_part_jet1 > ( -1 ) * kPI_3 ) && ( dphi_part_jet1 < kPI_3 ) )
337 else if ( ( dphi_part_jet1 <= ( -1 ) * kPI_3 ) && ( dphi_part_jet1 > ( -1 ) * k2PI_3 ) )
347 else if ( ( dphi_part_jet1 >= kPI_3 ) && ( dphi_part_jet1 < k2PI_3 ) )
357 else if ( ( dphi_part_jet1 >= k2PI_3 ) || ( dphi_part_jet1 <= ( -1 ) * k2PI_3 ) )
359 fH21Away->Fill ( jet1_pt, counter_part );
362 fH22Away->Fill ( jet1_pt, counter_pt );
371 fH40->Fill ( jet1_ptmax, counter_part );
374 fH41->Fill ( jet1_ptmax, counter_pt );
375 fH41_bin->Fill ( jet1_ptmax, track_pt );
376 if ( ( dphi_part > ( -1 ) * kPI_3 ) && ( dphi_part < kPI_3 ) )
378 fH40toward->Fill ( jet1_ptmax, counter_part );
384 else if ( ( dphi_part <= ( -1 ) * kPI_3 ) && ( dphi_part > ( -1 ) * k2PI_3 ) )
392 else if ( ( dphi_part >= kPI_3 ) && ( dphi_part < k2PI_3 ) )
400 else if ( ( dphi_part >= k2PI_3 ) || ( dphi_part <= ( -1 ) * k2PI_3 ) )
402 fH40away->Fill ( jet1_ptmax, counter_part );
403 fH41away->Fill ( jet1_ptmax, counter_pt );
411 if ( !
IdxInArray ( track_idx, jet1_idx_list ) )
416 if ( ( dphi_part_jet1 > ( -1 ) * kPI_3 ) && ( dphi_part_jet1 < kPI_3 ) )
421 else if ( ( dphi_part_jet1 <= ( -1 ) * kPI_3 ) && ( dphi_part_jet1 > ( -1 ) * k2PI_3 ) )
426 else if ( ( dphi_part_jet1 >= kPI_3 ) && ( dphi_part_jet1 < k2PI_3 ) )
431 else if ( ( dphi_part_jet1 >= k2PI_3 ) || ( dphi_part_jet1 <= ( -1 ) * k2PI_3 ) )
461 fH21 =
new TProfile (
"histo21",
"N(in the event - including jet1) vs P_{T}(jet1)", 200, 0., 200. );
462 fH21->SetStats ( kTRUE );
463 fH21->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
464 fH21->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
465 fH21->GetXaxis()->SetTitleColor ( 1 );
466 fH21->SetMarkerStyle ( kFullCircle );
470 new TProfile (
"histo21_toward",
"N(in the event - including jet1) vs P_{T}(jet1) - toward", 200, 0., 200. );
472 fH21Toward->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
473 fH21Toward->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
479 "N(in the event - including jet1) vs P_{T}(jet1) - transverse MIN", 200, 0., 200. );
482 fH21Transverse_min->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
488 "N(in the event - including jet1) vs P_{T}(jet1) - transverse MAX", 200, 0., 200. );
491 fH21Transverse_max->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
496 fH21Away =
new TProfile (
"histo21_away",
"N(in the event - including jet1) vs P_{T}(jet1) - away", 200, 0., 200. );
498 fH21Away->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
499 fH21Away->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
500 fH21Away->GetXaxis()->SetTitleColor ( 1 );
501 fH21Away->SetMarkerStyle ( kFullCircle );
505 fH21_bin =
new TH1D (
"histo21_bin",
"N(in the event - including jet1) vs P_{T}(jet1)", 200, 0., 200. );
507 fH21_bin->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
508 fH21_bin->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
509 fH21_bin->GetXaxis()->SetTitleColor ( 1 );
510 fH21_bin->SetMarkerStyle ( kFullCircle );
514 new TH1D (
"histo21_toward_bin",
"N(in the event - including jet1) vs P_{T}(jet1) - toward", 200, 0., 200. );
517 fH21Toward_bin->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
523 "N(in the event - including jet1) vs P_{T}(jet1) - transverse MIN", 200, 0., 200. );
532 "N(in the event - including jet1) vs P_{T}(jet1) - transverse MAX", 200, 0., 200. );
540 fH21Away_bin =
new TH1D (
"histo21_away_bin",
"N(in the event - including jet1) vs P_{T}(jet1) - away", 200, 0., 200. );
542 fH21Away_bin->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
543 fH21Away_bin->GetYaxis()->SetTitle (
"<N(in the event - including jet1)> in 1 GeV/c bin" );
549 fH21_bin_wojet1 =
new TH1D (
"histo21_bin_wojet1",
"N(in the event - without jet1) vs P_{T}(jet1)", 200, 0., 200. );
552 fH21_bin_wojet1->GetYaxis()->SetTitle (
"<N(in the event - without jet1)> in 1 GeV/c bin" );
558 new TH1D (
"histo21_toward_bin_wojet1",
"N(in the event - without jet1) vs P_{T}(jet1) - toward", 200, 0., 200. );
567 new TH1D (
"histo21_transverse_min_bin_wojet1",
"N(in the event - without jet1) vs P_{T}(jet1) - transverse MIN", 200,
577 new TH1D (
"histo21_transverse_max_bin_wojet1",
"N(in the event - without jet1) vs P_{T}(jet1) - transverse MAX", 200,
587 new TH1D (
"histo21_away_bin_wojet1",
"N(in the event - without jet1) vs P_{T}(jet1) - away", 200, 0., 200. );
590 fH21Away_bin_wojet1->GetYaxis()->SetTitle (
"<N(in the event - without jet1)> in 1 GeV/c bin" );
596 fH22 =
new TProfile (
"histo22",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1)", 200, 0., 200. );
597 fH22->SetStats ( kTRUE );
598 fH22->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
599 fH22->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
600 fH22->GetXaxis()->SetTitleColor ( 1 );
601 fH22->SetMarkerStyle ( kFullCircle );
605 new TProfile (
"histo22_toward",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - toward", 200, 0., 200. );
607 fH22Toward->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
608 fH22Toward->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
614 "histo22_transverse_min",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - transverse MIN", 200, 0., 200. );
617 fH22Transverse_min->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
623 "histo22_transverse_max",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - transverse MAX", 200, 0., 200. );
626 fH22Transverse_max->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
632 new TProfile (
"histo22_away",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - away", 200, 0., 200. );
634 fH22Away->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
635 fH22Away->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
636 fH22Away->GetXaxis()->SetTitleColor ( 1 );
637 fH22Away->SetMarkerStyle ( kFullCircle );
641 fH22_bin =
new TH1D (
"histo22_bin",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1)", 200, 0., 200. );
643 fH22_bin->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
644 fH22_bin->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
645 fH22_bin->GetXaxis()->SetTitleColor ( 1 );
646 fH22_bin->SetMarkerStyle ( kFullCircle );
650 new TH1D (
"histo22_toward_bin",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - toward", 200, 0., 200. );
653 fH22Toward_bin->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
659 new TH1D (
"histo22_transverse_min_bin",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - transverse MIN",
663 fH22Transverse_min_bin->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
669 new TH1D (
"histo22_transverse_max_bin",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - transverse MAX",
673 fH22Transverse_max_bin->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
679 new TH1D (
"histo22_away_bin",
"PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - away", 200, 0., 200. );
681 fH22Away_bin->GetXaxis()->SetTitle (
"p_{T}(jet1) (GeV/c)" );
682 fH22Away_bin->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - including jet1)> in 1 GeV/c bin" );
689 new TH1D (
"histo22_bin_wojet1",
"PT_{sum}(in the event - without jet1) vs P_{T}(jet1)", 200, 0., 200. );
692 fH22_bin_wojet1->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - without jet1)> in 1 GeV/c bin" );
698 "PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - toward", 200, 0., 200. );
701 fH22Toward_bin_wojet1->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - without jet1)> in 1 GeV/c bin" );
707 new TH1D (
"histo22_transverse_min_bin_wojet1",
708 "PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - transverse MIN", 200, 0., 200. );
717 new TH1D (
"histo22_transverse_max_bin_wojet1",
718 "PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - transverse MAX", 200, 0., 200. );
727 new TH1D (
"histo22_away_bin_wojet1",
"PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - away", 200, 0., 200. );
730 fH22Away_bin_wojet1->GetYaxis()->SetTitle (
"<PT_{sum}(in the event - without jet1)> in 1 GeV/c bin" );
736 fH23 =
new TH1D (
"histo23",
"Pt Distribution of particles", 1500, 0., 1500. );
737 fH23->SetStats ( kTRUE );
738 fH23->GetXaxis()->SetTitle (
"p_{T} (GeV/c)" );
739 fH23->GetYaxis()->SetTitle (
"dN/dP_{T} (1/GeV/c)" );
740 fH23->GetXaxis()->SetTitleColor ( 1 );
741 fH23->SetMarkerStyle ( kFullCircle );
744 fH23Toward =
new TH1D (
"histo23_toward",
"'Toward' Pt Distribution of particles", 1500, 0., 1500. );
746 fH23Toward->GetXaxis()->SetTitle (
"p_{T} (GeV/c)" );
747 fH23Toward->GetYaxis()->SetTitle (
"dN/dP_{T} (1/GeV/c)" );
753 new TH1D (
"histo23_transverse_min",
"Pt Distribution of particles - Transverse MIN", 1500, 0., 1500. );
762 new TH1D (
"histo23_transverse_max",
"Pt Distribution of particles - Transverse MAX", 1500, 0., 1500. );
770 fH23Away =
new TH1D (
"histo23_away",
"'Away' Pt Distribution of particles", 1500, 0., 1500. );
772 fH23Away->GetXaxis()->SetTitle (
"p_{T} (GeV/c)" );
773 fH23Away->GetYaxis()->SetTitle (
"dN/dP_{T} (1/GeV/c)" );
774 fH23Away->GetXaxis()->SetTitleColor ( 1 );
775 fH23Away->SetMarkerStyle ( kFullCircle );
779 Int_t h40_nbin = 200;
780 Double_t h40_binwidth = 1.;
781 Double_t h40_low = 0.;
782 Double_t h40_high = h40_low + h40_binwidth * h40_nbin;
783 fH40 =
new TProfile (
"histo40",
"total particles fNPart w.r.t PTmax (pt of leading particle from jet1)", h40_nbin,
785 fH40->SetStats ( kTRUE );
786 fH40->GetXaxis()->SetTitle (
"PTmax" );
787 fH40->GetYaxis()->SetTitle (
"<fNPart> (accepted)" );
788 fH40->GetXaxis()->SetTitleColor ( 1 );
789 fH40->SetMarkerStyle ( kFullCircle );
792 fH40toward =
new TProfile (
"histo40toward",
"total particles fNPart w.r.t PTmax (pt of "
793 "leading particle from jet1) - TOWARD",
794 h40_nbin, h40_low, h40_high );
797 fH40toward->GetYaxis()->SetTitle (
"<fNPart> (accepted)" );
802 fH40away =
new TProfile (
"histo40away",
"total particles fNPart w.r.t PTmax (pt of "
803 "leading particle from jet1) - AWAY",
804 h40_nbin, h40_low, h40_high );
806 fH40away->GetXaxis()->SetTitle (
"PTmax" );
807 fH40away->GetYaxis()->SetTitle (
"<fNPart> (accepted)" );
808 fH40away->GetXaxis()->SetTitleColor ( 1 );
809 fH40away->SetMarkerStyle ( kFullCircle );
812 fH40transmin =
new TProfile (
"histo40transmin",
"total particles fNPart w.r.t PTmax (pt of "
813 "leading particle from jet1) - TRANSMIN",
814 h40_nbin, h40_low, h40_high );
817 fH40transmin->GetYaxis()->SetTitle (
"<fNPart> (accepted)" );
822 fH40transmax =
new TProfile (
"histo40transmax",
"total particles fNPart w.r.t PTmax (pt of "
823 "leading particle from jet1) - TRANSMAX",
824 h40_nbin, h40_low, h40_high );
827 fH40transmax->GetYaxis()->SetTitle (
"<fNPart> (accepted)" );
833 fH40_bin =
new TH1D (
"histo40_bin",
"total particles fNPart w.r.t PTmax (pt of leading particle from jet1)", h40_nbin,
836 fH40_bin->GetXaxis()->SetTitle (
"PTmax" );
837 fH40_bin->GetYaxis()->SetTitle (
"<fNPart> (accepted)" );
838 fH40_bin->GetXaxis()->SetTitleColor ( 1 );
839 fH40_bin->SetMarkerStyle ( kFullCircle );
842 fH40toward_bin =
new TH1D (
"histo40toward_bin",
"total particles fNPart w.r.t PTmax (pt of "
843 "leading particle from jet1) - TOWARD",
844 h40_nbin, h40_low, h40_high );
852 fH40away_bin =
new TH1D (
"histo40away_bin",
"total particles fNPart w.r.t PTmax (pt of "
853 "leading particle from jet1) - AWAY",
854 h40_nbin, h40_low, h40_high );
857 fH40away_bin->GetYaxis()->SetTitle (
"<fNPart> (accepted)" );
862 fH40transmin_bin =
new TH1D (
"histo40transmin_bin",
"total particles fNPart w.r.t PTmax (pt of "
863 "leading particle from jet1) - TRANSMIN",
864 h40_nbin, h40_low, h40_high );
872 fH40transmax_bin =
new TH1D (
"histo40transmax_bin",
"total particles fNPart w.r.t PTmax (pt of "
873 "leading particle from jet1) - TRANSMAX",
874 h40_nbin, h40_low, h40_high );
883 Int_t h41_nbin = 200;
884 Double_t h41_binwidth = 1.;
885 Double_t h41_low = 0.;
886 Double_t h41_high = h41_low + h41_binwidth * h41_nbin;
887 fH41 =
new TProfile (
"histo41",
"PTsum w.r.t PTmax (pt of leading particle from jet1)", h41_nbin, h41_low, h41_high );
888 fH41->SetStats ( kTRUE );
889 fH41->GetXaxis()->SetTitle (
"PTmax" );
890 fH41->GetYaxis()->SetTitle (
"PTsum (GeV/c)" );
891 fH41->GetXaxis()->SetTitleColor ( 1 );
892 fH41->SetMarkerStyle ( kFullCircle );
895 fH41toward =
new TProfile (
"histo41toward",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - TOWARD", h41_nbin,
899 fH41toward->GetYaxis()->SetTitle (
"PTsum (GeV/c)" );
904 fH41away =
new TProfile (
"histo41away",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - AWAY", h41_nbin,
907 fH41away->GetXaxis()->SetTitle (
"PTmax" );
908 fH41away->GetYaxis()->SetTitle (
"PTsum (GeV/c)" );
909 fH41away->GetXaxis()->SetTitleColor ( 1 );
910 fH41away->SetMarkerStyle ( kFullCircle );
913 fH41transmin =
new TProfile (
"histo41transmin",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - TRANSMIN",
914 h41_nbin, h41_low, h41_high );
922 fH41transmax =
new TProfile (
"histo41transmax",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - TRANSMAX",
923 h41_nbin, h41_low, h41_high );
933 new TH1D (
"histo41_bin",
"PTsum w.r.t PTmax (pt of leading particle from jet1)", h41_nbin, h41_low, h41_high );
935 fH41_bin->GetXaxis()->SetTitle (
"PTmax" );
936 fH41_bin->GetYaxis()->SetTitle (
"PTsum (GeV/c)" );
937 fH41_bin->GetXaxis()->SetTitleColor ( 1 );
938 fH41_bin->SetMarkerStyle ( kFullCircle );
941 fH41toward_bin =
new TH1D (
"histo41toward_bin",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - TOWARD",
942 h41_nbin, h41_low, h41_high );
950 fH41away_bin =
new TH1D (
"histo41away_bin",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - AWAY", h41_nbin,
959 fH41transmin_bin =
new TH1D (
"histo41transmin_bin",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - TRANSMIN",
960 h41_nbin, h41_low, h41_high );
968 fH41transmax_bin =
new TH1D (
"histo41transmax_bin",
"PTsum w.r.t PTmax (pt of leading particle from jet1) - TRANSMAX",
969 h41_nbin, h41_low, h41_high );
978 for ( Int_t i = 0; i <
fOutput->GetEntries(); ++i )
980 TH1 *h1 =
dynamic_cast<TH1 *
> (
fOutput->At ( i ) );
988 TProfile *hprof1 =
dynamic_cast<TProfile *
> (
fOutput->At ( i ) );
1004 Double_t dPhi = part1->Phi() - part2->Phi();
1005 Double_t dEta = part1->Eta() - part2->Eta();
1006 dPhi = TVector2::Phi_mpi_pi ( dPhi );
1008 return TMath::Sqrt ( dPhi * dPhi + dEta * dEta );
1017 Int_t entries =
event->GetNumberOfTracks();
1020 std::vector<ptidx_pair> pair_list;
1021 pair_list.reserve ( entries );
1023 for ( Int_t i_entry = 0; i_entry < entries; i_entry++ )
1025 AliVParticle *track =
event->GetTrack ( i_entry );
1029 AliError ( Form (
"Unable to find track %d in collection %s", i_entry, event->GetName() ) );
1033 pair_list.push_back ( std::make_pair ( track->Pt(), i_entry ) );
1036 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1039 std::vector<Int_t> index_sorted_list;
1040 index_sorted_list.reserve ( entries );
1042 for ( std::vector< std::pair <Double_t, Int_t> >::iterator it = pair_list.begin(); it != pair_list.end(); ++it )
1044 index_sorted_list.push_back ( ( *it ).second );
1047 return index_sorted_list;
1059 std::vector<ptidx_pair> pair_list;
1060 pair_list.reserve ( entries );
1062 trackscont->ResetCurrentID();
1063 for ( Int_t i_entry = 0; i_entry < entries; i_entry++ )
1069 AliError ( Form (
"Unable to find accepted track %d in collection %s", i_entry, trackscont->GetName() ) );
1073 pair_list.push_back ( std::make_pair ( track->Pt(), i_entry ) );
1076 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1079 std::vector<Int_t> index_sorted_list;
1080 index_sorted_list.reserve ( entries );
1082 for ( std::vector< std::pair <Double_t, Int_t> >::iterator it = pair_list.begin(); it != pair_list.end(); ++it )
1084 index_sorted_list.push_back ( ( *it ).second );
1087 return index_sorted_list;
1093 for ( Size_t i = 0; i < array.GetSize(); i++ )
1095 if ( index == array[i] ) {
return kTRUE; }
TH1D * fH22_bin_wojet1
! PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - per bin sum - full phi
TProfile * fH40
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - full phi ...
TH1D * fH22Toward_bin_wojet1
! PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - per bin sum - toward
TH1D * fH22Toward_bin
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - per bin sum - toward
ClassImp(AliAnalysisTaskTriggerRates) AliAnalysisTaskTriggerRates
virtual AliVParticle * GetNextAcceptParticle()
TProfile * fH40toward
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - toward ...
TH1D * fH21Transverse_min_bin
! N(in the event - including jet1) vs P_{T}(jet1) - per bin sum - trans min
std::vector< Int_t > fJet1_sorted_idxvec
vector of sorted indexes of particles in leading jet
TH1D * fH23Away
! 'Away' Pt Distribution of particles
TH1D * fH40transmin_bin
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - per bin sum - trans ...
TProfile * fH41away
! PTsum w.r.t PTmax - away
AliJetContainer * GetJetContainer(Int_t i=0) const
TProfile * fH21Transverse_max
! N(in the event - including jet1) vs P_{T}(jet1) - trans max
TH1D * fH23Transverse_min
! 'Transverse' MIN Pt Distribution of particles
Double_t DeltaR(const AliVParticle *part1, const AliVParticle *part2)
TH1D * fH41_bin
! PTsum w.r.t PTmax - per bin sum - full phi
TProfile * fH21Transverse_min
! N(in the event - including jet1) vs P_{T}(jet1) - trans min
TH1D * fH40transmax_bin
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - per bin sum - trans ...
TProfile * fH40away
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - away ...
TH1D * fH21Transverse_max_bin
! N(in the event - including jet1) vs P_{T}(jet1) - per bin sum - trans max
TProfile * fH41toward
! PTsum w.r.t PTmax - toward
AliClusterContainer * GetClusterContainer() const
TH1D * fH23Transverse_max
! 'Transverse' MAX Pt Distribution of particles
TH1D * fH22Transverse_min_bin_wojet1
! PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - per bin sum - trans min
Container for particles within the EMCAL framework.
Analysis of leading jets distribution of pt and multiplicity.
TH1D * fH23
! Event Pt Distribution of particles
UShort_t GetNumberOfTracks() const
UInt_t fNJets_accepted
Number of Jets found in event - accepted cuts applied by JetContainer.
TProfile * fH41
! PTsum w.r.t PTmax - full phi
TH1D * fH22Transverse_min_bin
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - per bin sum - trans min ...
AliParticleContainer * GetParticleContainer() const
std::vector< Int_t > fEvent_sorted_idxvec
vector of sorted indexes of accepted tracks in the event
AliVParticle * GetLeadingTrack(TClonesArray *tracks) const
TProfile * fH21
! N(in the event - including jet1) vs P_{T}(jet1) - full phi
TH1D * fH22_bin
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - per bin sum - full phi ...
TH1D * fH40toward_bin
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - per bin sum - toward...
TH1D * fH41away_bin
! PTsum w.r.t PTmax - per bin sum - away
AliParticleContainer * fTracksCont
! Tracks Container
std::vector< int > SortConstituentsPt(TClonesArray *tracks) const
TH1D * fH21Toward_bin
! N(in the event - including jet1) vs P_{T}(jet1) - per bin sum - toward
TProfile * fH22Away
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - away
virtual AliVParticle * GetAcceptParticle(Int_t i=-1) const
Int_t GetNAcceptedClusters() const
TH1D * fH22Away_bin
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - away
TProfile * fH22Toward
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - toward
TProfile * fH41transmax
! PTsum w.r.t PTmax - trans max
TProfile * fH40transmin
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - trans min ...
AliAnalysisTaskEmcalJetCDFUE()
TProfile * fH21Away
! N(in the event - including jet1) vs P_{T}(jet1) - away
TProfile * fH22
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - full phi
TH1D * fH21Transverse_min_bin_wojet1
! N(in the event - without jet1) vs P_{T}(jet1) - per bin sum - trans min
TH1D * fH21Toward_bin_wojet1
! N(in the event - without jet1) vs P_{T}(jet1) - per bin sum - toward
Bool_t IdxInArray(Int_t index, TArrayI &array)
functional for sorting pair by first element - descending
virtual ~AliAnalysisTaskEmcalJetCDFUE()
void UserCreateOutputObjects()
Int_t fNaccClus
! Multiplicity in event - accepted clusters in cluster container
Enhanced TList-derived class that implements correct merging for pt_hard binned production.
TH1D * fH40away_bin
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - per bin sum - away ...
TH1D * fH22Transverse_max_bin_wojet1
! PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - per bin sum - trans max
AliEmcalList * fOutput
!output list
TProfile * fH22Transverse_min
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - trans min
TProfile * fH41transmin
! PTsum w.r.t PTmax - trans min
TClonesArray * fTracks
!tracks
TProfile * fH40transmax
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - trans max ...
TH1D * fH22Away_bin_wojet1
! PT_{sum}(in the event - without jet1) vs P_{T}(jet1) - per bin sum - away
TH1D * fH21Transverse_max_bin_wojet1
! N(in the event - without jet1) vs P_{T}(jet1) - per bin sum - trans max
TH1D * fH41transmin_bin
! PTsum w.r.t PTmax - per bin sum - trans min
AliJetContainer * fJetsCont
! Jets Container
TH1D * fH41transmax_bin
! PTsum w.r.t PTmax - per bin sum - trans max
Base task in the EMCAL jet framework.
TH1D * fH21Away_bin
! N(in the event - including jet1) vs P_{T}(jet1) - per bin sum - away
TH1D * fH40_bin
! total particles fNPart w.r.t PTmax (pt of leading particle from leading jet) - per bin sum - full p...
TH1D * fH21_bin_wojet1
! N(in the event - without jet1) vs P_{T}(jet1) - per bin sum - full phi
TH1D * fH21_bin
! N(in the event - including jet1) vs P_{T}(jet1) - per bin sum - full phi
TH1D * fH23Toward
! 'Toward' Pt Distribution of particles
TH1D * fH22Transverse_max_bin
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - per bin sum - trans max ...
void UserCreateOutputObjects()
TClonesArray * fTracksContArray
! the array of tracks from the tracks container
TH1D * fH21Away_bin_wojet1
! N(in the event - without jet1) vs P_{T}(jet1) - per bin sum - away
Int_t GetNAcceptedParticles() const
void Terminate(Option_t *option)
TH1D * fH41toward_bin
! PTsum w.r.t PTmax - per bin sum - toward
TProfile * fH22Transverse_max
! PT_{sum}(in the event - including jet1) vs P_{T}(jet1) - trans max
AliEmcalJet * fJet1
! Leading Jet
AliClusterContainer * fCaloClustersCont
! Clusters Container
UInt_t fNaccPart
Multiplicity in event - accepted tracks in tracks container.
TClonesArray * fCaloClustContArray
! the array of clusters from the tracks container
TProfile * fH21Toward
! N(in the event - including jet1) vs P_{T}(jet1) - toward
std::vector< Int_t > SortTracksPt(AliVEvent *event) const