17 TFile
theFile(filename.c_str(),
"READ");
19 theData.reset(dynamic_cast<TH2F*>(
theFile.GetKey(
"h100")->ReadObj()));
24 <<
" ** MultipleScatteringX0Data ** file: " << filename <<
" <-- no data found!!!";
31 string defName =
"RecoTracker/TkMSParametrization/data/MultipleScatteringX0Data.root";
45 return theData->GetXaxis()->GetXmin();
52 return theData->GetXaxis()->GetXmax();
62 int ieta =
theData->GetXaxis()->FindBin(eta);
63 int irad =
theData->GetYaxis()->FindBin(r);
65 if (irad < theData->GetNbinsY()) {
66 return theData->GetBinContent(ieta, irad);
69 for (
int ir =
theData->GetNbinsY(); ir > 0; ir--) {
~MultipleScatteringX0Data() override
float sumX0atEta(float eta, float r) const override
MultipleScatteringX0Data()
std::string fullPath() const
std::unique_ptr< TH2F > theData