 |
ATLAS Offline Software
|
Go to the documentation of this file.
19 ATH_MSG_FATAL(
"No data source is given to load the as build parameters. Please provide either a COOL folder or a json file");
20 return StatusCode::FAILURE;
27 return StatusCode::SUCCESS;
35 if (writeHandle.isValid()) {
36 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
37 <<
" In theory this should not be called, but may happen"
38 <<
" if multiple concurrent events are being processed out of order.");
39 return StatusCode::SUCCESS;
42 std::unique_ptr<sTGCAsBuiltData> writeCdo{std::make_unique<sTGCAsBuiltData>(
m_idHelperSvc.get())};
45 if (!readHandle.isValid()) {
47 return StatusCode::FAILURE;
49 writeHandle.addDependency(readHandle);
52 const std::string
data{*(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()))};
58 if (!inStream.good()) {
60 return StatusCode::FAILURE;
66 ATH_CHECK(writeHandle.record(std::move(writeCdo)));
67 ATH_MSG_DEBUG(
"Recorded new " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
68 return StatusCode::SUCCESS;
72 for (
auto& corr :
lines.items()) {
75 const std::string stationType =
line[
"station"];
86 return StatusCode::FAILURE;
97 return StatusCode::SUCCESS;
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
virtual StatusCode execute(const EventContext &ctx) const override
bool empty() const
Test if the key is blank.
virtual StatusCode initialize() override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
::StatusCode StatusCode
StatusCode definition for legacy code.
Class holding the sTGC as built conditions data and applying it. The model consists of four parameter...
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
StatusCode setParameters(const Identifier &gasGapId, const Parameters &pars)
StatusCode initialize(bool used=true)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
ChanAttrListMap::const_iterator const_iterator
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
StatusCode parseDataFromJSON(const nlohmann::json &lines, sTGCAsBuiltData &effiData) const
Parse efficiency data from COOL.
static EventIDRange infiniteTime()
Produces an EventIDRange that is inifinite in Time and invalid in RunLumi.
constexpr uint8_t stationEta
1 to 3
SG::WriteCondHandleKey< sTGCAsBuiltData > m_writeKey