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;
386 auto endvtx = parent->end_vertex();
388 ATH_MSG_DEBUG(
"Processing branch of parent particle "<< parent);
392 if (std::abs(phishift) > 1e-7) {
393 CLHEP::HepLorentzVector pos(endvtx->position().x(),
394 endvtx->position().y(),
395 endvtx->position().z(),
396 endvtx->position().t());
397 pos.rotateZ(phishift * Gaudi::Units::rad);
404 for (
auto child : endvtx->particles_out())
406 CLHEP::HepLorentzVector p(child->momentum().px(),
407 child->momentum().py(),
408 child->momentum().pz(),
409 child->momentum().e());
410 if (std::abs(phishift) > 1e-7) {
411 p.rotateZ(phishift * Gaudi::Units::rad);
424 if(std::abs(phishift) > 1e-7) {
425 CLHEP::HepLorentzVector position(descvtx->position().x(),
426 descvtx->position().y(),
427 descvtx->position().z(),
428 descvtx->position().t());
429 position.rotateZ(phishift*Gaudi::Units::rad);
430 descvtx->set_position(
HepMC::FourVector( position.x(),position.y(),position.z(),position.t()) );
434 for (
auto descpart: descvtx->particles_out())
436 CLHEP::HepLorentzVector momentum(descpart->momentum().px(),
437 descpart->momentum().py(),
438 descpart->momentum().pz(),
439 descpart->momentum().e());
441 " Eta = " << descpart->momentum().pseudoRapidity() <<
442 " Phi = " << descpart->momentum().phi() );
445 if(std::abs(phishift) > 1e-7) {
446 momentum.rotateZ(phishift*Gaudi::Units::rad);
447 descpart->set_momentum(
HepMC::FourVector(momentum.px(),momentum.py(),momentum.pz(),momentum.e()) );
449 " Phi shifted = " << momentum.phi());
727 static TGraph gr_v2pt;
728 static TGraph gr_v3pt;
729 static TGraph gr_v4pt;
731 static TGraph gr_v2_cent_scale;
732 static TGraph gr_v3_cent_scale;
733 static TGraph gr_v4_cent_scale;
735 static bool is_initialized=
false;
736 if(is_initialized==
false){
740 const int NumPtBins=23;
741 float v2_pt[NumPtBins]={
743 0.049533 ,0.0622719,0.0776591,0.0906141,0.101341 ,0.110451 ,0.117545,
744 0.123217 ,0.126643 ,0.129142 ,0.129176 ,0.128795 ,0.126009 ,0.120966,
745 0.109416 ,0.0966881,0.0825195,0.0708585,0.0615164,0.0508748,
748 float v3_pt[NumPtBins]={
750 0.0186328,0.0262968,0.0366394,0.0467804,0.0562739,0.0639566,0.0714195,
751 0.0783429,0.0838629,0.0886202,0.0907969,0.0922756,0.0948961,0.0947266,
752 0.0898434,0.0839913,0.0801961,0.0685197,0.0648406,0.0600871,
757 float v3_pt_2PC[NumPtBins]={
759 0.0182106,0.0255873,0.0355349,0.0451583,0.0537545,0.0611133,0.0675791,
760 0.0732434,0.0778371,0.0812549,0.0823093,0.0826907,0.082954 ,0.0800712,
761 0.0719686,0.062255 ,0.0498296,0.0370541,0.027638 ,0.0139785,
764 for(
int i=0;i<NumPtBins;i++) v3_pt[i]=(v3_pt[i]+v3_pt_2PC[i])/2.0;
767 float v4_pt[NumPtBins]={
769 0.00446155,0.00710366,0.0117637,0.0158203,0.01931 ,0.0234234,0.0268995,
770 0.0299693 ,0.0321662 ,0.0335182,0.0358789,0.0374195,0.0359359,0.0327255,
771 0.0254762 ,0.0273239 ,0.0212901,0.0152591, -0 ,-0 ,
774 float pt_bins[NumPtBins]={
776 0.55 ,0.7 ,0.9 ,1.1 , 1.3, 1.5, 1.7,
777 1.9 ,2.1 ,2.3 ,2.5 , 2.7, 2.9, 3.25,
778 3.75 ,4.25 ,4.75 ,5.25 , 5.75, 6.5,
781 gr_v2pt=TGraph(NumPtBins,pt_bins,v2_pt);
782 gr_v3pt=TGraph(NumPtBins,pt_bins,v3_pt);
783 gr_v4pt=TGraph(NumPtBins,pt_bins,v4_pt);
784 gr_v2pt.SetBit(TGraph::kIsSortedX);
785 gr_v3pt.SetBit(TGraph::kIsSortedX);
786 gr_v4pt.SetBit(TGraph::kIsSortedX);
793 const int NumCentBins=23;
794 float v2_cent[NumCentBins]={
796 0.0749381,0.0782992,0.0801742,0.0814646,0.0826611,0.0853616,0.0889407,
797 0.0913229,0.0928072,0.0933774,0.0933299,0.0926254,0.0910148,0.0889322,
798 0.086161 ,0.0828212,0.0793132,0.0755036,0.0714726,0.0668264,
801 float v3_cent[NumCentBins]={
803 0.0409694,0.0399241,0.0394262,0.0388545,0.0385726,0.0375281,0.0360179,
804 0.0345174,0.0330085,0.0314149,0.0298081,0.0282141,0.02664 ,0.0253094,
805 0.0239221,0.0220779,0.0213821,0.0203176,0.0175276,0.0151146,
808 float v4_cent[NumCentBins]={
810 0.0131927 ,0.0129838,0.0135232 ,0.0132689 ,0.0130435 ,0.0134254 ,0.013706 ,
811 0.0136456 ,0.0136656,0.013245 ,0.0130861 ,0.0125356 ,0.0118006 ,0.0110316,
812 0.00987005,0.0106963,0.00933145,0.00784534,0.00393584,0.00308131,
816 float b_imp[NumCentBins]={
818 0.481843 ,0.886609 , 1.13462 , 1.33981 , 1.52064 , 1.95342 , 2.51881 ,
819 2.97665 ,3.37416 , 3.72876 , 4.05377 , 4.35564 , 4.63868 , 4.91057 ,
820 5.17773 ,5.43665 , 5.68739 , 5.94258 , 6.20668 , 6.49519 ,
825 float vn_0_5[3]={0.078963056, 0.039746672, 0.013202649};
827 for(
int i=0;i<NumCentBins;i++){
828 v2_cent[i]/=vn_0_5[0];
829 v3_cent[i]/=vn_0_5[1];
830 v4_cent[i]/=vn_0_5[2];
832 gr_v2_cent_scale=TGraph(NumCentBins, b_imp, v2_cent);
833 gr_v3_cent_scale=TGraph(NumCentBins, b_imp, v3_cent);
834 gr_v4_cent_scale=TGraph(NumCentBins, b_imp, v4_cent);
835 gr_v2_cent_scale.SetBit(TGraph::kIsSortedX);
836 gr_v3_cent_scale.SetBit(TGraph::kIsSortedX);
837 gr_v4_cent_scale.SetBit(TGraph::kIsSortedX);