20 TFile
theFile(filename.c_str(),
"READ");
22 theData.reset(dynamic_cast<TH2F*> (
theFile.GetKey(
"h100")->ReadObj()));
27 <<
" ** MultipleScatteringX0Data ** file: " 29 <<
" <-- no data found!!!";
39 string defName=
"RecoTracker/TkMSParametrization/data/MultipleScatteringX0Data.root";
67 int ieta =
theData->GetXaxis()->FindBin(eta);
68 int irad =
theData->GetYaxis()->FindBin(r);
70 if (irad < theData->GetNbinsY()) {
71 return theData->GetBinContent(ieta,irad);
75 for(
int ir =
theData->GetNbinsY(); ir > 0; ir--) {
77 if (val > sumX0) sumX0 =
val;
~MultipleScatteringX0Data() override
float sumX0atEta(float eta, float r) const override
MultipleScatteringX0Data()
std::string fullPath() const
std::unique_ptr< TH2F > theData