Skip to content

Commit

Permalink
Removed status flag from analysis code
Browse files Browse the repository at this point in the history
  • Loading branch information
zsweger authored May 10, 2024
1 parent 1ed0eb9 commit 2d1d432
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions benchmarks/u_rho/analysis/uchannelrho.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,6 @@ auto giveme_u(TLorentzVector pIn, TLorentzVector vmOut){
return uvalue;
}

int setbenchstatus(double eff){
///////////// Set benchmark status!
// create our test definition
// test_tag
common_bench::Test rho_reco_eff_test{
{
{"name", "rho_reconstruction_efficiency"},
{"title", "rho Reconstruction Efficiency for rho -> pi+pi- in the B0"},
{"description", "u-channel rho->pi+pi- reconstruction efficiency "
"when both pions should be within B0 acceptance"},
{"quantity", "efficiency"},
{"target", "0.9"}
}
}; //these 2 need to be consistent
double eff_target = 0.9; //going to find a way to use the same variable

if(eff<0 || eff>1){
rho_reco_eff_test.error(-1);
}else if(eff > eff_target){
rho_reco_eff_test.pass(eff);
}else{
rho_reco_eff_test.fail(eff);
}

// write out our test data
common_bench::write_test(rho_reco_eff_test, "rhorecoeff.json");
return 0;
}


int uchannelrho(TString rec_file="input.root", TString outputfile="output.root")
{
if (gSystem->AccessPathName(rec_file.Data()) != 0) {
Expand Down Expand Up @@ -579,15 +549,8 @@ h_u_REC_justpionsB0->Scale(1.0/u_binwidth);
h_u_REC_notjustpionsB0->Scale(1.0/u_binwidth);
h_u_MC->Scale(1.0/u_binwidth);

double minbineff = h_VM_mass_MC_etacut->FindBin(0.6);
double maxbineff = h_VM_mass_MC_etacut->FindBin(1.0);
double rhorecoeff = (1.0*h_VM_mass_REC_etacut->Integral(minbineff,maxbineff))/(1.0*h_VM_mass_MC_etacut->Integral(minbineff,maxbineff));

output->Write();
output->Close();


setbenchstatus(rhorecoeff);

return 0;
}

0 comments on commit 2d1d432

Please sign in to comment.