|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   23         ATH_MSG_FATAL(
"No data source is given to load the dead chamber data from. Please provide either a COOL folder or a json file");
 
   24         return StatusCode::FAILURE;
 
   30     return StatusCode::SUCCESS;
 
   38     if (writeHandle.isValid()) {
 
   39         ATH_MSG_DEBUG(
"CondHandle " << writeHandle.fullKey() << 
" is already valid." 
   40                                     << 
" In theory this should not be called, but may happen" 
   41                                     << 
" if multiple concurrent events are being processed out of order.");
 
   42         return StatusCode::SUCCESS;
 
   45     std::unique_ptr<TgcCondDbData> writeCdo{std::make_unique<TgcCondDbData>(
m_idHelperSvc.get())};
 
   48         if (!readHandle.isValid()) {
 
   50             return StatusCode::FAILURE;
 
   52         writeHandle.addDependency(readHandle);
 
   55             const std::string 
data{*(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()))};
 
   61         if (!inStream.good()) {
 
   63             return StatusCode::FAILURE;
 
   69     ATH_CHECK(writeHandle.record(std::move(writeCdo)));
 
   70     ATH_MSG_DEBUG(
"Recorded new " << writeHandle.key() << 
" with range " << writeHandle.getRange() << 
" into Conditions Store");
 
   72     return StatusCode::SUCCESS;
 
   77     for (
auto& corr : 
lines.items()) {
 
   80         const std::string stationType = 
line[
"station"];
 
   88             return StatusCode::FAILURE;
 
   92     return StatusCode::SUCCESS;
 
  
char data[hepevt_bytes_allocation_ATLAS]
constexpr uint8_t stationPhi
station Phi 1 to 8
Gaudi::Property< std::string > m_readFromJSON
Load the detector status from a JSON file.
TgcCondDbAlg(const std::string &name, ISvcLocator *svc)
SG::WriteCondHandleKey< TgcCondDbData > m_writeKey
virtual StatusCode execute(const EventContext &ctx) const override
bool empty() const
Test if the key is blank.
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDb
An algorithm that can be simultaneously executed in multiple threads.
StatusCode parseDataFromJSON(const nlohmann::json &lines, TgcCondDbData &deadChannels) const
Load the detector status from cool.
::StatusCode StatusCode
StatusCode definition for legacy code.
Conditions object to mark switched-off Tgc gasGaps.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode initialize(bool used=true)
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
ChanAttrListMap::const_iterator const_iterator
static EventIDRange infiniteTime()
Produces an EventIDRange that is inifinite in Time and invalid in RunLumi.
constexpr uint8_t stationEta
1 to 3
void setDeadGasGap(const Identifier &id)
Declare all channels wires + strips in a gasGap as dead.
virtual StatusCode initialize() override