ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetPhysValMonitoring
src
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
15
#include "
xAODTracking/TrackParticleContainer.h
"
16
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
17
#include <string>
18
#include <vector>
19
#include "
StoreGate/WriteDecorHandleKey.h
"
20
#include "
StoreGate/WriteDecorHandle.h
"
21
#include "GaudiKernel/EventContext.h"
22
#include "
safeDecorator.h
"
23
24
// class to decorate xAOD::TrackParticles with errors on the defining parameters
25
class
ParameterErrDecoratorAlg
:
public
AthReentrantAlgorithm
{
26
public
:
27
ParameterErrDecoratorAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
28
virtual
29
~ParameterErrDecoratorAlg
();
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
41
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_trkParticleKey
42
{
this
,
"TrackParticleContainerName"
,
"InDetTrackParticles"
,
""
};
43
44
enum
EDecorations
{
45
kDecorD0err
,
46
kDecorZ0err
,
47
kDecorPhierr
,
48
kDecorThetaerr
,
49
kDecorQoperr
,
50
kNDecorators
51
};
52
53
std::vector< std::pair<SG::WriteDecorHandleKey<xAOD::TrackParticleContainer>,SG::AuxElement::ConstAccessor<float> > >
m_decor
;
54
55
};
56
57
#endif
AthReentrantAlgorithm.h
TrackParticleContainer.h
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
WriteDecorHandle.h
Handle class for adding a decoration to an object.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ParameterErrDecoratorAlg::decorateTrack
virtual bool decorateTrack(const xAOD::TrackParticle &particle, std::vector< IDPVM::OptionalDecoration< xAOD::TrackParticleContainer, float > > &floatDecoration) const
Definition
ParameterErrDecoratorAlg.cxx:70
ParameterErrDecoratorAlg::m_prefix
Gaudi::Property< std::string > m_prefix
Definition
ParameterErrDecoratorAlg.h:38
ParameterErrDecoratorAlg::m_decor
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >, SG::AuxElement::ConstAccessor< float > > > m_decor
Definition
ParameterErrDecoratorAlg.h:53
ParameterErrDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const
Definition
ParameterErrDecoratorAlg.cxx:50
ParameterErrDecoratorAlg::ParameterErrDecoratorAlg
ParameterErrDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
ParameterErrDecoratorAlg.cxx:14
ParameterErrDecoratorAlg::EDecorations
EDecorations
Definition
ParameterErrDecoratorAlg.h:44
ParameterErrDecoratorAlg::kDecorThetaerr
@ kDecorThetaerr
Definition
ParameterErrDecoratorAlg.h:48
ParameterErrDecoratorAlg::kDecorZ0err
@ kDecorZ0err
Definition
ParameterErrDecoratorAlg.h:46
ParameterErrDecoratorAlg::kDecorQoperr
@ kDecorQoperr
Definition
ParameterErrDecoratorAlg.h:49
ParameterErrDecoratorAlg::kNDecorators
@ kNDecorators
Definition
ParameterErrDecoratorAlg.h:50
ParameterErrDecoratorAlg::kDecorD0err
@ kDecorD0err
Definition
ParameterErrDecoratorAlg.h:45
ParameterErrDecoratorAlg::kDecorPhierr
@ kDecorPhierr
Definition
ParameterErrDecoratorAlg.h:47
ParameterErrDecoratorAlg::finalize
virtual StatusCode finalize()
Definition
ParameterErrDecoratorAlg.cxx:45
ParameterErrDecoratorAlg::~ParameterErrDecoratorAlg
virtual ~ParameterErrDecoratorAlg()
Definition
ParameterErrDecoratorAlg.cxx:18
ParameterErrDecoratorAlg::initialize
virtual StatusCode initialize()
Definition
ParameterErrDecoratorAlg.cxx:23
ParameterErrDecoratorAlg::m_trkParticleKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trkParticleKey
Definition
ParameterErrDecoratorAlg.h:42
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
IDPVM::OptionalDecoration
std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool > OptionalDecoration
Definition
safeDecorator.h:48
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition
Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
safeDecorator.h
implementation file for function of same name
Generated on
for ATLAS Offline Software by
1.17.0