#include <CalibContainer.h>
Definition at line 19 of file CalibContainer.h.
◆ CalibContainer()
| MCP::CalibContainer::CalibContainer |
( |
const std::string & | fileName, |
|
|
const std::string & | histName ) |
Definition at line 18 of file CalibContainer.cxx.
19 {
20
21 if (
inFileName.empty())
throw std::invalid_argument(
"fileName arguments must be non empty");
22 if (
histName.empty())
throw std::invalid_argument(
"histName arguments must be non empty");
23
25
26 std::unique_ptr<TFile> fmc{TFile::Open(
fileName.c_str(),
"READ")};
27 if (!fmc || !fmc->IsOpen())
28 {
29 throw std::invalid_argument("Cannot open file " + fileName);
30 }
31
33 fmc->GetObject(
histName.c_str(), hist);
34 if (!hist) {
35 if (
histName.find(
"ptExtra") != std::string::npos) {
36
38 } else {
39 throw std::invalid_argument("Cannot find hist ("+histName+") in file " + fileName);
40 }
41 } else {
42 hist->SetDirectory(
nullptr);
44
45
46
51 }
52 }
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
std::unique_ptr< const TH1 > m_calibConstantHist
◆ getCalibConstant()
| double MCP::CalibContainer::getCalibConstant |
( |
const TrackCalibObj & | trk | ) |
const |
◆ mapExist()
| bool MCP::CalibContainer::mapExist |
( |
| ) |
const |
|
inline |
◆ m_calibConstantHist
| std::unique_ptr<const TH1> MCP::CalibContainer::m_calibConstantHist |
|
protected |
◆ m_maxX
| double MCP::CalibContainer::m_maxX {-1} |
|
protected |
◆ m_maxY
| double MCP::CalibContainer::m_maxY {-1} |
|
protected |
◆ m_minX
| double MCP::CalibContainer::m_minX {-1} |
|
protected |
◆ m_minY
| double MCP::CalibContainer::m_minY {-1} |
|
protected |
The documentation for this class was generated from the following files: