ATLAS Offline Software
Loading...
Searching...
No Matches
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
19namespace 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
Service implementing xAODMaker::IROOTHeaderLoaderSvc.
virtual StatusCode initialize() override
Function initialising the service.
virtual StatusCode loadHeader(const std::string &headerName) const override
(Force-)Load one particular header
Gaudi::Property< std::vector< std::string > > m_headerNames
Names of the headers to auto-load during initialisation.