ATLAS Offline Software
Loading...
Searching...
No Matches
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):
11extern "C" {
12# include <stdint.h>
13}
14#include <string>
15
16// Gaudi/Athena include(s):
19#include "GaudiKernel/ToolHandle.h"
20#include "GaudiKernel/ServiceHandle.h"
23
24// EDM include(s):
26
27namespace Ringer {
28
46
48{
49
50 public:
52 xAODRingSetConfWriter( const std::string& name, ::ISvcLocator* svcLoc );
53
55 StatusCode initialize();
56
58 StatusCode execute();
59
61 StatusCode finalize();
62
63 private:
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
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ServiceHandle< StoreGateSvc > m_metaStore
Private properties (python configurables):Connection to the (output)metadata store.
StatusCode allocateContainers()
Prepare containers to retrieve configurations.
std::vector< std::string > m_rsMetaNames
StoreGate keys for the RingSet configurations.
StatusCode execute()
Method executing the algorithm.
StatusCode copyKeyToStore(const std::string &key)
Retrieve a key and returns a copy of it to outputmeta.
StatusCode copyInputMetaStore()
Private methods:
StatusCode searchAndCopyCLID(const ClassID_traits< T > &classID)
Auxiliary method called by copyInputMetaStore.
StatusCode fillConfigurations()
Fill the containers with each CaloRingsBuilder tool configuration.
std::vector< xAOD::RingSetConfContainer * > m_rsConfContVec
Private properties (non python configurables):The CaloRings configuration container.
StatusCode initialize()
Method initialising the algorithm.
StatusCode retrieveCaloRingsBuilders()
Retrieve CaloRingsBuilder tools.
ServiceHandle< StoreGateSvc > m_inputMetaStore
Connection to the inputMetadata store.
ToolHandleArray< Ringer::ICaloRingsBuilder > m_crBuilderTools
Connection to the trigger configuration service.
xAODRingSetConfWriter(const std::string &name, ::ISvcLocator *svcLoc)
Regular Algorithm constructor.
StatusCode finalize()
Method executing the algorithm.
Namespace dedicated for Ringer utilities.
This specialization is used for classes deriving from DataObject.