20 theFile =
new TFile(filename.c_str(),
"READ");
22 theData =
dynamic_cast<TH2F*
> (
theFile->GetKey(
"h100")->ReadObj());
26 <<
" ** MultipleScatteringX0Data ** file: "
28 <<
" <-- no data found!!!";
42 string defName=
"RecoTracker/TkMSParametrization/data/MultipleScatteringX0Data.root";
70 int ieta =
theData->GetXaxis()->FindBin(eta);
71 int irad =
theData->GetYaxis()->FindBin(r);
73 if (irad < theData->GetNbinsY()) {
74 return theData->GetBinContent(ieta,irad);
78 for(
int ir =
theData->GetNbinsY(); ir > 0; ir--) {
79 float val =
theData->GetBinContent(ieta, ir);
80 if (val > sumX0) sumX0 = val;
virtual ~MultipleScatteringX0Data()
MultipleScatteringX0Data()
virtual float sumX0atEta(float eta, float r) const
std::string fullPath() const