ATLAS Offline Software
BunchConfCnvAlg.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: BunchConfCnvAlg.h 583381 2014-02-14 15:58:20Z krasznaa $
8 #ifndef XAODTRIGGERCNV_BUNCHCONFCNVALG_H
9 #define XAODTRIGGERCNV_BUNCHCONFCNVALG_H
10 
11 // System include(s):
12 extern "C" {
13 # include <stdint.h>
14 }
15 #include <string>
16 #include <set>
17 
18 // Gaudi/Athena include(s):
20 #include "GaudiKernel/ToolHandle.h"
21 #include "GaudiKernel/ServiceHandle.h"
22 #include "StoreGate/StoreGateSvc.h"
23 
24 // Trigger include(s):
26 
27 // xAOD include(s):
29 
30 namespace xAODMaker {
31 
43  class BunchConfCnvAlg : public AthAlgorithm {
44 
45  public:
47  BunchConfCnvAlg( const std::string& name, ISvcLocator* svcLoc );
48 
50  virtual StatusCode initialize();
52  virtual StatusCode execute();
53 
54  private:
56  std::string m_eventName;
58  std::string m_metaName;
59 
61  ToolHandle< Trig::IBunchCrossingConfProvider > m_bcConf;
64 
67 
69  std::set< uint32_t > m_convertedIDs;
70 
71  }; // class BunchConfCnvAlg
72 
73 } // xAODMaker
74 
75 #endif // XAODTRIGGERCNV_BUNCHCONFCNVALG_H
xAODMaker::BunchConfCnvAlg::m_convertedIDs
std::set< uint32_t > m_convertedIDs
Configurations that have already been converted.
Definition: BunchConfCnvAlg.h:69
xAODMaker::BunchConfCnvAlg::m_metaName
std::string m_metaName
StoreGate key for the configuration object.
Definition: BunchConfCnvAlg.h:58
xAODMaker::BunchConfCnvAlg
Algorithm for writing bunch configuration metadata.
Definition: BunchConfCnvAlg.h:43
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::BunchConfCnvAlg::m_metaStore
ServiceHandle< StoreGateSvc > m_metaStore
Connection to the metadata store.
Definition: BunchConfCnvAlg.h:63
IBunchCrossingConfProvider.h
AthAlgorithm.h
xAODMaker::BunchConfCnvAlg::m_eventName
std::string m_eventName
StoreGate key for the event object.
Definition: BunchConfCnvAlg.h:56
xAODMaker::BunchConfCnvAlg::m_bcc
xAOD::BunchConfContainer * m_bcc
The configuration object that is being written.
Definition: BunchConfCnvAlg.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::BunchConfCnvAlg::BunchConfCnvAlg
BunchConfCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition: BunchConfCnvAlg.cxx:20
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
AthAlgorithm
Definition: AthAlgorithm.h:47
xAODMaker::BunchConfCnvAlg::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition: BunchConfCnvAlg.cxx:34
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODMaker::BunchConfCnvAlg::m_bcConf
ToolHandle< Trig::IBunchCrossingConfProvider > m_bcConf
Connection to the bunch configuration provider tool.
Definition: BunchConfCnvAlg.h:61
xAODMaker::BunchConfCnvAlg::execute
virtual StatusCode execute()
Function executing the algorithm.
Definition: BunchConfCnvAlg.cxx:61
BunchConfContainer.h
StoreGateSvc.h
ServiceHandle< StoreGateSvc >