|
ATLAS Offline Software
|
Go to the documentation of this file.
32 std::string
message{
"The following decorations should be added by ParameterErrDecoratorAlg:\n"};
33 for (
const auto & thisName: decorationNames){
41 return StatusCode::SUCCESS;
46 return StatusCode::SUCCESS;
54 return StatusCode::FAILURE;
56 std::vector< IDPVM::OptionalDecoration<xAOD::TrackParticleContainer,float> >
58 if (not floatDecoration.empty()){
61 ATH_MSG_ERROR(
"Decoration failed in ParameterErrDecoratorAlg::execute.");
62 return StatusCode::FAILURE;
66 return StatusCode::SUCCESS;
79 covVert = errorMat.similarity(TheJac);
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
void createDecoratorKeysAndAccessor(T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< WriteKeyAccessorPair< T_Cont, T > > &decor_out)
virtual bool decorateTrack(const xAOD::TrackParticle &particle, std::vector< IDPVM::OptionalDecoration< xAOD::TrackParticleContainer, float > > &floatDecoration) const
bool msgLvl(const MSG::Level lvl) const
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
#define AmgSymMatrix(dim)
virtual StatusCode finalize()
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >, SG::AuxElement::ConstAccessor< float > > > m_decor
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const
virtual ~ParameterErrDecoratorAlg()
std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool > OptionalDecoration
::StatusCode StatusCode
StatusCode definition for legacy code.
void decorateOrRejectQuietly(const T_Cont_Elm &particle, OptionalDecoration< T_Cont, T > &decorator, const T &value)
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?
Gaudi::Property< std::string > m_prefix
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkParticleKey
std::vector< OptionalDecoration< T_Cont, T > > createDecoratorsIfNeeded(const T_Cont &container, const std::vector< WriteKeyAccessorPair< T_Cont, T > > &keys, const EventContext &ctx, bool verbose=false)
virtual StatusCode initialize()
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Class describing a TrackParticle.
ParameterErrDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)