@@ -165,12 +165,12 @@ bool VSpectralFitter::defineFitFunction()
165165 else if ( fSpectralFitFunction == 1 )
166166 {
167167 cout << " Fitfunction: power law with exponential cutoff" << endl;
168- sprintf ( hname, " [0] * TMath::Power( TMath::Power( 10, x ) / %f, [1] ) * TMath::Exp( -1. * TMath::Power( 10, x ) / [2] )" , fSpectralFitFluxNormalisationEnergy );
168+ sprintf ( hname, " [0] * TMath::Power( TMath::Power( 10, x ) / %f, [1] ) * TMath::Exp( -1. * TMath::Power( 10, x ) * [2] )" , fSpectralFitFluxNormalisationEnergy );
169169 fFitFunction = new TF1 ( fFitName .c_str (), hname, log10 ( fSpectralFitEnergy_min ), log10 ( fSpectralFitEnergy_max ) );
170170 fFitFunction ->SetParameter ( 0 , 1 .e -7 );
171171 fFitFunction ->SetParameter ( 1 , -2 . );
172- fFitFunction ->SetParameter ( 2 , 10 . );
173- sprintf ( hname, " [0] * TMath::Power( x / %f, [1] ) * TMath::Exp( -1. * x / [2] )" , fSpectralFitFluxNormalisationEnergy );
172+ fFitFunction ->SetParameter ( 2 , 0.1 );
173+ sprintf ( hname, " [0] * TMath::Power( x / %f, [1] ) * TMath::Exp( -1. * x * [2] )" , fSpectralFitFluxNormalisationEnergy );
174174 fFitFunction_lin = new TF1 ( iFitName_lin.c_str (), hname, fSpectralFitEnergy_min , fSpectralFitEnergy_max );
175175 }
176176 // broken power law fit
@@ -281,7 +281,7 @@ void VSpectralFitter::print()
281281 cout << " Gamma = " << fixed << setprecision ( 2 ) << fFitFunction ->GetParameter ( 1 );
282282 cout << " +- " << fFitFunction ->GetParError ( 1 ) << endl;
283283 cout << " Ecut = " << fixed << setprecision ( 2 ) << fFitFunction ->GetParameter ( 2 );
284- cout << " +- " << fFitFunction ->GetParError ( 2 ) << " TeV" << endl;
284+ cout << " +- " << fFitFunction ->GetParError ( 2 ) << " TeV^-1 " << endl;
285285 cout << " Chi2 " << setprecision ( 2 ) << fFitFunction ->GetChisquare ();
286286 cout << " , N = " << fFitFunction ->GetNDF ();
287287 if ( fFitFunction ->GetNDF () > 0 . )
0 commit comments