diff --git a/JFMC_CurrentSourceScan.cpp b/JFMC_CurrentSourceScan.cpp index 9c0400f..8e6f81f 100644 --- a/JFMC_CurrentSourceScan.cpp +++ b/JFMC_CurrentSourceScan.cpp @@ -575,9 +575,6 @@ int main(int argc, char* argv[]) { } } - double pede_ene[1]; - pede_ene[0] = 0.01; - for (int i = 0; i < NCH; i++) { if (pixel_mask[i] == 1) { @@ -619,12 +616,6 @@ int main(int argc, char* argv[]) { if (r1_adc.size() > 1 && r3_adc.size() > 1) { - double this_pede_val1[1] = {pedestalsG1->GetBinContent((i%NC)+1,(i/NC)+1)}; - double this_pede_val2[1] = {pedestalsG2->GetBinContent((i%NC)+1,(i/NC)+1)}; - - TGraph *grap_p1 = new TGraph(1,pede_ene,this_pede_val1); - TGraph *grap_p2 = new TGraph(1,pede_ene,this_pede_val2); - TGraphErrors *grap_g1 = new TGraphErrors(r1_adc.size(),&(r1_filter[0]),&(r1_adc[0]),&(r1_ferr[0]),&(r1_adcerr[0])); TGraphErrors *grap_g2 = new TGraphErrors(r3_adc.size(),&(r3_filter[0]),&(r3_adc[0]),&(r3_ferr[0]),&(r3_adcerr[0])); @@ -741,10 +732,6 @@ int main(int argc, char* argv[]) { mapcanvas->SetLeftMargin(0.13); mapcanvas->SetRightMargin(0.05); - grap_p1->SetMarkerColor(kGreen+2); - grap_p2->SetMarkerColor(kRed); - grap_p1->SetMarkerStyle(20); - grap_p2->SetMarkerStyle(20); grap_g1->SetMarkerStyle(20); grap_g2->SetMarkerStyle(20); grap_g1->SetMarkerColor(kGreen+2); @@ -791,8 +778,6 @@ int main(int argc, char* argv[]) { fit2_e->Draw("same"); fit3_e->Draw("same"); - grap_p1->Draw("P"); - grap_p2->Draw("P"); mapcanvas->SetLogx(); sprintf(savename,"plots/M%s/CurrentSource/pixel_%s_%d.png", module_str.c_str(), pixel_type.c_str(), i); mapcanvas->SaveAs((const char *)(savename)); @@ -849,8 +834,6 @@ int main(int argc, char* argv[]) { delete grap_g1; delete grap_g2; - delete grap_p1; - delete grap_p2; delete fit2; delete fit3;