currently i have a Tefficiency from (0,8256), but I need to divide in three planes, how can i set my x range?
Hi,
In order to better understand what you’re trying to achieve, can you give us a small ROOT macro of what you’re doing and the ROOT version you use?
Thanks,
Jakob
root v6_14_02
TH1D *totalEvents = new TH1D("h_total","tot", 8256,0,8256);
TH1D *passEvents = new TH1D("h_pass", "pass", 8256,0,8256);
TH1D *htotal = new TH1D("samples_total","s_tot",8256,0,8256);
TH1D *ptotal = new TH1D("samples_pass","p_sam",8256,0,8256);
for (int j = 0; j < 8256; j++ )
{
if (ROIs[j] != 0)
{
flippedROIs->Fill(j,flipROI[j]/ROIs[j]);
}
if (samples[j] != 0)
{
flippedSamples->Fill(j,totalflips[j]/samples[j]);
}
totalEvents->SetBinContent(j,ROIs[j]);
passEvents->SetBinContent(j,flipROI[j]);
htotal->SetBinContent(j,samples[j]);
ptotal->SetBinContent(j,totalflips[j]);
if (TEfficiency::CheckConsistency(*passEvents,*totalEvents))
{
pEff = new TEfficiency(*passEvents,*totalEvents);
TEfficiency* pCopy = new TEfficiency(*pEff);
//pCopy->SetConfidenceLevel(.90);
pCopy->SetStatisticOption(TEfficiency::kFCP);
pCopy->SetTitle("Probability of Flipped Bit Per ROI for Run 17990 1000 events; Wires; ROIs with Flipped bit over Total ROIs");
f_output.cd();
pEff->Write();
pCopy->Write();
c1.cd();
pCopy->Draw("AP");
c1.Print(".png");
}
I want to divide pCopy in three different ranges rather than have all 8256 points in one plot
I guess @moneta can help