Simulate faulty detector panel w.r.t.
particle charge
#include <iostream>
#include <fstream>
#include <vector>
{
dir.Append(
"/hist/data/tprofile2poly_tutorial.data");
{
std::cerr <<
dir.Data() << std::endl;
std::cerr <<
"Error code: " << std::strerror(
errno) << std::endl;
return;
}
std::vector<std::pair<Double_t, Double_t>>
allCoords;
std::cout << "[ERROR] Bad file" << std::endl;
return;
}
}
for (
int j = 0;
j < numEvents; ++
j) {
}
th2p->SetTitle(
"total hits");
avg->SetTitle(
"average charge");
err->SetStats(0);
err->SetContentToError();
err->SetTitle("error");
err->Draw("COLZ");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
2D Histogram with Polygonal Bins
2D Profile Histogram with Polygonal Bins.
This is the base class for the ROOT Random number generators.
- Author
- Filip Ilic
Definition in file tprofile2polyRealisticModuleError.C.