|
ATLAS Offline Software
|
Go to the documentation of this file.
21 ATH_MSG_FATAL(
"No data source is given to load efficiency maps 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;
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;
73 for (
auto& corr :
lines.items()) {
76 const std::string stationType =
line[
"station"];
81 const int isInnerQ1 =
line[
"isInnerQ1"];
89 return StatusCode::FAILURE;
93 return StatusCode::SUCCESS;
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
Gaudi::Property< std::string > m_readFromJSON
Load the gasGap efficiencies from a JSON file.
bool empty() const
Test if the key is blank.
sTgcDigitEffiCondAlg(const std::string &name, ISvcLocator *svc)
An algorithm that can be simultaneously executed in multiple threads.
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
StatusCode setEfficiency(const Identifier §ionId, const double effi, bool isInnerQ1=false)
Sets the efficiency for a given minimal section of the dector.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
StatusCode parseDataFromJSON(const nlohmann::json &lines, Muon::DigitEffiData &effiData) const
Parse efficiency data from COOL.
ChanAttrListMap::const_iterator const_iterator
SG::WriteCondHandleKey< Muon::DigitEffiData > m_writeKey
virtual StatusCode execute(const EventContext &ctx) const override
static EventIDRange infiniteTime()
Produces an EventIDRange that is inifinite in Time and invalid in RunLumi.
constexpr uint8_t stationEta
1 to 3
virtual StatusCode initialize() override
Gaudi::Property< double > m_defaultEffi