Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 39 → Rev 40

/sipmScan/examples/thresholdScan.C
60,11 → 60,12
TCanvas* canvas2 = new TCanvas("canvas2","",1600,800);
//canvas2->Divide(2);
TH1D* h_projection1 = h_threshold->ProjectionY("Ch 37",38,38);
int channel = map[chXstart][chXend];
TH1D* h_projection1 = h_threshold->ProjectionY("",channel+1,channel+1);
canvas2->cd();
//h_projection1->GetYaxis()->SetRangeUser(0,1000);
//gPad->SetLogy();
h_projection1->SetTitle("Channel 37;Threshold [V]; Events");
h_projection1->SetTitle(";Threshold [V]; Events");
h_projection1->Draw();
/*
TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39);