|
ATLAS Offline Software
|
Class to provide DCS information about modules from the COOL database.
More...
#include <SCT_DCSConditionsTool.h>
|
BooleanProperty | m_readAllDBFolders {this, "ReadAllDBFolders", true} |
|
BooleanProperty | m_returnHVTemp {this, "ReturnHVTemp", true} |
|
FloatProperty | m_barrel_correction {this, "TempBarrelCorrection", -3.7} |
|
FloatProperty | m_ecInner_correction {this, "TempEcInnerCorrection", -13.1} |
|
FloatProperty | m_ecOuter_correction {this, "TempEcOuterCorrection", -15.5} |
|
SG::ReadCondHandleKey< SCT_DCSStatCondData > | m_condKeyState {this, "CondKeyState", "SCT_DCSStatCondData", "SCT DCS state"} |
|
SG::ReadCondHandleKey< SCT_DCSFloatCondData > | m_condKeyHV {this, "CondKeyHV", "SCT_DCSHVCondData", "SCT DCS HV"} |
|
SG::ReadCondHandleKey< SCT_DCSFloatCondData > | m_condKeyTemp0 {this, "CondKeyTemp0", "SCT_DCSTemp0CondData", "SCT DCS temperature on side 0"} |
|
const SCT_ID * | m_pHelper {nullptr} |
|
static const Identifier | s_invalidId |
|
static const float | s_defaultHV {-30.} |
|
static const float | s_defaultTemperature {-40.} |
|
virtual bool | canReportAbout (InDetConditions::Hierarchy h) const override |
| Return whether this service can report on the hierarchy level (e.g. module, chip...) More...
|
|
virtual Identifier | getModuleID (const Identifier &elementId, InDetConditions::Hierarchy h) const |
|
virtual bool | isGood (const Identifier &elementId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
| Summarise the result from the service as good/bad. More...
|
|
virtual bool | isGood (const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
|
virtual bool | isGood (const IdentifierHash &hashId, const EventContext &ctx) const override |
| is it good?, using wafer hash More...
|
|
virtual bool | isGood (const IdentifierHash &hashId) const override |
|
virtual void | getDetectorElementStatus (const EventContext &ctx, InDet::SiDetectorElementStatus &element_status, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override |
|
virtual float | modHV (const Identifier &elementId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
|
virtual float | modHV (const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
|
virtual float | modHV (const IdentifierHash &hashId, const EventContext &ctx) const override |
|
virtual float | modHV (const IdentifierHash &hashId) const override |
|
virtual float | hybridTemperature (const Identifier &elementId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
|
virtual float | hybridTemperature (const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
|
virtual float | hybridTemperature (const IdentifierHash &hashId, const EventContext &ctx) const override |
|
virtual float | hybridTemperature (const IdentifierHash &hashId) const override |
|
virtual float | sensorTemperature (const Identifier &elementId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
|
virtual float | sensorTemperature (const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
|
virtual float | sensorTemperature (const IdentifierHash &hashId, const EventContext &ctx) const override |
|
virtual float | sensorTemperature (const IdentifierHash &hashId) const override |
|
const SCT_DCSStatCondData * | getCondDataState (const EventContext &ctx) const |
|
const SCT_DCSFloatCondData * | getCondDataHV (const EventContext &ctx) const |
|
const SCT_DCSFloatCondData * | getCondDataTemp0 (const EventContext &ctx) const |
|
Class to provide DCS information about modules from the COOL database.
Tool that returns DCS info about a module
Definition at line 40 of file SCT_DCSConditionsTool.h.
◆ SCT_DCSConditionsTool()
SCT_DCSConditionsTool::SCT_DCSConditionsTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~SCT_DCSConditionsTool()
virtual SCT_DCSConditionsTool::~SCT_DCSConditionsTool |
( |
| ) |
|
|
virtualdefault |
◆ canReportAbout()
Return whether this service can report on the hierarchy level (e.g. module, chip...)
Definition at line 48 of file SCT_DCSConditionsTool.cxx.
◆ finalize()
StatusCode SCT_DCSConditionsTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getCondDataHV()
◆ getCondDataState()
◆ getCondDataTemp0()
◆ getDetectorElementStatus()
Definition at line 96 of file SCT_DCSConditionsTool.cxx.
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 );
◆ getModuleID()
◆ hybridTemperature() [1/4]
◆ hybridTemperature() [2/4]
◆ hybridTemperature() [3/4]
◆ hybridTemperature() [4/4]
◆ initialize()
StatusCode SCT_DCSConditionsTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ isGood() [1/4]
Summarise the result from the service as good/bad.
Definition at line 70 of file SCT_DCSConditionsTool.cxx.
72 if (not moduleId.is_valid())
return true;
76 if (condDataState==
nullptr)
return false;
77 else if (condDataState->output(
castId(moduleId))==0)
return true;
◆ isGood() [2/4]
◆ isGood() [3/4]
◆ isGood() [4/4]
◆ modHV() [1/4]
◆ modHV() [2/4]
◆ modHV() [3/4]
◆ modHV() [4/4]
◆ sensorTemperature() [1/4]
◆ sensorTemperature() [2/4]
◆ sensorTemperature() [3/4]
◆ sensorTemperature() [4/4]
◆ m_barrel_correction
FloatProperty SCT_DCSConditionsTool::m_barrel_correction {this, "TempBarrelCorrection", -3.7} |
|
private |
◆ m_condKeyHV
◆ m_condKeyState
◆ m_condKeyTemp0
◆ m_ecInner_correction
FloatProperty SCT_DCSConditionsTool::m_ecInner_correction {this, "TempEcInnerCorrection", -13.1} |
|
private |
◆ m_ecOuter_correction
FloatProperty SCT_DCSConditionsTool::m_ecOuter_correction {this, "TempEcOuterCorrection", -15.5} |
|
private |
◆ m_pHelper
const SCT_ID* SCT_DCSConditionsTool::m_pHelper {nullptr} |
|
private |
◆ m_readAllDBFolders
BooleanProperty SCT_DCSConditionsTool::m_readAllDBFolders {this, "ReadAllDBFolders", true} |
|
private |
◆ m_returnHVTemp
BooleanProperty SCT_DCSConditionsTool::m_returnHVTemp {this, "ReturnHVTemp", true} |
|
private |
◆ s_defaultHV
const float SCT_DCSConditionsTool::s_defaultHV {-30.} |
|
staticprivate |
◆ s_defaultTemperature
const float SCT_DCSConditionsTool::s_defaultTemperature {-40.} |
|
staticprivate |
◆ s_invalidId
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
Class for data object used in SCT_DCSConditions{HV,Temp}CondAlg, SCT_DCSConditionsTool,...
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,...
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)