Project
Loading...
Searching...
No Matches
InitContext.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
#ifndef O2_FRAMEWORK_INIT_CONTEXT_H_
12
#define O2_FRAMEWORK_INIT_CONTEXT_H_
13
14
#include "
Framework/ServiceRegistryRef.h
"
15
16
namespace
o2::framework
17
{
18
19
class
ServiceRegistry;
20
class
ConfigParamRegistry;
21
22
// This is a utility class to reduce the amount of boilerplate when defining
23
// an algorithm.
24
class
InitContext
25
{
26
public
:
27
InitContext
(
ConfigParamRegistry
&
options
,
ServiceRegistryRef
services
)
28
:
mOptions
{
options
},
29
mServices
{
services
}
30
{
31
}
32
33
ConfigParamRegistry
const
&
options
() {
return
mOptions
; }
34
ServiceRegistryRef
services
() {
return
mServices
; }
35
36
ConfigParamRegistry
&
mOptions
;
37
ServiceRegistryRef
mServices
;
38
};
39
40
}
// namespace o2::framework
41
42
#endif
// O2_FRAMEWORK_INIT_CONTEXT_H_
ServiceRegistryRef.h
o2::framework::ConfigParamRegistry
Definition
ConfigParamRegistry.h:70
o2::framework::InitContext
Definition
InitContext.h:25
o2::framework::InitContext::services
ServiceRegistryRef services()
Definition
InitContext.h:34
o2::framework::InitContext::InitContext
InitContext(ConfigParamRegistry &options, ServiceRegistryRef services)
Definition
InitContext.h:27
o2::framework::InitContext::options
ConfigParamRegistry const & options()
Definition
InitContext.h:33
o2::framework::InitContext::mOptions
ConfigParamRegistry & mOptions
Definition
InitContext.h:36
o2::framework::InitContext::mServices
ServiceRegistryRef mServices
Definition
InitContext.h:37
o2::framework::ServiceRegistryRef
Definition
ServiceRegistryRef.h:21
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
Framework
Core
include
Framework
InitContext.h
Generated on Tue Feb 25 2025 17:03:20 for Project by
1.9.8