21 base_class(
type, name, parent)
26 if (detStore()->retrieve(
m_pHelper,
"SCT_ID").isFailure()) {
28 return StatusCode::FAILURE;
38 return StatusCode::SUCCESS;
42 return StatusCode::SUCCESS;
59 moduleId =
m_pHelper->module_id(elementId);
70 if (not moduleId.
is_valid())
return true;
74 if (condDataState==
nullptr)
return false;
75 else if (condDataState->
output(
castId(moduleId))==0)
return true;
93 if (not condDataHandle.
isValid()) {
101 if (condDataState==
nullptr)
return;
103 if (status.empty()) {
104 status.resize(
m_pHelper->wafer_hash_max(),
true);
107 constexpr unsigned int N_CHIPS_PER_SIDE = 6;
108 constexpr unsigned int N_SIDES = 2;
109 constexpr InDet::ChipFlags_t all_flags_set =
static_cast<InDet::ChipFlags_t
>((1ul<<(N_CHIPS_PER_SIDE*N_SIDES)) - 1ul);
110 if (chip_status.empty()) {
111 chip_status.resize(status.size(), all_flags_set);
116 for (
unsigned int side_i=0; side_i<2; ++side_i) {
123 status.at(hashId.
value() ) = status.at(hashId.
value() ) && dcs_state.second.empty();
124 chip_status.at(hashId.
value()) = chip_status.at(hashId.
value()) & ( dcs_state.second.empty() ? all_flags_set : 0 );
191 int modeta{
m_pHelper->eta_module(moduleId)};
#define ATH_CHECK
Evaluate an expression and check for errors.
This is an Identifier helper class for the SCT subdetector.
Header file for AthHistogramAlgorithm.
This is a "hash" representation of an Identifier.
constexpr value_type value() const
bool is_valid() const
Check if id is in a valid state.
const std::vector< bool > & getElementStatus() const
const std::vector< ChipFlags_t > & getElementChipStatus() const
Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
bool getValue(const CondAttrListCollection::ChanNum &chanNum, float &value) const
Get the float value for a channel.
Classs for data object used in SCT_DCSConditionsStatCondAlg, SCT_DCSConditionsTool,...
const DCSConditions & badChannelsMap() const
int output(const CondAttrListCollection::ChanNum &chanNum, std::vector< std::string > &usersVector) const
Copy all defects to a users vector, the return value is the size.
const_pointer_type retrieve()
const_pointer_type cptr()
void addDependency(const EventIDRange &range)