|
ATLAS Offline Software
|
Go to the documentation of this file.
21 ATH_MSG_FATAL(
"No data source is given to load the as build parameters. Please provide either a COOL folder or a json file");
22 return StatusCode::FAILURE;
29 return StatusCode::SUCCESS;
37 if (writeHandle.isValid()) {
38 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
39 <<
" In theory this should not be called, but may happen"
40 <<
" if multiple concurrent events are being processed out of order.");
41 return StatusCode::SUCCESS;
44 std::unique_ptr<sTGCAsBuiltData2> writeCdo{std::make_unique<sTGCAsBuiltData2>(
m_idHelperSvc.get())};
47 if (!readHandle.isValid()) {
49 return StatusCode::FAILURE;
51 writeHandle.addDependency(readHandle);
54 const std::string
data{*(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()))};
60 if (!inStream.good()) {
62 return StatusCode::FAILURE;
68 ATH_CHECK(writeHandle.record(std::move(writeCdo)));
69 ATH_MSG_DEBUG(
"Recorded new " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
70 return StatusCode::SUCCESS;
74 for (
auto& corr :
lines.items()) {
77 const std::string stationType =
line[
"station"];
88 return StatusCode::FAILURE;
98 return StatusCode::SUCCESS;
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
Container class that stores the as built parameters of the sTgcs.
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
SG::WriteCondHandleKey< sTGCAsBuiltData2 > m_writeKey
sTGCAsBuiltCondAlg2(const std::string &name, ISvcLocator *svc)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
bool empty() const
Test if the key is blank.
An algorithm that can be simultaneously executed in multiple threads.
StatusCode setParameters(const Identifier &gasGapId, const Parameters &pars)
virtual StatusCode execute(const EventContext &ctx) const override
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override
StatusCode parseDataFromJSON(const nlohmann::json &lines, sTGCAsBuiltData2 &effiData) const
Parse efficiency data from COOL.
StatusCode initialize(bool used=true)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
ChanAttrListMap::const_iterator const_iterator
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
static EventIDRange infiniteTime()
Produces an EventIDRange that is inifinite in Time and invalid in RunLumi.
constexpr uint8_t stationEta
1 to 3