@@ -411,7 +411,9 @@ PlotLimits::plotTanb(TCanvas& canv, const char* directory, std::string HIG)
411411 std::vector<TGraph*> gr_higgslow;
412412 std::vector<TGraph*> gr_higgshigh;
413413 std::vector<TGraph*> gr_higgsHlow;
414+ gr_higgsHlow.push_back (0 );
414415 std::vector<TGraph*> gr_higgsHhigh;
416+ gr_higgsHhigh.push_back (0 );
415417 std::vector<std::vector<TGraph*>> gr_higgsBands;
416418 std::vector<TH2D*> plane_higgsBands;
417419 if (higgs125_){
@@ -428,26 +430,27 @@ PlotLimits::plotTanb(TCanvas& canv, const char* directory, std::string HIG)
428430 for (int i=0 ; i<higgsband1.sum ; i++) {gr_higgshigh.push_back ((TGraph *)((TList *)contourFromTH2 (plane_higgsBands[0 ], 128 , 20 , false , 200 ))->At (i));}
429431 gr_higgsBands.push_back (gr_higgshigh);
430432 // possible to push back more curves to gr_higgsBands for Hhh need to call different higgsConstraint with model "H"
431- if (TString::Format (model)==" low-tb-high" ){
432- TH2D* plane_higgsHBand = higgsConstraint (model, " H" );
433- plane_higgsBands.push_back (plane_higgsHBand);
434- // lower edge entry 0
435- TIter iter_higgsHlow ((TList *)contourFromTH2 (plane_higgsBands[1 ], 260 , 20 , false ));
436- STestFunctor higgsHband0 = std::for_each ( iter_higgsHlow.Begin (), TIter::End (), STestFunctor () );
437- for (int i=0 ; i<higgsHband0.sum ; i++) {gr_higgsHlow.push_back ((TGraph *)((TList *)contourFromTH2 (plane_higgsBands[1 ], 260 , 20 , false , 200 ))->At (i));}
438- gr_higgsBands.push_back (gr_higgsHlow);
439- // upper edge entry 1
440- TIter iter_higgsHhigh ((TList *)contourFromTH2 (plane_higgsBands[1 ], 350 , 20 , false ));
441- STestFunctor higgsHband1 = std::for_each ( iter_higgsHhigh.Begin (), TIter::End (), STestFunctor () );
442- for (int i=0 ; i<higgsHband1.sum ; i++) {gr_higgsHhigh.push_back ((TGraph *)((TList *)contourFromTH2 (plane_higgsBands[1 ], 350 , 20 , false , 200 ))->At (i));}
443433 gr_higgsBands.push_back (gr_higgsHhigh);
434+ gr_higgsBands.push_back (gr_higgsHhigh);
435+ if (TString::Format (model)==" low-tb-high" ){
436+ gr_higgsHlow.pop_back (); gr_higgsHlow.pop_back (); gr_higgsBands.pop_back (); gr_higgsBands.pop_back ();
437+ TH2D* plane_higgsHBand = higgsConstraint (model, " H" );
438+ plane_higgsBands.push_back (plane_higgsHBand);
439+ // lower edge entry 2
440+ TIter iter_higgsHlow ((TList *)contourFromTH2 (plane_higgsBands[1 ], 260 , 20 , false ));
441+ STestFunctor higgsHband0 = std::for_each ( iter_higgsHlow.Begin (), TIter::End (), STestFunctor () );
442+ for (int i=0 ; i<higgsHband0.sum ; i++) {gr_higgsHlow.push_back ((TGraph *)((TList *)contourFromTH2 (plane_higgsBands[1 ], 260 , 20 , false , 200 ))->At (i));}
443+ gr_higgsBands.push_back (gr_higgsHlow);
444+ // upper edge entry 3
445+ TIter iter_higgsHhigh ((TList *)contourFromTH2 (plane_higgsBands[1 ], 350 , 20 , false ));
446+ STestFunctor higgsHband1 = std::for_each ( iter_higgsHhigh.Begin (), TIter::End (), STestFunctor () );
447+ for (int i=0 ; i<higgsHband1.sum ; i++) {gr_higgsHhigh.push_back ((TGraph *)((TList *)contourFromTH2 (plane_higgsBands[1 ], 350 , 20 , false , 200 ))->At (i));}
448+ gr_higgsBands.push_back (gr_higgsHhigh);
444449 }
445-
446450 }
447-
448-
451+
449452 // do the plotting
450- plottingTanb (canv, plane_expected, gr_minus2sigma, gr_minus1sigma, gr_expected, gr_plus1sigma, gr_plus2sigma, gr_observed, gr_injected, gr_higgsBands, comparisons, xaxis_, yaxis_, theory_, min_, max_, log_, transparent_, expectedOnly_, MSSMvsSM_, HIG, Brazilian_,azh_);
453+ plottingTanb (canv, plane_expected, gr_minus2sigma, gr_minus1sigma, gr_expected, gr_plus1sigma, gr_plus2sigma, gr_observed, gr_injected, gr_higgsBands, comparisons, xaxis_, yaxis_, theory_, min_, max_, log_, transparent_, expectedOnly_, MSSMvsSM_, HIG, Brazilian_, azh_);
451454 // / setup the CMS Preliminary
452455 // TPaveText* cmsprel = new TPaveText(0.145, 0.835+0.06, 0.145+0.30, 0.835+0.16, "NDC");
453456 TPaveText* cmsprel = new TPaveText (0.135 , 0.735 , 0.145 +0.30 , 0.785 , " NDC" ); // for "unpublished" in header
@@ -480,7 +483,13 @@ PlotLimits::plotTanb(TCanvas& canv, const char* directory, std::string HIG)
480483 output->mkdir (output_.c_str ());
481484 output->cd (output_.c_str ());
482485 }
483- plane_expected->Write (" plane_expected" );
486+ plane_expected->Write (" plane_expected" );
487+ for (unsigned int i=0 ; i<gr_higgslow.size (); i++){
488+ gr_higgslow[i] ->Write (TString::Format (" gr_higgslow_%d" , i) );
489+ }
490+ for (unsigned int i=0 ; i<gr_higgshigh.size (); i++){
491+ gr_higgshigh[i] ->Write (TString::Format (" gr_higgshigh_%d" , i) );
492+ }
484493 for (unsigned int i=0 ; i<gr_observed.size (); i++){
485494 gr_observed[i] ->Write (TString::Format (" gr_observed_%d" , i) );
486495 }
0 commit comments