|
ATLAS Offline Software
|
Go to the documentation of this file.
23 const std::string&
name,
24 const IInterface*
parent) :
27 declareInterface<DerivationFramework::IAugmentationTool>(
this);
34 ATH_MSG_WARNING(
"No decoration prefix name provided for the output of EventInfoBSErrDecorator!");
42 return StatusCode::FAILURE;
49 std::vector<std::string>
names;
63 return StatusCode::SUCCESS;
68 return StatusCode::SUCCESS;
75 const EventContext& ctx = Gaudi::Hive::currentContext();
77 CHECK( eventInfo.
isValid() ? StatusCode::SUCCESS : StatusCode::FAILURE );
79 std::array<std::vector<int>,
kNIntDecor> scterr;
87 totalNumErrors += errorSet.size();
91 for(
const auto&
error : errorSet) {
120 assert(int_decor_handles.size() ==
kNIntDecor);
122 for(
unsigned int decorate_i=0; decorate_i<int_decor_handles.size(); ++decorate_i) {
123 int_decor_handles[decorate_i](*eventInfo) = std::move(scterr[decorate_i]);
125 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
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)
ToolHandle< ISCT_ByteStreamErrorsTool > m_byteStreamErrTool
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int phi_module(const Identifier &id) const
EventInfoBSErrDecorator(const std::string &type, const std::string &name, const IInterface *parent)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode addBranches() const
Pass the thinning service
int layer_disk(const Identifier &id) const
ToolHandle< ISCT_CablingTool > m_cabling
std::vector< SG::WriteDecorHandleKey< xAOD::EventInfo > > m_intDecorKeys
Class describing the basic event information.
#define ATH_MSG_WARNING(x)
int eta_module(const Identifier &id) const
std::vector< SG::WriteDecorHandle< T_Cont, T > > createDecorators(const std::vector< SG::WriteDecorHandleKey< T_Cont > > &keys, const EventContext &ctx)
int side(const Identifier &id) const
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Gaudi::Property< std::string > m_prefix