23 ATH_MSG_WARNING(
"No decoration prefix name provided for the output of EventInfoBSErrDecorator!");
29 if( detStore()->retrieve(
m_sctId,
"SCT_ID").isFailure() ){
31 return StatusCode::FAILURE;
38 std::vector<std::string> names;
52 return StatusCode::SUCCESS;
61 CHECK( eventInfo.
isValid() ? StatusCode::SUCCESS : StatusCode::FAILURE );
63 std::array<std::vector<int>,
kNIntDecor> scterr;
67 for (
int n_type=0; n_type < SCT_ByteStreamErrors::NUM_ERROR_TYPES; ++n_type) {
69 int eta=0,
phi=0,bec=0,layer=0,side=0;
71 totalNumErrors += errorSet.size();
75 for(
const auto&
error : errorSet) {
80 layer =
m_sctId->layer_disk(itId);
96 uint32_t rod = online.rod();
97 uint32_t fibre = online.fibre();
104 assert(int_decor_handles.size() ==
kNIntDecor);
106 for(
unsigned int decorate_i=0; decorate_i<int_decor_handles.size(); ++decorate_i) {
107 int_decor_handles[decorate_i](*eventInfo) = std::move(scterr[decorate_i]);
109 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.
This is an Identifier helper class for the SCT subdetector.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ToolHandle< ISCT_ByteStreamErrorsTool > m_byteStreamErrTool
ToolHandle< ISCT_CablingTool > m_cabling
virtual StatusCode addBranches(const EventContext &ctx) const override final
virtual StatusCode initialize() override final
Gaudi::Property< std::string > m_prefix
std::vector< SG::WriteDecorHandleKey< xAOD::EventInfo > > m_intDecorKeys
SCT_OnlineId is a class to hold an online id number and provide check on validity,...
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::vector< SG::WriteDecorHandle< T_Cont, T > > createDecorators(const std::vector< SG::WriteDecorHandleKey< T_Cont > > &keys, const EventContext &ctx)
void createDecoratorKeys(T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< SG::WriteDecorHandleKey< T_Cont > > &decor_out)
EventInfo_v1 EventInfo
Definition of the latest event info version.