ATLAS Offline Software
ParameterErrDecoratorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETPHYSVALMONITORING_ParameterErrDecoratorAlg_H
6 #define INDETPHYSVALMONITORING_ParameterErrDecoratorAlg_H
7 
17 #include <string>
18 #include <vector>
21 #include "GaudiKernel/EventContext.h"
22 #include "safeDecorator.h"
23 
24 // class to decorate xAOD::TrackParticles with errors on the defining parameters
26 public:
27  ParameterErrDecoratorAlg(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual
30  virtual StatusCode initialize();
31  virtual StatusCode finalize();
32  virtual StatusCode execute(const EventContext &ctx) const;
33 private:
34  virtual bool decorateTrack(const xAOD::TrackParticle& particle,
35  std::vector<IDPVM::OptionalDecoration<xAOD::TrackParticleContainer, float> > &floatDecoration) const;
36 
37  Gaudi::Property<std::string> m_prefix
38  {this, "Prefix", "", "Decoration prefix to avoid clashes."};
39 
40  // need tracks particle key, to compose decoration keys
42  {this,"TrackParticleContainerName", "InDetTrackParticles",""};
43 
44  enum EDecorations {
51  };
52 
53  std::vector< std::pair<SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>,SG::AuxElement::ConstAccessor<float> > > m_decor;
54 
55 };
56 
57 #endif
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
ParameterErrDecoratorAlg::EDecorations
EDecorations
Definition: ParameterErrDecoratorAlg.h:44
ParameterErrDecoratorAlg::decorateTrack
virtual bool decorateTrack(const xAOD::TrackParticle &particle, std::vector< IDPVM::OptionalDecoration< xAOD::TrackParticleContainer, float > > &floatDecoration) const
Definition: ParameterErrDecoratorAlg.cxx:70
safeDecorator.h
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
SG::ReadHandleKey< xAOD::TrackParticleContainer >
ParameterErrDecoratorAlg::finalize
virtual StatusCode finalize()
Definition: ParameterErrDecoratorAlg.cxx:45
ParameterErrDecoratorAlg::m_decor
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >, SG::AuxElement::ConstAccessor< float > > > m_decor
Definition: ParameterErrDecoratorAlg.h:53
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
ParameterErrDecoratorAlg::kDecorZ0err
@ kDecorZ0err
Definition: ParameterErrDecoratorAlg.h:46
ParameterErrDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const
Definition: ParameterErrDecoratorAlg.cxx:50
ParameterErrDecoratorAlg
Definition: ParameterErrDecoratorAlg.h:25
ParameterErrDecoratorAlg::~ParameterErrDecoratorAlg
virtual ~ParameterErrDecoratorAlg()
Definition: ParameterErrDecoratorAlg.cxx:18
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
IDPVM::OptionalDecoration
std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool > OptionalDecoration
Definition: safeDecorator.h:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
WriteDecorHandle.h
Handle class for adding a decoration to an object.
ParameterErrDecoratorAlg::kDecorD0err
@ kDecorD0err
Definition: ParameterErrDecoratorAlg.h:45
ParameterErrDecoratorAlg::m_prefix
Gaudi::Property< std::string > m_prefix
Definition: ParameterErrDecoratorAlg.h:38
AthReentrantAlgorithm.h
ParameterErrDecoratorAlg::m_trkParticleKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkParticleKey
Definition: ParameterErrDecoratorAlg.h:42
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ParameterErrDecoratorAlg::initialize
virtual StatusCode initialize()
Definition: ParameterErrDecoratorAlg.cxx:23
ParameterErrDecoratorAlg::kDecorPhierr
@ kDecorPhierr
Definition: ParameterErrDecoratorAlg.h:47
ParameterErrDecoratorAlg::kDecorThetaerr
@ kDecorThetaerr
Definition: ParameterErrDecoratorAlg.h:48
ParameterErrDecoratorAlg::kDecorQoperr
@ kDecorQoperr
Definition: ParameterErrDecoratorAlg.h:49
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
TrackParticleContainer.h
ParameterErrDecoratorAlg::ParameterErrDecoratorAlg
ParameterErrDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ParameterErrDecoratorAlg.cxx:14
ParameterErrDecoratorAlg::kNDecorators
@ kNDecorators
Definition: ParameterErrDecoratorAlg.h:50