 |
ATLAS Offline Software
|
Go to the documentation of this file.
21 ATH_MSG_FATAL(
"No data source is given to load the energy thresholds from. Please provide either a COOL folder or a json file");
22 return StatusCode::FAILURE;
28 return StatusCode::SUCCESS;
36 if (writeHandle.isValid()) {
37 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() <<
" is already valid."
38 <<
" In theory this should not be called, but may happen"
39 <<
" if multiple concurrent events are being processed out of order.");
40 return StatusCode::SUCCESS;
43 std::unique_ptr<TgcDigitThresholdData> writeCdo{std::make_unique<TgcDigitThresholdData>(
m_idHelperSvc.get())};
46 if (!readHandle.isValid()) {
48 return StatusCode::FAILURE;
50 writeHandle.addDependency(readHandle);
53 const std::string&
data{*(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()))};
59 if (!inStream.good()) {
61 return StatusCode::FAILURE;
67 ATH_CHECK(writeHandle.record(std::move(writeCdo)));
68 ATH_MSG_DEBUG(
"Recorded new " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
69 return StatusCode::SUCCESS;
74 for (
auto& corr :
lines.items()) {
77 const std::string stationType =
line[
"station"];
88 return StatusCode::FAILURE;
92 return StatusCode::SUCCESS;
TgcDigitEnergyThreshCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
virtual StatusCode initialize() override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::WriteCondHandleKey< TgcDigitThresholdData > m_writeKey
bool empty() const
Test if the key is blank.
An algorithm that can be simultaneously executed in multiple threads.
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcDigitThresholdData &deadChannels) const
Load the threshold constants from the JSON blob.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
virtual StatusCode execute(const EventContext &ctx) const override
::StatusCode StatusCode
StatusCode definition for legacy code.
bool setThreshold(const Identifier &layerId, const double threshold)
StatusCode initialize(bool used=true)
Gaudi::Property< std::string > m_readFromJSON
Use an external file to load the Jitter constants from.
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
ChanAttrListMap::const_iterator const_iterator
Conditions object to cache.
static EventIDRange infiniteTime()
Produces an EventIDRange that is inifinite in Time and invalid in RunLumi.
constexpr uint8_t stationEta
1 to 3