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;
virtual ~MultipleScatteringX0Data()
MultipleScatteringX0Data()
std::string fullPath() const
virtual float sumX0atEta(float eta, float r) const
std::unique_ptr< TH2F > theData