Skip to content

Commit

Permalink
plotting improvements for angular PSF
Browse files Browse the repository at this point in the history
  • Loading branch information
GernotMaier committed Nov 14, 2024
1 parent e9cb03e commit cf80969
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/VPlotInstrumentResponseFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,9 @@ TCanvas* VPlotInstrumentResponseFunction::plotPSF( vector< double > i_Energy_TeV
sprintf( hname, "Theta_ID_%d", iCumulative );
}
TCanvas* c = new TCanvas( hname, hname, 10, 10, 600, 600 );
c->Divide( TMath::Nint( sqrt( i_Energy_TeV_lin.size() ) ), TMath::Nint( sqrt( i_Energy_TeV_lin.size() ) ) );
cout << "PSF plotting: " << i_Energy_TeV_lin.size() << " energies (";
cout << TMath::Ceil( sqrt( i_Energy_TeV_lin.size() ) ) << ")" << endl;
c->Divide( TMath::Ceil( sqrt( i_Energy_TeV_lin.size() ) ), TMath::Ceil( sqrt( i_Energy_TeV_lin.size() ) ) );
for( unsigned int j = 0; j < i_Energy_TeV_lin.size(); j++ )
{
c->cd( j + 1 );
Expand Down Expand Up @@ -1632,10 +1634,12 @@ TCanvas* VPlotInstrumentResponseFunction::plotPSF( vector< double > i_Energy_TeV
TH1D* hCumu = get_Cumulative_Histogram( h, true, true );
if( iCumulative )
{
hCumu->SetLineColor( VUtilities::color_id(i+1) );
hCumu->Draw( "same" );
}
else
{
h->SetLineColor( VUtilities::color_id(i+1) );
// rebin
if( iPlotTheta2 )
{
Expand Down

0 comments on commit cf80969

Please sign in to comment.