ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
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
26public:
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;
33private:
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
52
53 std::vector< std::pair<SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>,SG::AuxElement::ConstAccessor<float> > > m_decor;
54
55};
56
57#endif
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Handle class for adding a decoration to an object.
An algorithm that can be simultaneously executed in multiple threads.
virtual bool decorateTrack(const xAOD::TrackParticle &particle, std::vector< IDPVM::OptionalDecoration< xAOD::TrackParticleContainer, float > > &floatDecoration) const
Gaudi::Property< std::string > m_prefix
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >, SG::AuxElement::ConstAccessor< float > > > m_decor
virtual StatusCode execute(const EventContext &ctx) const
ParameterErrDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkParticleKey
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:569
Property holding a SG store/key/clid from which a ReadHandle is made.
std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool > OptionalDecoration
TrackParticle_v1 TrackParticle
Reference the current persistent version:
implementation file for function of same name