HeterogeneousCore
SonicTriton
interface
TritonOneEDAnalyzer.h
Go to the documentation of this file.
1
#ifndef HeterogeneousCore_SonicTriton_TritonOneEDAnalyzer
2
#define HeterogeneousCore_SonicTriton_TritonOneEDAnalyzer
3
4
#include "
HeterogeneousCore/SonicCore/interface/SonicOneEDAnalyzer.h
"
5
#include "
HeterogeneousCore/SonicTriton/interface/TritonClient.h
"
6
#include "
FWCore/ParameterSet/interface/FileInPath.h
"
7
#include "
FWCore/ServiceRegistry/interface/Service.h
"
8
#include "
HeterogeneousCore/SonicTriton/interface/TritonService.h
"
9
10
#include <string>
11
12
template
<
typename
... Capabilities>
13
class
TritonOneEDAnalyzer
:
public
SonicOneEDAnalyzer
<TritonClient, Capabilities...> {
14
public
:
15
TritonOneEDAnalyzer
(
edm::ParameterSet
const
&
cfg
,
const
std::string
& debugName)
16
:
SonicOneEDAnalyzer
<
TritonClient
, Capabilities...>(
17
cfg
, debugName,
cfg
.
getParameterSet
(
"Client"
).getUntrackedParameter<
bool
>(
"verbose"
)) {
18
edm::Service<TritonService>
ts;
19
const
auto
& clientPset =
cfg
.getParameterSet(
"Client"
);
20
ts->
addModel
(clientPset.getParameter<
std::string
>(
"modelName"
),
21
clientPset.getParameter<
edm::FileInPath
>(
"modelConfigPath"
).
fullPath
());
22
}
23
};
24
25
#endif
SonicOneEDAnalyzer.h
electrons_cff.bool
bool
Definition:
electrons_cff.py:366
TritonClient.h
edm::FileInPath
Definition:
FileInPath.h:61
Service.h
SonicOneEDAnalyzer
Definition:
SonicOneEDAnalyzer.h:18
TritonOneEDAnalyzer::TritonOneEDAnalyzer
TritonOneEDAnalyzer(edm::ParameterSet const &cfg, const std::string &debugName)
Definition:
TritonOneEDAnalyzer.h:15
TritonOneEDAnalyzer
Definition:
TritonOneEDAnalyzer.h:13
TritonService.h
FileInPath.h
edm::ParameterSet
Definition:
ParameterSet.h:47
TritonService::addModel
void addModel(const std::string &modelName, const std::string &path)
Definition:
TritonService.cc:141
edm::Service
Definition:
Service.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
looper.cfg
cfg
Definition:
looper.py:296
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition:
ParameterSet.cc:862
TritonClient
Definition:
TritonClient.h:19
edm::FileInPath::fullPath
std::string fullPath() const
Definition:
FileInPath.cc:161
Generated for CMSSW Reference Manual by
1.8.16