ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecoAlgs
CaloRingerAlgs
src
xAODRingSetConfWriter.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id: xAODRingSetConfWriter.h 713521 2015-12-09 08:53:41Z wsfreund $
6
7
#ifndef CALORINGERTOOLS_XAODCALORINGSSCONFWRITER_H
8
#define CALORINGERTOOLS_XAODCALORINGSSCONFWRITER_H
9
10
// System include(s):
11
extern
"C"
{
12
# include <stdint.h>
13
}
14
#include <string>
15
16
// Gaudi/Athena include(s):
17
#include "
AthenaBaseComps/AthAlgorithm.h
"
18
#include "
AthenaKernel/ClassID_traits.h
"
19
#include "GaudiKernel/ToolHandle.h"
20
#include "GaudiKernel/ServiceHandle.h"
21
#include "
StoreGate/StoreGateSvc.h
"
22
#include "
CaloRingerTools/ICaloRingsBuilder.h
"
23
24
// EDM include(s):
25
#include "
xAODCaloRings/RingSetConfContainer.h
"
26
27
namespace
Ringer
{
28
46
47
class
xAODRingSetConfWriter
:
public
::AthAlgorithm
48
{
49
50
public
:
52
xAODRingSetConfWriter
(
const
std::string& name, ::ISvcLocator* svcLoc );
53
55
StatusCode
initialize
();
56
58
StatusCode
execute
(
const
EventContext& ctx);
59
61
StatusCode
finalize
();
62
63
private
:
67
ServiceHandle< StoreGateSvc >
m_metaStore
;
69
ServiceHandle< StoreGateSvc >
m_inputMetaStore
;
71
ToolHandleArray< Ringer::ICaloRingsBuilder >
m_crBuilderTools
;
73
std::vector<std::string>
m_rsMetaNames
;
75
79
std::vector< xAOD::RingSetConfContainer* >
m_rsConfContVec
;
81
84
87
StatusCode
copyInputMetaStore
();
88
92
template
<
class
auxT,
class
T >
93
StatusCode
searchAndCopyCLID
(
const
ClassID_traits< T >
&
classID
);
94
98
template
<
class
auxT,
class
T >
99
StatusCode
copyKeyToStore
(
const
std::string &key );
100
104
StatusCode
retrieveCaloRingsBuilders
();
105
109
StatusCode
allocateContainers
();
110
114
StatusCode
fillConfigurations
();
116
117
};
// class xAODRingSetsConfWriter
118
119
}
// namespace Ringer
120
121
#endif
// CALORINGERTOOLS_XAODCALORINGSSCONFWRITER_H
AthAlgorithm.h
classID
static CLID classID()
ClassID_traits.h
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
ICaloRingsBuilder.h
RingSetConfContainer.h
StoreGateSvc.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
Ringer::xAODRingSetConfWriter::m_metaStore
ServiceHandle< StoreGateSvc > m_metaStore
Private properties (python configurables):Connection to the (output)metadata store.
Definition
xAODRingSetConfWriter.h:67
Ringer::xAODRingSetConfWriter::allocateContainers
StatusCode allocateContainers()
Prepare containers to retrieve configurations.
Definition
xAODRingSetConfWriter.cxx:239
Ringer::xAODRingSetConfWriter::m_rsMetaNames
std::vector< std::string > m_rsMetaNames
StoreGate keys for the RingSet configurations.
Definition
xAODRingSetConfWriter.h:73
Ringer::xAODRingSetConfWriter::copyKeyToStore
StatusCode copyKeyToStore(const std::string &key)
Retrieve a key and returns a copy of it to outputmeta.
Definition
xAODRingSetConfWriter.cxx:181
Ringer::xAODRingSetConfWriter::copyInputMetaStore
StatusCode copyInputMetaStore()
Private methods:
Definition
xAODRingSetConfWriter.cxx:128
Ringer::xAODRingSetConfWriter::searchAndCopyCLID
StatusCode searchAndCopyCLID(const ClassID_traits< T > &classID)
Auxiliary method called by copyInputMetaStore.
Definition
xAODRingSetConfWriter.cxx:141
Ringer::xAODRingSetConfWriter::fillConfigurations
StatusCode fillConfigurations()
Fill the containers with each CaloRingsBuilder tool configuration.
Definition
xAODRingSetConfWriter.cxx:259
Ringer::xAODRingSetConfWriter::m_rsConfContVec
std::vector< xAOD::RingSetConfContainer * > m_rsConfContVec
Private properties (non python configurables):The CaloRings configuration container.
Definition
xAODRingSetConfWriter.h:79
Ringer::xAODRingSetConfWriter::initialize
StatusCode initialize()
Method initialising the algorithm.
Definition
xAODRingSetConfWriter.cxx:46
Ringer::xAODRingSetConfWriter::retrieveCaloRingsBuilders
StatusCode retrieveCaloRingsBuilders()
Retrieve CaloRingsBuilder tools.
Definition
xAODRingSetConfWriter.cxx:228
Ringer::xAODRingSetConfWriter::m_inputMetaStore
ServiceHandle< StoreGateSvc > m_inputMetaStore
Connection to the inputMetadata store.
Definition
xAODRingSetConfWriter.h:69
Ringer::xAODRingSetConfWriter::m_crBuilderTools
ToolHandleArray< Ringer::ICaloRingsBuilder > m_crBuilderTools
Connection to the trigger configuration service.
Definition
xAODRingSetConfWriter.h:71
Ringer::xAODRingSetConfWriter::xAODRingSetConfWriter
xAODRingSetConfWriter(const std::string &name, ::ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition
xAODRingSetConfWriter.cxx:26
Ringer::xAODRingSetConfWriter::finalize
StatusCode finalize()
Method executing the algorithm.
Definition
xAODRingSetConfWriter.cxx:292
Ringer::xAODRingSetConfWriter::execute
StatusCode execute(const EventContext &ctx)
Method executing the algorithm.
Definition
xAODRingSetConfWriter.cxx:283
ServiceHandle< StoreGateSvc >
Ringer
Namespace dedicated for Ringer utilities.
Definition
CaloRingsDefs.h:9
ClassID_traits< T >
This specialization is used for classes deriving from DataObject.
Definition
Control/AthenaKernel/AthenaKernel/ClassID_traits.h:71
Generated on
for ATLAS Offline Software by
1.17.0