ATLAS Offline Software
ROOTHeaderLoaderSvc.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 //
3 // Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 //
5 #ifndef XAODCORECNV_ROOTHEADERLOADERSVC_H
6 #define XAODCORECNV_ROOTHEADERLOADERSVC_H
7 
8 // Local include(s).
10 
11 // Framework include(s).
13 #include "Gaudi/Property.h"
14 
15 // System include(s).
16 #include <string>
17 #include <vector>
18 
19 namespace xAODMaker {
20 
30  class ROOTHeaderLoaderSvc : public extends< AthService,
31  IROOTHeaderLoaderSvc > {
32 
33  public:
34  // Inherit the base class's constructor(s).
35  using extends::extends;
36 
38  virtual StatusCode initialize() override;
39 
42 
44  virtual StatusCode
45  loadHeader( const std::string& headerName ) const override;
46 
48 
49  private:
51  Gaudi::Property< std::vector< std::string > > m_headerNames{ this,
52  "HeaderNames", {},
53  "Names of the headers to auto-load during initialisation" };
54 
55  }; // class ROOTHeaderLoaderSvc
56 
57 } // namespace xAODMaker
58 
59 #endif // XAODCORECNV_ROOTHEADERLOADERSVC_H
xAODMaker::ROOTHeaderLoaderSvc::loadHeader
virtual StatusCode loadHeader(const std::string &headerName) const override
(Force-)Load one particular header
Definition: ROOTHeaderLoaderSvc.cxx:28
xAODMaker::ROOTHeaderLoaderSvc::initialize
virtual StatusCode initialize() override
Function initialising the service.
Definition: ROOTHeaderLoaderSvc.cxx:15
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::ROOTHeaderLoaderSvc
Service implementing xAODMaker::IROOTHeaderLoaderSvc.
Definition: ROOTHeaderLoaderSvc.h:31
IROOTHeaderLoaderSvc.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::ROOTHeaderLoaderSvc::m_headerNames
Gaudi::Property< std::vector< std::string > > m_headerNames
Names of the headers to auto-load during initialisation.
Definition: ROOTHeaderLoaderSvc.h:51
AthService.h