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...>(
cfg
, debugName) {
17
edm::Service<TritonService>
ts;
18
const
auto
& clientPset =
cfg
.getParameterSet(
"Client"
);
19
ts->
addModel
(clientPset.getParameter<
std::string
>(
"modelName"
),
20
clientPset.getParameter<
edm::FileInPath
>(
"modelConfigPath"
).
fullPath
());
21
}
22
};
23
24
#endif
SonicOneEDAnalyzer.h
TritonClient.h
FileInPath.h
edm::FileInPath
Definition:
FileInPath.h:64
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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
TritonService::addModel
void addModel(const std::string &modelName, const std::string &path)
Definition:
TritonService.cc:124
edm::Service
Definition:
Service.h:30
looper.cfg
cfg
Definition:
looper.py:297
TritonClient
Definition:
TritonClient.h:18
edm::FileInPath::fullPath
std::string fullPath() const
Definition:
FileInPath.cc:161
Generated for CMSSW Reference Manual by
1.8.16