Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 37 → Rev 38

/sipmScan/examples/thresholdScan.C
32,7 → 32,7
{0,2,21,23,8,10,29,31}
};
// Set draw style
RTSetStyle(gStyle);
// open the file with histograms
59,17 → 59,18
h_threshold->Draw("colz");
TCanvas* canvas2 = new TCanvas("canvas2","",1600,800);
canvas2->Divide(2);
//canvas2->Divide(2);
TH1D* h_projection1 = h_threshold->ProjectionY("Ch 37",38,38);
canvas2->cd(1);
canvas2->cd();
//h_projection1->GetYaxis()->SetRangeUser(0,1000);
//gPad->SetLogy();
h_projection1->SetTitle("Channel 37;Threshold [V]; Events");
h_projection1->Draw();
/*
TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39);
canvas2->cd(2);
//gPad->SetLogy();
h_projection2->Draw();
h_projection2->Draw(); */
}
if(strstr(plopt, "tdc") != NULL) {