|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "GaudiKernel/ThreadLocalContext.h"
30 return StatusCode::FAILURE;
40 return StatusCode::SUCCESS;
44 return StatusCode::SUCCESS;
72 if (not moduleId.is_valid())
return true;
76 if (condDataState==
nullptr)
return false;
77 else if (condDataState->output(
castId(moduleId))==0)
return true;
85 const EventContext& ctx{Gaudi::Hive::currentContext()};
86 return isGood(elementId, ctx,
h);
100 if (not condDataHandle.isValid()) {
108 if (condDataState==
nullptr)
return;
115 constexpr
unsigned int N_SIDES = 2;
117 if (chip_status.empty()) {
118 chip_status.resize(
status.size(), all_flags_set);
123 for (
unsigned int side_i=0; side_i<2; ++side_i) {
130 status.at(hashId.value() ) =
status.at(hashId.value() ) && dcs_state.second.empty();
131 chip_status.at(hashId.value()) = chip_status.at(hashId.value()) & ( dcs_state.second.empty() ? all_flags_set : 0 );
138 const EventContext& ctx{Gaudi::Hive::currentContext()};
139 return isGood(hashId, ctx);
154 if (condDataHV->getValue(
castId(moduleId), hvval) and
isGood(elementId,
h)) {
161 const EventContext& ctx{Gaudi::Hive::currentContext()};
162 return modHV(elementId, ctx,
h);
173 const EventContext& ctx{Gaudi::Hive::currentContext()};
174 return modHV(hashId, ctx);
186 if (condDataTemp0->getValue(
castId(moduleId), temperature) and
isGood(elementId,
h)) {
193 const EventContext& ctx{Gaudi::Hive::currentContext()};
205 const EventContext& ctx{Gaudi::Hive::currentContext()};
218 if (condDataTemp0->getValue(
castId(moduleId), temperature) and
isGood(elementId,
h)) {
235 const EventContext& ctx{Gaudi::Hive::currentContext()};
247 const EventContext& ctx{Gaudi::Hive::currentContext()};
256 return condData.retrieve();
262 return condData.retrieve();
268 return condData.retrieve();
def retrieve(aClass, aKey=None)
Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
const std::vector< bool > & getElementStatus() const
constexpr unsigned int N_SIDES
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int phi_module(const Identifier &id) const
const std::string & key() const
Return the StoreGate ID for the referenced object.
Identifier module_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Classs for data object used in SCT_DCSConditionsStatCondAlg, SCT_DCSConditionsTool,...
::StatusCode StatusCode
StatusCode definition for legacy code.
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
size_type wafer_hash_max(void) const
int layer_disk(const Identifier &id) const
StatusCode initialize(bool used=true)
const std::vector< ChipFlags_t > & getElementChipStatus() const
int eta_module(const Identifier &id) const
unsigned short ChipFlags_t
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
constexpr unsigned int N_CHIPS_PER_SIDE
void addDependency(const EventIDRange &range)