ATLAS Offline Software
xAODMenuWriter.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: xAODMenuWriter.h 589118 2014-03-24 16:20:19Z krasznaa $
8 #ifndef TRIGCONFXAOD_XAODMENUWRITER_H
9 #define TRIGCONFXAOD_XAODMENUWRITER_H
10 
11 // System include(s):
12 extern "C" {
13 # include <stdint.h>
14 }
15 #include <string>
16 #include <set>
17 #include <map> // For std::pair...
18 
19 // Gaudi/Athena include(s):
21 #include "GaudiKernel/ServiceHandle.h"
22 #include "StoreGate/StoreGateSvc.h"
23 
24 // Trigger include(s):
26 
27 // EDM include(s):
29 
30 namespace TrigConf {
31 
49  class xAODMenuWriter : public AthAlgorithm {
50 
51  public:
53  xAODMenuWriter( const std::string& name, ISvcLocator* svcLoc );
54 
56  virtual StatusCode initialize();
57 
59  virtual StatusCode execute();
60 
61  private:
63  std::string m_eventName;
65  std::string m_metaName;
68 
73 
76 
78  typedef std::pair< uint32_t, std::pair< uint32_t, uint32_t > > TrigKey_t;
79 
81  std::set< TrigKey_t > m_convertedKeys;
82 
83  }; // class xAODMenuWriter
84 
85 } // namespace TrigConf
86 
87 #endif // TRIGCONFXAOD_XAODMENUWRITER_H
TrigConf::xAODMenuWriter::m_trigConf
ServiceHandle< TrigConf::ITrigConfigSvc > m_trigConf
Connection to the trigger configuration service.
Definition: xAODMenuWriter.h:70
TrigConf::xAODMenuWriter::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition: xAODMenuWriter.cxx:48
ITrigConfigSvc.h
TrigConf::xAODMenuWriter::xAODMenuWriter
xAODMenuWriter(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition: xAODMenuWriter.cxx:33
TrigConf::xAODMenuWriter::TrigKey_t
std::pair< uint32_t, std::pair< uint32_t, uint32_t > > TrigKey_t
Trigger configuration key type (used just internally)
Definition: xAODMenuWriter.h:78
AthAlgorithm.h
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::xAODMenuWriter::m_metaStore
ServiceHandle< StoreGateSvc > m_metaStore
Connection to the metadata store.
Definition: xAODMenuWriter.h:72
TrigConf::xAODMenuWriter::m_overwriteEventObj
bool m_overwriteEventObj
Switch for overwriting existing event-wise objects.
Definition: xAODMenuWriter.h:67
TrigConf::xAODMenuWriter::m_convertedKeys
std::set< TrigKey_t > m_convertedKeys
Trigger configuration keys that are already converted.
Definition: xAODMenuWriter.h:81
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TrigConf::xAODMenuWriter::execute
virtual StatusCode execute()
Function executing the algorithm.
Definition: xAODMenuWriter.cxx:79
AthAlgorithm
Definition: AthAlgorithm.h:47
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::xAODMenuWriter
Algorithm used to write the light-weight xAOD configuration.
Definition: xAODMenuWriter.h:49
TriggerMenuContainer.h
TrigConf::xAODMenuWriter::m_eventName
std::string m_eventName
StoreGate key for the event object.
Definition: xAODMenuWriter.h:63
TrigConf::xAODMenuWriter::m_metaName
std::string m_metaName
StoreGate key for the configuration object.
Definition: xAODMenuWriter.h:65
StoreGateSvc.h
TrigConf::xAODMenuWriter::m_tmc
xAOD::TriggerMenuContainer * m_tmc
The configuration object that we are writing.
Definition: xAODMenuWriter.h:75
ServiceHandle< TrigConf::ITrigConfigSvc >