69 ATH_MSG_INFO(
">>> AddFlowByShifting from Initialize <<<");
73 ATH_MSG_INFO(
"**********Settings for Afterburner************");
98 ATH_MSG_INFO(
"********************************r*************");
114 return StatusCode::FAILURE;
121 ATH_MSG_WARNING(
"'FlowInplementation=\"approximate\"' is obsolete, please switch to 'FlowInplementation=\"exact\"' ");
128 return StatusCode::FAILURE;
143 float b_lo[21]={ -1.00, 0.000, 1.483, 2.098, 2.569, 2.966, 3.317, 4.687, 5.739, 6.627, 7.409,
144 8.117, 8.767, 9.373, 9.943,10.479,10.991,11.479,11.947,15.00 ,100.0};
146 float b_hi[21]={ -1.00 , 1.483, 2.098, 2.569, 2.966, 3.317, 4.687, 5.739, 6.627, 7.409, 8.117,
147 8.767, 9.373, 9.943,10.479,10.991,11.479,11.947,12.399,15.00 ,100.0};
148 float val [21]={ 5.600, 5.600, 5.600,1.175 ,0.8253,0.7209,0.5324,0.4431,0.3984,0.3844,0.3847,
149 0.3935,0.4106,0.4310,0.4574,0.4674,0.4873,0.4796,0.4856,0.5130,0.5130};
152 for(
int i=0;i<21;i++){
153 bimp_vals[i]=(b_lo[i]+b_hi[i])/2.0f;
172 float v2_4 [18]={ 0.0444322, 0.0444322, 0.0476009, 0.0495882, 0.0513053, 0.0527020, 0.0563533, 0.0614435, 0.0650522, 0.0675199, 0.0693970,
173 0.0705456, 0.0706748, 0.0686654, 0.0571383, 0.04 , 0.02 , 0.0 };
174 float bimp4[18]={-1 , 0.481843, 0.886609 , 1.13462 , 1.33981 , 1.52064 , 1.95342 , 2.51881 , 2.97665 , 3.37416 , 3.72876 ,
175 4.05377 , 4.35564 , 4.77463 , 5.30719 , 6.08296 , 7.6415 , 15 };
181 float v2_2 [23]={ 0.0749381, 0.0749381, 0.0782992, 0.0801742, 0.0814646, 0.0826611, 0.0853616, 0.0889407, 0.0913229, 0.0928072, 0.0933774,
182 0.0933299, 0.0926254, 0.0910148, 0.0889322, 0.086161 , 0.0828212, 0.0793132, 0.0755036, 0.0714726, 0.0668264, 0.055 , 0.05};
183 float bimp2[23]={-1 , 0.481843, 0.886609 , 1.13462 , 1.33981 , 1.52064 , 1.95342 , 2.51881 , 2.97665 , 3.37416 , 3.72876 ,
184 4.05377 , 4.35564 , 4.63868 , 4.91057 , 5.17773 , 5.43665 , 5.68739 , 5.94258 , 6.20668 , 6.49519 , 7.6415 , 15};
188 TGraph *graph_v2_4=
new TGraph(18,bimp4,v2_4);
189 TGraph *graph_v2_2=
new TGraph(23,bimp2,v2_2);
191 for(
int i=0;i<23;i++){
192 double vn_RP=graph_v2_4->Eval(bimp2[i]);
193 double vn_2 =graph_v2_2->Eval(bimp2[i]);
194 double delta=vn_2*vn_2 - vn_RP*vn_RP;
196 ratio[i]= vn_RP/sqrt(delta/2.0);
200 return StatusCode::FAILURE;
217 return StatusCode::SUCCESS;
395 auto endvtx = parent->end_vertex();
397 ATH_MSG_DEBUG(
"Processing branch of parent particle "<< parent);
401 if (std::abs(phishift) > 1e-7) {
402 CLHEP::HepLorentzVector pos(endvtx->position().x(),
403 endvtx->position().y(),
404 endvtx->position().z(),
405 endvtx->position().t());
406 pos.rotateZ(phishift * Gaudi::Units::rad);
407 endvtx->set_position(HepMC::FourVector(pos.x(), pos.y(), pos.z(), pos.t()));
414 for (
auto child : endvtx->particles_out())
416 for (
auto child : *endvtx)
419 CLHEP::HepLorentzVector p(child->momentum().px(),
420 child->momentum().py(),
421 child->momentum().pz(),
422 child->momentum().e());
423 if (std::abs(phishift) > 1e-7) {
424 p.rotateZ(phishift * Gaudi::Units::rad);
425 child->set_momentum(HepMC::FourVector(p.px(), p.py(), p.pz(), p.e()));
435 for ( HepMC::GenVertex::vertex_iterator
436 descvtxit = endvtx->vertices_begin(HepMC::descendants);
437 descvtxit != endvtx->vertices_end(HepMC::descendants);
439 auto descvtx = (*descvtxit);
445 if(std::abs(phishift) > 1e-7) {
446 CLHEP::HepLorentzVector position(descvtx->position().x(),
447 descvtx->position().y(),
448 descvtx->position().z(),
449 descvtx->position().t());
450 position.rotateZ(phishift*Gaudi::Units::rad);
451 descvtx->set_position(HepMC::FourVector( position.x(),position.y(),position.z(),position.t()) );
456 for (
auto descpart: descvtx->particles_out())
458 for (
auto descpart: *descvtx)
461 CLHEP::HepLorentzVector momentum(descpart->momentum().px(),
462 descpart->momentum().py(),
463 descpart->momentum().pz(),
464 descpart->momentum().e());
466 " Eta = " << descpart->momentum().pseudoRapidity() <<
467 " Phi = " << descpart->momentum().phi() );
470 if(std::abs(phishift) > 1e-7) {
471 momentum.rotateZ(phishift*Gaudi::Units::rad);
472 descpart->set_momentum( HepMC::FourVector(momentum.px(),momentum.py(),momentum.pz(),momentum.e()) );
474 " Phi shifted = " << momentum.phi());
752 static TGraph gr_v2pt;
753 static TGraph gr_v3pt;
754 static TGraph gr_v4pt;
756 static TGraph gr_v2_cent_scale;
757 static TGraph gr_v3_cent_scale;
758 static TGraph gr_v4_cent_scale;
760 static bool is_initialized=
false;
761 if(is_initialized==
false){
765 const int NumPtBins=23;
766 float v2_pt[NumPtBins]={
768 0.049533 ,0.0622719,0.0776591,0.0906141,0.101341 ,0.110451 ,0.117545,
769 0.123217 ,0.126643 ,0.129142 ,0.129176 ,0.128795 ,0.126009 ,0.120966,
770 0.109416 ,0.0966881,0.0825195,0.0708585,0.0615164,0.0508748,
773 float v3_pt[NumPtBins]={
775 0.0186328,0.0262968,0.0366394,0.0467804,0.0562739,0.0639566,0.0714195,
776 0.0783429,0.0838629,0.0886202,0.0907969,0.0922756,0.0948961,0.0947266,
777 0.0898434,0.0839913,0.0801961,0.0685197,0.0648406,0.0600871,
782 float v3_pt_2PC[NumPtBins]={
784 0.0182106,0.0255873,0.0355349,0.0451583,0.0537545,0.0611133,0.0675791,
785 0.0732434,0.0778371,0.0812549,0.0823093,0.0826907,0.082954 ,0.0800712,
786 0.0719686,0.062255 ,0.0498296,0.0370541,0.027638 ,0.0139785,
789 for(
int i=0;i<NumPtBins;i++) v3_pt[i]=(v3_pt[i]+v3_pt_2PC[i])/2.0;
792 float v4_pt[NumPtBins]={
794 0.00446155,0.00710366,0.0117637,0.0158203,0.01931 ,0.0234234,0.0268995,
795 0.0299693 ,0.0321662 ,0.0335182,0.0358789,0.0374195,0.0359359,0.0327255,
796 0.0254762 ,0.0273239 ,0.0212901,0.0152591, -0 ,-0 ,
799 float pt_bins[NumPtBins]={
801 0.55 ,0.7 ,0.9 ,1.1 , 1.3, 1.5, 1.7,
802 1.9 ,2.1 ,2.3 ,2.5 , 2.7, 2.9, 3.25,
803 3.75 ,4.25 ,4.75 ,5.25 , 5.75, 6.5,
806 gr_v2pt=TGraph(NumPtBins,pt_bins,v2_pt);
807 gr_v3pt=TGraph(NumPtBins,pt_bins,v3_pt);
808 gr_v4pt=TGraph(NumPtBins,pt_bins,v4_pt);
809 gr_v2pt.SetBit(TGraph::kIsSortedX);
810 gr_v3pt.SetBit(TGraph::kIsSortedX);
811 gr_v4pt.SetBit(TGraph::kIsSortedX);
818 const int NumCentBins=23;
819 float v2_cent[NumCentBins]={
821 0.0749381,0.0782992,0.0801742,0.0814646,0.0826611,0.0853616,0.0889407,
822 0.0913229,0.0928072,0.0933774,0.0933299,0.0926254,0.0910148,0.0889322,
823 0.086161 ,0.0828212,0.0793132,0.0755036,0.0714726,0.0668264,
826 float v3_cent[NumCentBins]={
828 0.0409694,0.0399241,0.0394262,0.0388545,0.0385726,0.0375281,0.0360179,
829 0.0345174,0.0330085,0.0314149,0.0298081,0.0282141,0.02664 ,0.0253094,
830 0.0239221,0.0220779,0.0213821,0.0203176,0.0175276,0.0151146,
833 float v4_cent[NumCentBins]={
835 0.0131927 ,0.0129838,0.0135232 ,0.0132689 ,0.0130435 ,0.0134254 ,0.013706 ,
836 0.0136456 ,0.0136656,0.013245 ,0.0130861 ,0.0125356 ,0.0118006 ,0.0110316,
837 0.00987005,0.0106963,0.00933145,0.00784534,0.00393584,0.00308131,
841 float b_imp[NumCentBins]={
843 0.481843 ,0.886609 , 1.13462 , 1.33981 , 1.52064 , 1.95342 , 2.51881 ,
844 2.97665 ,3.37416 , 3.72876 , 4.05377 , 4.35564 , 4.63868 , 4.91057 ,
845 5.17773 ,5.43665 , 5.68739 , 5.94258 , 6.20668 , 6.49519 ,
850 float vn_0_5[3]={0.078963056, 0.039746672, 0.013202649};
852 for(
int i=0;i<NumCentBins;i++){
853 v2_cent[i]/=vn_0_5[0];
854 v3_cent[i]/=vn_0_5[1];
855 v4_cent[i]/=vn_0_5[2];
857 gr_v2_cent_scale=TGraph(NumCentBins, b_imp, v2_cent);
858 gr_v3_cent_scale=TGraph(NumCentBins, b_imp, v3_cent);
859 gr_v4_cent_scale=TGraph(NumCentBins, b_imp, v4_cent);
860 gr_v2_cent_scale.SetBit(TGraph::kIsSortedX);
861 gr_v3_cent_scale.SetBit(TGraph::kIsSortedX);
862 gr_v4_cent_scale.SetBit(TGraph::kIsSortedX);