|
ATLAS Offline Software
|
Go to the documentation of this file.
14 m_h3EtaPhiResponse(nullptr),
15 m_h3EtaPhiOffset(nullptr)
40 if(runIndex<=0)
return 1;
50 if(runIndex<=0)
return 0;
61 ATH_MSG_DEBUG(
"Using unit weights and doing no eta-phi correction.");
65 unsigned int run_number=ctx.eventID().run_number();
83 ATH_MSG_WARNING(
"No calibration for " <<
run_number <<
" is avaliable and no generic run numbers were set. Doing no eta-phi correction.");
87 std::string str_defaultRunNumbers=
"";
92 str_defaultRunNumbers.resize(str_defaultRunNumbers.length()-2);
94 ATH_MSG_WARNING(
"No calibration for " <<
run_number <<
" is avaliable; no generic calibration for runs "<<str_defaultRunNumbers<<
". Doing no eta-phi correction.");
111 TFile*
f=TFile::Open(full_path.c_str());
115 return StatusCode::FAILURE;
118 m_h3W=(
TH3F*)
f->GetObjectChecked(
"h3_w",
"TH3F");
121 ATH_MSG_FATAL(
"Cannot find TH3F m_h3W in config file " << full_path );
122 return StatusCode::FAILURE;
128 ATH_MSG_FATAL(
"Cannot find TH3F m_h3Eta in config file " << full_path );
129 return StatusCode::FAILURE;
135 ATH_MSG_FATAL(
"Cannot find TH3F m_h3Phi in config file " << full_path );
136 return StatusCode::FAILURE;
142 ATH_MSG_FATAL(
"Cannot find TH3F m_h3Mag in config file " << full_path );
143 return StatusCode::FAILURE;
146 m_h3W->SetDirectory(0);
154 ATH_MSG_FATAL(
"Cannot find TH3F h3_eta_phi_response in config file " << full_path );
155 return StatusCode::FAILURE;
161 ATH_MSG_FATAL(
"Cannot find TH3F h3_eta_phi_offset in config file " << full_path );
162 return StatusCode::FAILURE;
166 TH1I* h1_run_index=(
TH1I*)
f->GetObjectChecked(
"h1_run_index",
"TH1I");
167 if(h1_run_index==
nullptr)
169 ATH_MSG_FATAL(
"Cannot find TH3F h1_run_index in config file " << full_path );
170 return StatusCode::FAILURE;
172 for(
int xbin=1; xbin<=h1_run_index->GetNbinsX(); xbin++) {
176 return StatusCode::SUCCESS;
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
::StatusCode StatusCode
StatusCode definition for legacy code.
double GetBinContent(int) const
std::string to_string(const DetectorType &type)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
#define ATH_MSG_WARNING(x)
double GetBinContent(int) const