Skip to content

Commit

Permalink
fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Simple-Shyam authored Jul 6, 2024
1 parent e421843 commit 5847efb
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1

double mu_truth = hist_truth->GetMean();
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
hist_truth->Fit(func_truth,"NR+");
mu_truth = func_truth->GetParameter(1);
Expand All @@ -87,8 +87,8 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1

double mu_real = hist_real->GetMean();
double sigma_real = hist_real->GetStdDev();
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
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
hist_real->Fit(func_real,"NR+");
mu_real = func_real->GetParameter(1);
sigma_real = func_real->GetParameter(2);
Expand Down Expand Up @@ -118,12 +118,12 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1
err_p_truth[i] = 0.;
}

const int size_real = momV_real.size();
const int size_real = momV_real.size();
double p_real[size_real], err_p_real[size_real], sigma_p_real[size_real], err_sigma_p_real[size_real];

for (int i=0; i<size_real; i++){
p_real[i] = momV_real.at(i);
sigma_p_real[i] = momresolV_real.at(i);
sigma_p_real[i] = momresolV_real.at(i);
err_sigma_p_real[i] = err_momresolV_real.at(i);
err_p_real[i] = 0.;
}
Expand All @@ -138,8 +138,8 @@ void doCompare_truth_real_widebins_mom(TString particle = "pi-",double etamin=-1
gr1->GetXaxis()->CenterTitle();
gr1->GetYaxis()->CenterTitle();

TGraphErrors *gr2 = new TGraphErrors(size_real,p_real,sigma_p_real,err_p_real,err_sigma_p_real);
gr2->SetName("gr_realseed");
TGraphErrors *gr2 = new TGraphErrors(size_real,p_real,sigma_p_real,err_p_real,err_sigma_p_real);
gr2->SetName("gr_realseed");
gr2->SetMarkerStyle(34);
gr2->SetMarkerColor(kRed);
gr2->SetMarkerSize(2.0);
Expand Down

0 comments on commit 5847efb

Please sign in to comment.