Skip to content
Snippets Groups Projects
Commit e421843c authored by shyam kumar's avatar shyam kumar
Browse files

minor fix in the code

parent 0090b5ef
No related branches found
No related tags found
No related merge requests found
Pipeline #97402 canceled with stages
...@@ -67,7 +67,7 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1 ...@@ -67,7 +67,7 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1
double mu_truth = hist_truth->GetMean(); double mu_truth = hist_truth->GetMean();
double sigma_truth = hist_truth->GetStdDev(); double sigma_truth = hist_truth->GetStdDev();
hist_truth->GetXaxis()->SetRangeUser(-1.0*range,1.0*range); hist_truth->GetXaxis()->SetRangeUser(-1.0*range,1.0*range);
func_truth->SetRange(mu_truth-2.0*sigma_truth,mu_truth+2.0*sigma_truth); // fit with in 2 sigma range func_truth->SetRange(mu_truth-2.0*sigma_truth,mu_truth+2.0*sigma_truth); // fit with in 2 sigma range
hist_truth->Fit(func_truth,"NR+"); hist_truth->Fit(func_truth,"NR+");
mu_truth = func_truth->GetParameter(1); mu_truth = func_truth->GetParameter(1);
...@@ -87,8 +87,8 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1 ...@@ -87,8 +87,8 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1
double mu_real = hist_real->GetMean(); double mu_real = hist_real->GetMean();
double sigma_real = hist_real->GetStdDev(); double sigma_real = hist_real->GetStdDev();
hist_real->GetXaxis()->SetRangeUser(-1.0*range,1.0*range); hist_real->GetXaxis()->SetRangeUser(-1.0*range,1.0*range);
func_real->SetRange(mu_real-2.0*sigma_real,mu_real+2.0*sigma_real); // fit with in 2 sigma range func_real->SetRange(mu_real-2.0*sigma_real,mu_real+2.0*sigma_real); // fit with in 2 sigma range
hist_real->Fit(func_real,"NR+"); hist_real->Fit(func_real,"NR+");
mu_real = func_real->GetParameter(1); mu_real = func_real->GetParameter(1);
sigma_real = func_real->GetParameter(2); sigma_real = func_real->GetParameter(2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment