Main Page
Namespaces
Classes
Package Documentation
L1TriggerConfig
L1TConfigProducers
src
L1TMuonOverlapParamsOnlineProd.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <fstream>
3
#include <stdexcept>
4
5
#include "
CondTools/L1TriggerExt/interface/L1ConfigOnlineProdBaseExt.h
"
6
#include "
CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h
"
7
#include "
CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h
"
8
#include "
CondFormats/DataRecord/interface/L1TMuonOverlapParamsO2ORcd.h
"
9
10
class
L1TMuonOverlapParamsOnlineProd
:
public
L1ConfigOnlineProdBaseExt
<L1TMuonOverlapParamsO2ORcd,L1TMuonOverlapParams> {
11
private
:
12
public
:
13
virtual
std::shared_ptr<L1TMuonOverlapParams>
newObject
(
const
std::string
& objectKey,
const
L1TMuonOverlapParamsO2ORcd
&
record
)
override
;
14
15
L1TMuonOverlapParamsOnlineProd
(
const
edm::ParameterSet
&);
16
~L1TMuonOverlapParamsOnlineProd
(
void
){}
17
};
18
19
L1TMuonOverlapParamsOnlineProd::L1TMuonOverlapParamsOnlineProd
(
const
edm::ParameterSet
& iConfig) :
L1ConfigOnlineProdBaseExt
<
L1TMuonOverlapParamsO2ORcd
,
L1TMuonOverlapParams
>(iConfig) {}
20
21
std::shared_ptr<L1TMuonOverlapParams>
L1TMuonOverlapParamsOnlineProd::newObject
(
const
std::string
& objectKey,
const
L1TMuonOverlapParamsO2ORcd
&
record
) {
22
23
edm::LogError
(
"L1-O2O"
) <<
"L1TMuonOverlapParams object with key "
<< objectKey <<
" not in ORCON!"
;
24
25
throw
std::runtime_error(
"You are never supposed to get this code running!"
);
26
27
std::shared_ptr< L1TMuonOverlapParams > retval = std::make_shared< L1TMuonOverlapParams >();
28
return
retval;
29
}
30
31
//define this as a plug-in
32
DEFINE_FWK_EVENTSETUP_MODULE
(
L1TMuonOverlapParamsOnlineProd
);
L1TMuonOverlapParams.h
L1ConfigOnlineProdBaseExt
Definition:
L1ConfigOnlineProdBaseExt.h:33
L1TMuonOverlapParamsOnlineProd::~L1TMuonOverlapParamsOnlineProd
~L1TMuonOverlapParamsOnlineProd(void)
Definition:
L1TMuonOverlapParamsOnlineProd.cc:16
record
JetCorrectorParameters::Record record
Definition:
classes.h:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
L1TMuonOverlapParamsO2ORcd.h
L1TMuonOverlapParamsOnlineProd::newObject
virtual std::shared_ptr< L1TMuonOverlapParams > newObject(const std::string &objectKey, const L1TMuonOverlapParamsO2ORcd &record) override
Definition:
L1TMuonOverlapParamsOnlineProd.cc:21
L1TMuonOverlapParamsO2ORcd
Definition:
L1TMuonOverlapParamsO2ORcd.h:25
edm::LogError
Definition:
MessageLogger.h:166
L1TMuonOverlapParams
Definition:
L1TMuonOverlapParams.h:14
L1TMuonOverlapParamsOnlineProd::L1TMuonOverlapParamsOnlineProd
L1TMuonOverlapParamsOnlineProd(const edm::ParameterSet &)
Definition:
L1TMuonOverlapParamsOnlineProd.cc:19
L1TMuonOverlapParamsOnlineProd
Definition:
L1TMuonOverlapParamsOnlineProd.cc:10
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
edm::ParameterSet
Definition:
ParameterSet.h:36
L1TMuonOverlapParamsRcd.h
L1ConfigOnlineProdBaseExt.h
Generated for CMSSW Reference Manual by
1.8.11