18 #include <TClonesArray.h>
22 #include <AliVCluster.h>
23 #include <AliVParticle.h>
80 TString histname =
"", groupname =
"", fullgroupname =
"";
84 while ((jetCont = static_cast<AliJetContainer*>(next())))
86 if (!jetCont) {
continue; }
87 groupname = jetCont->GetName();
89 Double_t jet_pt_min = jetCont->GetMinPt();
90 Double_t jet_pt_max = jetCont->GetMaxPt();
92 TString jetstrmin = TString::Itoa((Int_t)jet_pt_min,10);
93 TString jetstrmax = TString::Itoa((Int_t)jet_pt_max,10);
96 groupname = groupname +
"_" +
"ptbin" +
"_" + jetstrmin +
"_" + jetstrmax;
100 histname = TString::Format(
"%s/histo1_%d", groupname.Data(),
fCentBin);
103 histname = TString::Format(
"%s/histo2_%d", groupname.Data(),
fCentBin);
106 histname = TString::Format(
"%s/histo3_%d", groupname.Data(),
fCentBin);
109 histname = TString::Format(
"%s/histo4_%d", groupname.Data(),
fCentBin);
112 histname = TString::Format(
"%s/histo4c_%d", groupname.Data(),
fCentBin);
115 histname = TString::Format(
"%s/histo5_%d", groupname.Data(),
fCentBin);
118 histname = TString::Format(
"%s/histo6_%d", groupname.Data(),
fCentBin);
121 histname = TString::Format(
"%s/histo6c_%d", groupname.Data(),
fCentBin);
124 histname = TString::Format(
"%s/histo7_%d", groupname.Data(),
fCentBin);
127 histname = TString::Format(
"%s/histo7all_%d", groupname.Data(),
fCentBin);
130 histname = TString::Format(
"%s/histo8_%d", groupname.Data(),
fCentBin);
133 histname = TString::Format(
"%s/histo8_all_%d", groupname.Data(),
fCentBin);
136 histname = TString::Format(
"%s/histo8_p_%d", groupname.Data(),
fCentBin);
139 histname = TString::Format(
"%s/histo8_all_p_%d", groupname.Data(),
fCentBin);
142 histname = TString::Format(
"%s/histo8_pt_%d", groupname.Data(),
fCentBin);
145 histname = TString::Format(
"%s/histo8_all_pt_%d", groupname.Data(),
fCentBin);
146 TH1D* fH8_all_pt = (TH1D*)
GetHistogram(histname.Data());
148 histname = TString::Format(
"%s/histo8xi_%d", groupname.Data(),
fCentBin);
151 histname = TString::Format(
"%s/histo8xi_all_%d", groupname.Data(),
fCentBin);
154 histname = TString::Format(
"%s/histo8xi_p_%d", groupname.Data(),
fCentBin);
157 histname = TString::Format(
"%s/histo8xi_all_p_%d", groupname.Data(),
fCentBin);
158 TH1D* fH8xi_all_p = (TH1D*)
GetHistogram(histname.Data());
160 histname = TString::Format(
"%s/histo8xi_pt_%d", groupname.Data(),
fCentBin);
163 histname = TString::Format(
"%s/histo8xi_all_pt_%d", groupname.Data(),
fCentBin);
164 TH1D* fH8xi_all_pt = (TH1D*)
GetHistogram(histname.Data());
166 histname = TString::Format(
"%s/histo15_%d", groupname.Data(),
fCentBin);
169 histname = TString::Format(
"%s/histo15_n70_%d", groupname.Data(),
fCentBin);
172 histname = TString::Format(
"%s/histo15_n75_%d", groupname.Data(),
fCentBin);
175 histname = TString::Format(
"%s/histo15_n80_%d", groupname.Data(),
fCentBin);
178 histname = TString::Format(
"%s/histo15_n85_%d", groupname.Data(),
fCentBin);
181 histname = TString::Format(
"%s/histo15_n90_%d", groupname.Data(),
fCentBin);
184 histname = TString::Format(
"%s/histo15_pt70_%d", groupname.Data(),
fCentBin);
187 histname = TString::Format(
"%s/histo15_pt75_%d", groupname.Data(),
fCentBin);
190 histname = TString::Format(
"%s/histo15_pt80_%d", groupname.Data(),
fCentBin);
193 histname = TString::Format(
"%s/histo15_pt85_%d", groupname.Data(),
fCentBin);
196 histname = TString::Format(
"%s/histo15_pt90_%d", groupname.Data(),
fCentBin);
199 histname = TString::Format(
"%s/histo15all_%d", groupname.Data(),
fCentBin);
202 histname = TString::Format(
"%s/histo15all_n70_%d", groupname.Data(),
fCentBin);
203 TH2D* fH15all_n70 = (TH2D*)
GetHistogram(histname.Data());
205 histname = TString::Format(
"%s/histo15all_n75_%d", groupname.Data(),
fCentBin);
206 TH2D* fH15all_n75 = (TH2D*)
GetHistogram(histname.Data());
208 histname = TString::Format(
"%s/histo15all_n80_%d", groupname.Data(),
fCentBin);
209 TH2D* fH15all_n80 = (TH2D*)
GetHistogram(histname.Data());
211 histname = TString::Format(
"%s/histo15all_n85_%d", groupname.Data(),
fCentBin);
212 TH2D* fH15all_n85 = (TH2D*)
GetHistogram(histname.Data());
214 histname = TString::Format(
"%s/histo15all_n90_%d", groupname.Data(),
fCentBin);
215 TH2D* fH15all_n90 = (TH2D*)
GetHistogram(histname.Data());
217 histname = TString::Format(
"%s/histo15all_pt70_%d", groupname.Data(),
fCentBin);
218 TH2D* fH15all_pt70 = (TH2D*)
GetHistogram(histname.Data());
220 histname = TString::Format(
"%s/histo15all_pt75_%d", groupname.Data(),
fCentBin);
221 TH2D* fH15all_pt75 = (TH2D*)
GetHistogram(histname.Data());
223 histname = TString::Format(
"%s/histo15all_pt80_%d", groupname.Data(),
fCentBin);
224 TH2D* fH15all_pt80 = (TH2D*)
GetHistogram(histname.Data());
226 histname = TString::Format(
"%s/histo15all_pt85_%d", groupname.Data(),
fCentBin);
227 TH2D* fH15all_pt85 = (TH2D*)
GetHistogram(histname.Data());
229 histname = TString::Format(
"%s/histo15all_pt90_%d", groupname.Data(),
fCentBin);
230 TH2D* fH15all_pt90 = (TH2D*)
GetHistogram(histname.Data());
232 histname = TString::Format(
"%s/histo20_%d", groupname.Data(),
fCentBin);
235 histname = TString::Format(
"%s/histo20_n70_%d", groupname.Data(),
fCentBin);
238 histname = TString::Format(
"%s/histo20_n75_%d", groupname.Data(),
fCentBin);
241 histname = TString::Format(
"%s/histo20_n80_%d", groupname.Data(),
fCentBin);
244 histname = TString::Format(
"%s/histo20_n85_%d", groupname.Data(),
fCentBin);
247 histname = TString::Format(
"%s/histo20_n90_%d", groupname.Data(),
fCentBin);
250 histname = TString::Format(
"%s/histo20_pt70_%d", groupname.Data(),
fCentBin);
253 histname = TString::Format(
"%s/histo20_pt75_%d", groupname.Data(),
fCentBin);
256 histname = TString::Format(
"%s/histo20_pt80_%d", groupname.Data(),
fCentBin);
259 histname = TString::Format(
"%s/histo20_pt85_%d", groupname.Data(),
fCentBin);
262 histname = TString::Format(
"%s/histo20_pt90_%d", groupname.Data(),
fCentBin);
265 histname = TString::Format(
"%s/histo20all_%d", groupname.Data(),
fCentBin);
268 histname = TString::Format(
"%s/histo20all_n70_%d", groupname.Data(),
fCentBin);
269 TH1D* fH20all_n70 = (TH1D*)
GetHistogram(histname.Data());
271 histname = TString::Format(
"%s/histo20all_n75_%d", groupname.Data(),
fCentBin);
272 TH1D* fH20all_n75 = (TH1D*)
GetHistogram(histname.Data());
274 histname = TString::Format(
"%s/histo20all_n80_%d", groupname.Data(),
fCentBin);
275 TH1D* fH20all_n80 = (TH1D*)
GetHistogram(histname.Data());
277 histname = TString::Format(
"%s/histo20all_n85_%d", groupname.Data(),
fCentBin);
278 TH1D* fH20all_n85 = (TH1D*)
GetHistogram(histname.Data());
280 histname = TString::Format(
"%s/histo20all_n90_%d", groupname.Data(),
fCentBin);
281 TH1D* fH20all_n90 = (TH1D*)
GetHistogram(histname.Data());
283 histname = TString::Format(
"%s/histo20all_pt70_%d", groupname.Data(),
fCentBin);
284 TH1D* fH20all_pt70 = (TH1D*)
GetHistogram(histname.Data());
286 histname = TString::Format(
"%s/histo20all_pt75_%d", groupname.Data(),
fCentBin);
287 TH1D* fH20all_pt75 = (TH1D*)
GetHistogram(histname.Data());
289 histname = TString::Format(
"%s/histo20all_pt80_%d", groupname.Data(),
fCentBin);
290 TH1D* fH20all_pt80 = (TH1D*)
GetHistogram(histname.Data());
292 histname = TString::Format(
"%s/histo20all_pt85_%d", groupname.Data(),
fCentBin);
293 TH1D* fH20all_pt85 = (TH1D*)
GetHistogram(histname.Data());
295 histname = TString::Format(
"%s/histo20all_pt90_%d", groupname.Data(),
fCentBin);
296 TH1D* fH20all_pt90 = (TH1D*)
GetHistogram(histname.Data());
298 histname = TString::Format(
"%s/histo_g_%d", groupname.Data(),
fCentBin);
301 histname = TString::Format(
"%s/histo_g_n70%d", groupname.Data(),
fCentBin);
304 histname = TString::Format(
"%s/histo_g_n75%d", groupname.Data(),
fCentBin);
307 histname = TString::Format(
"%s/histo_g_n80%d", groupname.Data(),
fCentBin);
310 histname = TString::Format(
"%s/histo_g_n85%d", groupname.Data(),
fCentBin);
313 histname = TString::Format(
"%s/histo_g_n90%d", groupname.Data(),
fCentBin);
316 histname = TString::Format(
"%s/histo_g_pt70%d", groupname.Data(),
fCentBin);
319 histname = TString::Format(
"%s/histo_g_pt75%d", groupname.Data(),
fCentBin);
322 histname = TString::Format(
"%s/histo_g_pt80%d", groupname.Data(),
fCentBin);
325 histname = TString::Format(
"%s/histo_g_pt85%d", groupname.Data(),
fCentBin);
328 histname = TString::Format(
"%s/histo_g_pt90%d", groupname.Data(),
fCentBin);
331 histname = TString::Format(
"%s/histo_ptd_%d", groupname.Data(),
fCentBin);
334 histname = TString::Format(
"%s/histo_ptd_n70_%d", groupname.Data(),
fCentBin);
337 histname = TString::Format(
"%s/histo_ptd_n75_%d", groupname.Data(),
fCentBin);
340 histname = TString::Format(
"%s/histo_ptd_n80_%d", groupname.Data(),
fCentBin);
343 histname = TString::Format(
"%s/histo_ptd_n85_%d", groupname.Data(),
fCentBin);
346 histname = TString::Format(
"%s/histo_ptd_n90_%d", groupname.Data(),
fCentBin);
349 histname = TString::Format(
"%s/histo_ptd_pt70_%d", groupname.Data(),
fCentBin);
350 TH1D* fHptd_pt70 = (TH1D*)
GetHistogram(histname.Data());
352 histname = TString::Format(
"%s/histo_ptd_pt75_%d", groupname.Data(),
fCentBin);
353 TH1D* fHptd_pt75 = (TH1D*)
GetHistogram(histname.Data());
355 histname = TString::Format(
"%s/histo_ptd_pt80_%d", groupname.Data(),
fCentBin);
356 TH1D* fHptd_pt80 = (TH1D*)
GetHistogram(histname.Data());
358 histname = TString::Format(
"%s/histo_ptd_pt85_%d", groupname.Data(),
fCentBin);
359 TH1D* fHptd_pt85 = (TH1D*)
GetHistogram(histname.Data());
361 histname = TString::Format(
"%s/histo_ptd_pt90_%d", groupname.Data(),
fCentBin);
362 TH1D* fHptd_pt90 = (TH1D*)
GetHistogram(histname.Data());
366 Int_t fNJets_accepted = jetCont->
GetNJets();
370 if (!fTracksCont) { std::cout <<
"********* JET CONTAINER WITHOUT TRACKS CONTAINER *********" << std::endl;
continue; }
371 TClonesArray* fTracksContArray = fTracksCont->GetArray();
379 Int_t fNaccClus = -1;
383 if ( ( fNJets_accepted < 1 ) || ( fNaccPart < 1 ) )
385 if ( fDebug > 1 ) { std::cout <<
"accepted (fNJets || fNPart) == 0" << std::endl; }
390 { std::cout <<
"fNJets = " << fNJets_accepted <<
" ; fNPart = " << fNaccPart << std::endl; }
392 AliVParticle* track = NULL;
395 fH5->Fill ( fNJets_accepted );
397 UShort_t counter_part = 0; Double_t counter_pt = 0.;
399 UShort_t jet_n90 = -99 ; Double_t jet_pt90 = -99.99 ;
400 UShort_t jet_n85 = -99 ; Double_t jet_pt85 = -99.99 ;
401 UShort_t jet_n80 = -99 ; Double_t jet_pt80 = -99.99 ;
402 UShort_t jet_n75 = -99 ; Double_t jet_pt75 = -99.99 ;
403 UShort_t jet_n70 = -99 ; Double_t jet_pt70 = -99.99 ;
406 Double_t g_tot = 0.; Double_t sum_part_pt_tot = 0.; Double_t sum_part_pt2_tot = 0.;
408 Double_t g_n90 = 0.; Double_t sum_part_pt_n90 = 0.; Double_t sum_part_pt2_n90 = 0.;
409 Double_t g_n85 = 0.; Double_t sum_part_pt_n85 = 0.; Double_t sum_part_pt2_n85 = 0.;
410 Double_t g_n80 = 0.; Double_t sum_part_pt_n80 = 0.; Double_t sum_part_pt2_n80 = 0.;
411 Double_t g_n75 = 0.; Double_t sum_part_pt_n75 = 0.; Double_t sum_part_pt2_n75 = 0.;
412 Double_t g_n70 = 0.; Double_t sum_part_pt_n70 = 0.; Double_t sum_part_pt2_n70 = 0.;
414 Double_t g_pt90 = 0.; Double_t sum_part_pt_pt90 = 0.; Double_t sum_part_pt2_pt90 = 0.;
415 Double_t g_pt85 = 0.; Double_t sum_part_pt_pt85 = 0.; Double_t sum_part_pt2_pt85 = 0.;
416 Double_t g_pt80 = 0.; Double_t sum_part_pt_pt80 = 0.; Double_t sum_part_pt2_pt80 = 0.;
417 Double_t g_pt75 = 0.; Double_t sum_part_pt_pt75 = 0.; Double_t sum_part_pt2_pt75 = 0.;
418 Double_t g_pt70 = 0.; Double_t sum_part_pt_pt70 = 0.; Double_t sum_part_pt2_pt70 = 0.;
429 { std::cout <<
"+++++++++++++++++>>>>>>>>> Leading jet found" << std::endl; jet1->
Print(); }
431 { Printf (
"Jet1 not found (did not survive cuts?)\n" ); }
437 std::vector< int > jet1_sorted_idxvec;
442 Int_t track_idx = -999;
443 Double_t jet1_pt = jet1->
Pt();
447 UShort_t jet1_n90 = ( UShort_t ) ( 0.9 * jet1_npart );
448 Double_t jet1_pt90 = 0.9 * jet1_pt;
450 UShort_t jet1_n85 = ( UShort_t ) ( 0.85 * jet1_npart );
451 Double_t jet1_pt85 = 0.85 * jet1_pt;
453 UShort_t jet1_n80 = ( UShort_t ) ( 0.8 * jet1_npart );
454 Double_t jet1_pt80 = 0.8 * jet1_pt;
456 UShort_t jet1_n75 = ( UShort_t ) ( 0.75 * jet1_npart );
457 Double_t jet1_pt75 = 0.75 * jet1_pt;
459 UShort_t jet1_n70 = ( UShort_t ) ( 0.7 * jet1_npart );
460 Double_t jet1_pt70 = 0.7 * jet1_pt;
462 fH6->Fill ( jet1_npart );
463 fH6c->Fill ( jet1_nconst );
464 fH7->Fill ( jet1_pt, jet1_nconst );
466 counter_part = 0; counter_pt = 0.;
471 for ( Size_t i = 0; i < jet1_npart; i++ )
473 track_idx = jet1_sorted_idxvec.at (i);
474 track = jet1->
TrackAt ( track_idx, fTracksContArray );
475 if (!track) { std::cout <<
"Parsing tracks of jet1 :: track not defined but it should!!!" << std::endl;
continue; }
477 Double_t dpart = jet1->
DeltaR ( track );
478 Double_t track_pt = track->Pt();
480 fH8->Fill ( jet1->
GetZ ( track ) );
481 fH8xi->Fill ( jet1->
GetXi ( track ) );
483 Double_t z_p =
Z_ptot(jet1, track);
485 fH8xi_p->Fill (
Xi (z_p) );
487 Double_t z_pt =
Z_pt(jet1, track);
488 fH8_pt->Fill ( z_pt );
489 fH8xi_pt->Fill (
Xi (z_pt) );
491 fH15->Fill ( dpart, track_pt );
493 fH20->Fill ( dpart );
496 if ( counter_part <= jet1_n70 )
498 fH15_n70->Fill ( dpart, track_pt );
499 fH20_n70->Fill ( dpart );
502 if ( counter_part <= jet1_n75 )
504 fH15_n75->Fill ( dpart, track_pt );
505 fH20_n75->Fill ( dpart );
508 if ( counter_part <= jet1_n80 )
510 fH15_n80->Fill ( dpart, track_pt );
511 fH20_n80->Fill ( dpart );
514 if ( counter_part <= jet1_n85 )
516 fH15_n85->Fill ( dpart, track_pt );
517 fH20_n85->Fill ( dpart );
520 if ( counter_part <= jet1_n90 )
522 fH15_n90->Fill ( dpart, track_pt );
523 fH20_n90->Fill ( dpart );
527 if ( counter_pt <= jet1_pt70 )
529 fH15_pt70->Fill ( dpart, track_pt );
530 fH20_pt70->Fill ( dpart );
533 if ( counter_pt <= jet1_pt75 )
535 fH15_pt75->Fill ( dpart, track_pt );
536 fH20_pt75->Fill ( dpart );
539 if ( counter_pt <= jet1_pt80 )
541 fH15_pt80->Fill ( dpart, track_pt );
542 fH20_pt80->Fill ( dpart );
545 if ( counter_pt <= jet1_pt85 )
547 fH15_pt85->Fill ( dpart, track_pt );
548 fH20_pt85->Fill ( dpart );
551 if ( counter_pt <= jet1_pt90 )
553 fH15_pt90->Fill ( dpart, track_pt );
554 fH20_pt90->Fill ( dpart );
557 ++counter_part; counter_pt += track_pt;
559 jet1_sorted_idxvec.clear();
563 track = NULL; jet1 = NULL;
571 Double_t jet_pt = 0. ; UShort_t jet_npart = 0; UShort_t jet_nconst = 0;
574 std::vector< int > jet_sorted_idxvec ;
580 Int_t track_idx = -999;
589 g_tot = 0.; sum_part_pt_tot = 0.; sum_part_pt2_tot = 0.;
591 g_n90 = 0.; sum_part_pt_n90 = 0.; sum_part_pt2_n90 = 0.;
592 g_n85 = 0.; sum_part_pt_n85 = 0.; sum_part_pt2_n85 = 0.;
593 g_n80 = 0.; sum_part_pt_n80 = 0.; sum_part_pt2_n80 = 0.;
594 g_n75 = 0.; sum_part_pt_n75 = 0.; sum_part_pt2_n75 = 0.;
595 g_n70 = 0.; sum_part_pt_n70 = 0.; sum_part_pt2_n70 = 0.;
597 g_pt90 = 0.; sum_part_pt_pt90 = 0.; sum_part_pt2_pt90 = 0.;
598 g_pt85 = 0.; sum_part_pt_pt85 = 0.; sum_part_pt2_pt85 = 0.;
599 g_pt80 = 0.; sum_part_pt_pt80 = 0.; sum_part_pt2_pt80 = 0.;
600 g_pt75 = 0.; sum_part_pt_pt75 = 0.; sum_part_pt2_pt75 = 0.;
601 g_pt70 = 0.; sum_part_pt_pt70 = 0.; sum_part_pt2_pt70 = 0.;
603 jet_n90 = ( UShort_t ) ( 0.9 * jet_npart );
604 jet_pt90 = 0.9 * jet_pt;
606 jet_n85 = ( UShort_t ) ( 0.85 * jet_npart );
607 jet_pt85 = 0.85 * jet_pt;
609 jet_n80 = ( UShort_t ) ( 0.8 * jet_npart );
610 jet_pt80 = 0.8 * jet_pt;
612 jet_n75 = ( UShort_t ) ( 0.75 * jet_npart );
613 jet_pt75 = 0.75 * jet_pt;
615 jet_n70 = ( UShort_t ) ( 0.7 * jet_npart );
616 jet_pt70 = 0.7 * jet_pt;
618 fH1->Fill ( jet_pt );
619 fH2->Fill ( jet->
Eta() );
620 fH3->Fill ( jet->
Phi() );
621 fH4->Fill ( jet_npart );
622 fH4c->Fill ( jet_nconst );
623 fH7all->Fill ( jet_pt, jet_nconst );
625 counter_part = 0; counter_pt = 0.;
627 for ( Size_t i = 0; i < jet_npart; i++ )
629 track_idx = jet_sorted_idxvec.at (i);
630 track = jet->
TrackAt ( track_idx, fTracksContArray );
631 if (!track) { std::cout <<
"Parsing tracks of jets :: track not defined but it should!!!" << std::endl;
continue; }
633 Double_t dpart = jet->
DeltaR ( track );
634 Double_t track_pt = track->Pt();
636 fH8_all->Fill ( jet->
GetZ ( track ) );
637 fH8xi_all->Fill ( jet->
GetXi ( track ) );
639 Double_t z_p =
Z_ptot(jet,track);
640 fH8_all_p->Fill ( z_p );
641 fH8xi_all_p->Fill (
Xi (z_p) );
643 Double_t z_pt =
Z_pt(jet,track);
644 fH8_all_pt->Fill ( z_pt );
645 fH8xi_all_pt->Fill (
Xi (z_pt) );
647 fH15all->Fill ( dpart, track_pt );
648 fH20all->Fill ( dpart );
651 g_tot += (track_pt * dpart)/jet_pt;
652 sum_part_pt_tot += track_pt;
653 sum_part_pt2_tot += TMath::Power( track_pt, 2 );
656 if ( counter_part <= jet_n90 )
658 fH15all_n90->Fill ( dpart, track_pt );
659 fH20all_n90->Fill ( dpart );
662 g_n90 += (track_pt * dpart)/jet_pt;
663 sum_part_pt_n90 += track_pt;
664 sum_part_pt2_n90 += TMath::Power( track_pt, 2 );
667 if ( counter_pt <= jet_pt90 )
669 fH15all_pt90->Fill ( dpart, track_pt );
670 fH20all_pt90->Fill ( dpart );
673 g_pt90 += (track_pt * dpart)/jet_pt;
674 sum_part_pt_pt90 += track_pt;
675 sum_part_pt2_pt90 += TMath::Power( track_pt, 2 );
679 if ( counter_part <= jet_n85 )
681 fH15all_n85->Fill ( dpart, track_pt );
682 fH20all_n85->Fill ( dpart );
685 g_n85 += (track_pt * dpart)/jet_pt;
686 sum_part_pt_n85 += track_pt;
687 sum_part_pt2_n85 += TMath::Power( track_pt, 2 );
690 if ( counter_pt <= jet_pt85 )
692 fH15all_pt85->Fill ( dpart, track_pt );
693 fH20all_pt85->Fill ( dpart );
696 g_pt85 += (track_pt * dpart)/jet_pt;
697 sum_part_pt_pt85 += track_pt;
698 sum_part_pt2_pt85 += TMath::Power( track_pt, 2 );
702 if ( counter_part <= jet_n80 )
704 fH15all_n80->Fill ( dpart, track_pt );
705 fH20all_n80->Fill ( dpart );
708 g_n80 += (track_pt * dpart)/jet_pt;
709 sum_part_pt_n80 += track_pt;
710 sum_part_pt2_n80 += TMath::Power( track_pt, 2 );
713 if ( counter_pt <= jet_pt80 )
715 fH15all_pt80->Fill ( dpart, track_pt );
716 fH20all_pt80->Fill ( dpart );
719 g_pt80 += (track_pt * dpart)/jet_pt;
720 sum_part_pt_pt80 += track_pt;
721 sum_part_pt2_pt80 += TMath::Power( track_pt, 2 );
725 if ( counter_part <= jet_n75 )
727 fH15all_n75->Fill ( dpart, track_pt );
728 fH20all_n75->Fill ( dpart );
731 g_n75 += (track_pt * dpart)/jet_pt;
732 sum_part_pt_n75 += track_pt;
733 sum_part_pt2_n75 += TMath::Power( track_pt, 2 );
736 if ( counter_pt <= jet_pt75 )
738 fH15all_pt75->Fill ( dpart, track_pt );
739 fH20all_pt75->Fill ( dpart );
742 g_pt75 += (track_pt * dpart)/jet_pt;
743 sum_part_pt_pt75 += track_pt;
744 sum_part_pt2_pt75 += TMath::Power( track_pt, 2 );
748 if ( counter_part <= jet_n70 )
750 fH15all_n70->Fill ( dpart, track_pt );
751 fH20all_n70->Fill ( dpart );
754 g_n70 += (track_pt * dpart)/jet_pt;
755 sum_part_pt_n70 += track_pt;
756 sum_part_pt2_n70 += TMath::Power( track_pt, 2 );
759 if ( counter_pt <= jet_pt70 )
761 fH15all_pt70->Fill ( dpart, track_pt );
762 fH20all_pt70->Fill ( dpart );
765 g_pt70 += (track_pt * dpart)/jet_pt;
766 sum_part_pt_pt70 += track_pt;
767 sum_part_pt2_pt70 += TMath::Power( track_pt, 2 );
769 ++counter_part; counter_pt += track_pt;
773 fHg_n70->Fill ( g_n70 ); fHg_pt70->Fill ( g_pt70 );
774 fHg_n75->Fill ( g_n75 ); fHg_pt75->Fill ( g_pt75 );
775 fHg_n80->Fill ( g_n80 ); fHg_pt80->Fill ( g_pt80 );
776 fHg_n85->Fill ( g_n85 ); fHg_pt85->Fill ( g_pt85 );
777 fHg_n90->Fill ( g_n90 ); fHg_pt90->Fill ( g_pt90 );
779 fHptd->Fill( TMath::Sqrt(sum_part_pt2_tot)/sum_part_pt_tot );
781 fHptd->Fill( TMath::Sqrt(sum_part_pt2_n70)/sum_part_pt_n70 );
782 fHptd->Fill( TMath::Sqrt(sum_part_pt2_n75)/sum_part_pt_n75 );
783 fHptd->Fill( TMath::Sqrt(sum_part_pt2_n80)/sum_part_pt_n80 );
784 fHptd->Fill( TMath::Sqrt(sum_part_pt2_n85)/sum_part_pt_n85 );
785 fHptd->Fill( TMath::Sqrt(sum_part_pt2_n90)/sum_part_pt_n90 );
787 fHptd->Fill( TMath::Sqrt(sum_part_pt2_pt70)/sum_part_pt_pt70 );
788 fHptd->Fill( TMath::Sqrt(sum_part_pt2_pt75)/sum_part_pt_pt75 );
789 fHptd->Fill( TMath::Sqrt(sum_part_pt2_pt80)/sum_part_pt_pt80 );
790 fHptd->Fill( TMath::Sqrt(sum_part_pt2_pt85)/sum_part_pt_pt85 );
791 fHptd->Fill( TMath::Sqrt(sum_part_pt2_pt90)/sum_part_pt_pt90 );
794 jet_sorted_idxvec.clear();
800 jet = NULL; track = NULL;
816 TString histname =
"", histtitle =
"", groupname =
"", fullgroupname =
"";
819 while ((jetCont = static_cast<AliJetContainer*>(next())))
821 groupname = jetCont->GetName();
823 Double_t jet_pt_min = jetCont->GetMinPt();
824 Double_t jet_pt_max = jetCont->GetMaxPt();
826 TString jetstrmin = TString::Itoa((Int_t)jet_pt_min,10);
827 TString jetstrmax = TString::Itoa((Int_t)jet_pt_max,10);
830 groupname = groupname +
"_" +
"ptbin" +
"_" + jetstrmin +
"_" + jetstrmax;
833 for (Int_t cent = 0; cent <
fNcentBins; cent++)
836 Int_t h1_nbin = 200; Double_t h1_binwidth = 1; Double_t h1_low = 0;
837 Double_t h1_high = h1_low + h1_binwidth * h1_nbin;
838 histname = TString::Format(
"%s/histo1_%d", groupname.Data(), cent);
839 histtitle = TString::Format(
"%s;#it{p}_{T,jet} (GeV/#it{c}) (accepted);Jets", histname.Data());
843 Int_t h2_nbin = 200; Double_t h2_binwidth = 0.01; Double_t h2_low = -1;
844 Double_t h2_high = h2_low + h2_binwidth * h2_nbin;
845 histname = TString::Format(
"%s/histo2_%d", groupname.Data(), cent);
846 histtitle = TString::Format(
"%s;#it{#eta}_{jet};Jets", histname.Data());
850 Int_t h3_nbin = 126; Double_t h3_binwidth = 0.05; Double_t h3_low = 0.;
851 Double_t h3_high = h3_low + h3_binwidth * h3_nbin;
852 histname = TString::Format(
"%s/histo3_%d", groupname.Data(), cent);
853 histtitle = TString::Format(
"%s;#it{#phi}_{jet};Jets", histname.Data());
857 Int_t h4_nbin = 100; Double_t h4_binwidth = 1; Double_t h4_low = 0;
858 Double_t h4_high = h4_low + h4_binwidth * h4_nbin;
859 histname = TString::Format(
"%s/histo4_%d", groupname.Data(), cent);
860 histtitle = TString::Format(
"%s;N_{tracks}(jet);Jets", histname.Data());
863 histname = TString::Format(
"%s/histo4c_%d", groupname.Data(), cent);
864 histtitle = TString::Format(
"%s;N_{tracks}(jet);Jets", histname.Data());
867 histname = TString::Format(
"%s/histo6_%d", groupname.Data(), cent);
868 histtitle = TString::Format(
"%s;N_{tracks}(jet1);Jets", histname.Data());
871 histname = TString::Format(
"%s/histo6c_%d", groupname.Data(), cent);
872 histtitle = TString::Format(
"%s;N_{tracks}(jet1);Jets", histname.Data());
877 Int_t h5_nbin = 200; Double_t h5_binwidth = 1; Double_t h5_low = 0;
878 Double_t h5_high = h5_low + h5_binwidth * h5_nbin;
879 histname = TString::Format(
"%s/histo5_%d", groupname.Data(), cent);
880 histtitle = TString::Format(
"%s;N_{jets};Events", histname.Data());
884 Int_t h7_xnbin = 100; Double_t h7_xbinwidth = 1; Double_t h7_xlow = 0;
885 Double_t h7_xhigh = h7_xlow + h7_xbinwidth * h7_xnbin;
886 Int_t h7_ynbin = 200; Double_t h7_ybinwidth = 1; Double_t h7_ylow = 0;
887 Double_t h7_yhigh = h7_ylow + h7_ybinwidth * h7_ynbin;
889 histname = TString::Format(
"%s/histo7_%d", groupname.Data(), cent);
890 histtitle = TString::Format(
"%s;#it{p}_{T,jet1} (GeV/c);N_{tracks}(jet1)", histname.Data());
891 fHistManager.
CreateTH2(histname, histtitle, h7_xnbin, h7_xlow, h7_xhigh, h7_ynbin, h7_ylow, h7_yhigh);
893 histname = TString::Format(
"%s/histo7all_%d", groupname.Data(), cent);
894 histtitle = TString::Format(
"%s;#it{p}_{T,jet} (GeV/c);N_{tracks}(jets)", histname.Data());
895 fHistManager.
CreateTH2(histname, histtitle, h7_xnbin, h7_xlow, h7_xhigh, h7_ynbin, h7_ylow, h7_yhigh);
899 Int_t h8_nbin = 101; Double_t h8_binwidth = 0.01; Double_t h8_low = 0;
900 Double_t h8_high = h8_low + h8_binwidth * h8_nbin;
903 histname = TString::Format(
"%s/histo8_%d", groupname.Data(), cent);
904 histtitle = TString::Format(
"%s - jet1;z;F(Z) = 1/N_{jet1} dN/dz", histname.Data());
907 histname = TString::Format(
"%s/histo8_all_%d", groupname.Data(), cent);
908 histtitle = TString::Format(
"%s - all jets;z;F(Z) = 1/N_{jets} dN/dz", histname.Data());
913 histname = TString::Format(
"%s/histo8_p_%d", groupname.Data(), cent);
914 histtitle = TString::Format(
"%s - jet1 P_tot;z = p_{track}/p_{jet1};F(Z) = 1/N_{jet1} dN/dz", histname.Data());
917 histname = TString::Format(
"%s/histo8_all_p_%d", groupname.Data(), cent);
918 histtitle = TString::Format(
"%s - all jets P_tot;z = p_{track}/p_{jet};F(Z) = 1/N_{jets} dN/dz", histname.Data());
923 histname = TString::Format(
"%s/histo8_pt_%d", groupname.Data(), cent);
924 histtitle = TString::Format(
"%s - jet1 Pt;z = p_{T,track}/p_{T,jet1};F(Z) = 1/N_{jet1} dN/dz", histname.Data());
927 histname = TString::Format(
"%s/histo8_all_pt_%d", groupname.Data(), cent);
928 histtitle = TString::Format(
"%s - all jets Pt;z = p_{T,track}/p_{T,jet1};F(Z) = 1/N_{jets} dN/dz", histname.Data());
933 Int_t h8xi_nbin = 300; Double_t h8xi_binwidth = 0.05; Double_t h8xi_low = 0;
934 Double_t h8xi_high = h8xi_low + h8xi_binwidth * h8xi_nbin;
935 histname = TString::Format(
"%s/histo8xi_%d", groupname.Data(), cent);
936 histtitle = TString::Format(
"%s - jet1;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
939 histname = TString::Format(
"%s/histo8xi_all_%d", groupname.Data(), cent);
940 histtitle = TString::Format(
"%s - all jets;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
944 histname = TString::Format(
"%s/histo8xi_p_%d", groupname.Data(), cent);
945 histtitle = TString::Format(
"%s - jet1 P_tot;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
948 histname = TString::Format(
"%s/histo8xi_all_p_%d", groupname.Data(), cent);
949 histtitle = TString::Format(
"%s - all jets P_tot;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
953 histname = TString::Format(
"%s/histo8xi_pt_%d", groupname.Data(), cent);
954 histtitle = TString::Format(
"%s - jet1 Pt;#xi = ln(1/z);D(#xi) = 1/N_{jet1} dN/d#xi", histname.Data());
957 histname = TString::Format(
"%s/histo8xi_all_pt_%d", groupname.Data(), cent);
958 histtitle = TString::Format(
"%s - all jets Pt;#xi = ln(1/z);D(#xi) = 1/N_{jets} dN/d#xi", histname.Data());
963 Int_t h15_xnbin = 100; Double_t h15_xbinwidth = 0.01; Double_t h15_xlow = 0.;
964 Double_t h15_xhigh = h15_xlow + h15_xbinwidth * h15_xnbin;
965 Int_t h15_ynbin = 1000; Double_t h15_ybinwidth = 1.; Double_t h15_ylow = 0.;
966 Double_t h15_yhigh = h15_ylow + h15_ybinwidth * h15_ynbin;
969 histname = TString::Format(
"%s/histo15_%d", groupname.Data(), cent);
970 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
971 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
974 histname = TString::Format(
"%s/histo15_n70_%d", groupname.Data(), cent);
975 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
976 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
978 histname = TString::Format(
"%s/histo15_n75_%d", groupname.Data(), cent);
979 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
980 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
982 histname = TString::Format(
"%s/histo15_n80_%d", groupname.Data(), cent);
983 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
984 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
986 histname = TString::Format(
"%s/histo15_n85_%d", groupname.Data(), cent);
987 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
988 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
990 histname = TString::Format(
"%s/histo15_n90_%d", groupname.Data(), cent);
991 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
992 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
995 histname = TString::Format(
"%s/histo15_pt70_%d", groupname.Data(), cent);
996 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
997 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
999 histname = TString::Format(
"%s/histo15_pt75_%d", groupname.Data(), cent);
1000 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1001 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1003 histname = TString::Format(
"%s/histo15_pt80_%d", groupname.Data(), cent);
1004 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1005 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1007 histname = TString::Format(
"%s/histo15_pt85_%d", groupname.Data(), cent);
1008 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1009 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1011 histname = TString::Format(
"%s/histo15_pt90_%d", groupname.Data(), cent);
1012 histtitle = TString::Format(
"%s - jet1;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1013 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1017 histname = TString::Format(
"%s/histo15all_%d", groupname.Data(), cent);
1018 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1019 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1022 histname = TString::Format(
"%s/histo15all_n70_%d", groupname.Data(), cent);
1023 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1024 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1026 histname = TString::Format(
"%s/histo15all_n75_%d", groupname.Data(), cent);
1027 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1028 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1030 histname = TString::Format(
"%s/histo15all_n80_%d", groupname.Data(), cent);
1031 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1032 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1034 histname = TString::Format(
"%s/histo15all_n85_%d", groupname.Data(), cent);
1035 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1036 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1038 histname = TString::Format(
"%s/histo15all_n90_%d", groupname.Data(), cent);
1039 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1040 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1043 histname = TString::Format(
"%s/histo15all_pt70_%d", groupname.Data(), cent);
1044 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1045 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1047 histname = TString::Format(
"%s/histo15all_pt75_%d", groupname.Data(), cent);
1048 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1049 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1051 histname = TString::Format(
"%s/histo15all_pt80_%d", groupname.Data(), cent);
1052 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1053 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1055 histname = TString::Format(
"%s/histo15all_pt85_%d", groupname.Data(), cent);
1056 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1057 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1059 histname = TString::Format(
"%s/histo15all_pt90_%d", groupname.Data(), cent);
1060 histtitle = TString::Format(
"%s - all jets;dR;#it{p}_{T,track} (GeV/c)", histname.Data());
1061 fHistManager.
CreateTH2(histname, histtitle, h15_xnbin, h15_xlow, h15_xhigh, h15_ynbin, h15_ylow, h15_yhigh);
1065 Int_t h20_nbin = 100; Double_t h20_binwidth = 0.01; Double_t h20_low = 0.;
1066 Double_t h20_high = h20_low + h20_binwidth * h20_nbin;
1069 histname = TString::Format(
"%s/histo20_%d", groupname.Data(), cent);
1070 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1074 histname = TString::Format(
"%s/histo20_n70_%d", groupname.Data(), cent);
1075 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1078 histname = TString::Format(
"%s/histo20_n75_%d", groupname.Data(), cent);
1079 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1082 histname = TString::Format(
"%s/histo20_n80_%d", groupname.Data(), cent);
1083 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1086 histname = TString::Format(
"%s/histo20_n85_%d", groupname.Data(), cent);
1087 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1090 histname = TString::Format(
"%s/histo20_n90_%d", groupname.Data(), cent);
1091 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1096 histname = TString::Format(
"%s/histo20_pt70_%d", groupname.Data(), cent);
1097 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1100 histname = TString::Format(
"%s/histo20_pt75_%d", groupname.Data(), cent);
1101 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1104 histname = TString::Format(
"%s/histo20_pt80_%d", groupname.Data(), cent);
1105 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1108 histname = TString::Format(
"%s/histo20_pt85_%d", groupname.Data(), cent);
1109 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1112 histname = TString::Format(
"%s/histo20_pt90_%d", groupname.Data(), cent);
1113 histtitle = TString::Format(
"%s - jet1;R_{tracks};dN/dR", histname.Data());
1118 histname = TString::Format(
"%s/histo20all_%d", groupname.Data(), cent);
1119 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1123 histname = TString::Format(
"%s/histo20all_n70_%d", groupname.Data(), cent);
1124 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1127 histname = TString::Format(
"%s/histo20all_n75_%d", groupname.Data(), cent);
1128 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1131 histname = TString::Format(
"%s/histo20all_n80_%d", groupname.Data(), cent);
1132 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1135 histname = TString::Format(
"%s/histo20all_n85_%d", groupname.Data(), cent);
1136 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1139 histname = TString::Format(
"%s/histo20all_n90_%d", groupname.Data(), cent);
1140 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1145 histname = TString::Format(
"%s/histo20all_pt70_%d", groupname.Data(), cent);
1146 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1149 histname = TString::Format(
"%s/histo20all_pt75_%d", groupname.Data(), cent);
1150 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1153 histname = TString::Format(
"%s/histo20all_pt80_%d", groupname.Data(), cent);
1154 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1157 histname = TString::Format(
"%s/histo20all_pt85_%d", groupname.Data(), cent);
1158 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1161 histname = TString::Format(
"%s/histo20all_pt90_%d", groupname.Data(), cent);
1162 histtitle = TString::Format(
"%s - all jets;R_{tracks};dN/dR", histname.Data());
1168 Int_t hg_nbin = 100; Double_t hg_binwidth = 0.01; Double_t hg_low = 0.;
1169 Double_t hg_high = hg_low + hg_binwidth * hg_nbin;
1172 histname = TString::Format(
"%s/histo_g_%d", groupname.Data(), cent);
1173 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1178 histname = TString::Format(
"%s/histo_g_n70%d", groupname.Data(), cent);
1179 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1182 histname = TString::Format(
"%s/histo_g_n75%d", groupname.Data(), cent);
1183 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1186 histname = TString::Format(
"%s/histo_g_n80%d", groupname.Data(), cent);
1187 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1190 histname = TString::Format(
"%s/histo_g_n85%d", groupname.Data(), cent);
1191 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1194 histname = TString::Format(
"%s/histo_g_n90%d", groupname.Data(), cent);
1195 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1200 histname = TString::Format(
"%s/histo_g_pt70%d", groupname.Data(), cent);
1201 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1204 histname = TString::Format(
"%s/histo_g_pt75%d", groupname.Data(), cent);
1205 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1208 histname = TString::Format(
"%s/histo_g_pt80%d", groupname.Data(), cent);
1209 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1212 histname = TString::Format(
"%s/histo_g_pt85%d", groupname.Data(), cent);
1213 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1216 histname = TString::Format(
"%s/histo_g_pt90%d", groupname.Data(), cent);
1217 histtitle = TString::Format(
"%s - all jets;g;1/N_{jets} dN/dg", histname.Data());
1223 Int_t hptd_nbin = 100; Double_t hptd_binwidth = 0.01; Double_t hptd_low = 0.;
1224 Double_t hptd_high = hptd_low + hptd_binwidth * hptd_nbin;
1227 histname = TString::Format(
"%s/histo_ptd_%d", groupname.Data(), cent);
1228 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1233 histname = TString::Format(
"%s/histo_ptd_n70_%d", groupname.Data(), cent);
1234 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1237 histname = TString::Format(
"%s/histo_ptd_n75_%d", groupname.Data(), cent);
1238 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1241 histname = TString::Format(
"%s/histo_ptd_n80_%d", groupname.Data(), cent);
1242 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1245 histname = TString::Format(
"%s/histo_ptd_n85_%d", groupname.Data(), cent);
1246 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1249 histname = TString::Format(
"%s/histo_ptd_n90_%d", groupname.Data(), cent);
1250 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1255 histname = TString::Format(
"%s/histo_ptd_pt70_%d", groupname.Data(), cent);
1256 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1259 histname = TString::Format(
"%s/histo_ptd_pt75_%d", groupname.Data(), cent);
1260 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1263 histname = TString::Format(
"%s/histo_ptd_pt80_%d", groupname.Data(), cent);
1264 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1267 histname = TString::Format(
"%s/histo_ptd_pt85_%d", groupname.Data(), cent);
1268 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1271 histname = TString::Format(
"%s/histo_ptd_pt90_%d", groupname.Data(), cent);
1272 histtitle = TString::Format(
"%s - all jets;ptd;1/N_{jets} dN/dp_{T}D", histname.Data());
1282 for ( Int_t i = 0; i <
fOutput->GetEntries(); ++i )
1284 TH1 *h1 =
dynamic_cast<TH1 *
> (
fOutput->At (i) );
1285 if ( h1 ) { h1->Sumw2();
continue; }
1287 TH2 *h2 =
dynamic_cast<TH2 *
> (
fOutput->At (i) );
1288 if ( h2 ) { h2->Sumw2();
continue; }
1292 TObject* obj = NULL;
1293 while ((obj = nexthist())) {
fOutput->Add(obj); }
1316 Int_t entries =
event->GetNumberOfTracks();
1319 std::vector<ptidx_pair> pair_list;
1320 pair_list.reserve ( entries );
1322 for ( Int_t i_entry = 0; i_entry < entries; i_entry++ )
1324 AliVParticle *track =
event->GetTrack ( i_entry );
1328 AliError ( Form (
"Unable to find track %d in collection %s", i_entry, event->GetName() ) );
1332 pair_list.push_back ( std::make_pair ( track->Pt(), i_entry ) );
1335 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1338 std::vector<Int_t> index_sorted_list;
1339 index_sorted_list.reserve ( entries );
1341 for ( std::vector< std::pair <Double_t, Int_t> >::iterator it = pair_list.begin(); it != pair_list.end(); ++it )
1343 index_sorted_list.push_back ( ( *it ).second );
1346 return index_sorted_list;
1356 std::vector<ptidx_pair> pair_list;
1358 trackscont->ResetCurrentID();
1359 AliVTrack *track = NULL;
1364 pair_list.push_back ( std::make_pair ( track->Pt(), i_entry ) );
1367 std::stable_sort ( pair_list.begin(), pair_list.end(),
sort_descend() );
1370 std::vector<Int_t> index_sorted_list;
1371 index_sorted_list.reserve ( i_entry );
1373 for ( std::vector< std::pair <Double_t, Int_t> >::iterator it = pair_list.begin(); it != pair_list.end(); ++it )
1375 index_sorted_list.push_back ( ( *it ).second );
1378 return index_sorted_list;
1412 if (trk->P() < 1e-6)
return 0.;
1413 return (trk != 0) ? trk->P()/ jet->
P() : 0.;
1419 if (trk->P() < 1e-6)
return 0.;
1420 return (trk != 0) ? trk->Pt() / jet->
Pt() : 0.;
AliAnalysisTaskEmcalJetCDF()
THistManager fHistManager
Histogram manager.
virtual AliVParticle * GetNextAcceptParticle()
Double_t GetXi(const AliVParticle *trk) const
Double_t Z_pt(const AliEmcalJet *jet, const AliVParticle *trk) const
Declaration of class AliTLorentzVector.
AliClusterContainer * GetClusterContainer() const
Int_t fCentBin
!event centrality bin
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
THashList * CreateHistoGroup(const char *groupname, const char *parent="/")
AliParticleContainer * GetParticleContainer() const
AliEmcalJet * GetLeadingJet(const char *opt="")
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
THashList * GetListOfHistograms() const
std::vector< int > SortConstituentsPt(TClonesArray *tracks) const
TObject * GetHistogram(const char *histName)
TH1 * CreateTH1(const char *name, const char *title, int nbins, double xmin, double xmax, Option_t *opt="")
Int_t fNcentBins
how many centrality bins
Int_t GetNAcceptedClusters() const
Double_t Xi(Double_t z) const
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
AliEmcalList * fOutput
!output list
virtual ~AliAnalysisTaskEmcalJetCDF()
Destructor.
Short_t TrackAt(Int_t idx) const
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
void SetMakeGeneralHistograms(Bool_t g)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
void UserCreateOutputObjects()
const AliJetIterableContainer accepted() const
Declaration of class AliAnalysisTaskEmcalJetCDF.
Int_t GetNAcceptedParticles() const
Double_t Z_ptot(const AliEmcalJet *jet, const AliVParticle *trk) const
Container structure for EMCAL clusters.
functional for sorting pair by first element - descending
Container for jet within the EMCAL jet framework.
Analysis of jet shapes and FF of all jets and leading jets.
std::vector< Int_t > SortTracksPt(AliVEvent *event) const