Main Page
Namespaces
Classes
Package Documentation
L1TriggerConfig
RPCTriggerConfig
src
L1RPCBxOrConfigOnlineProd.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: L1RPCBxOrConfigOnlineProd
4
// Class: L1RPCBxOrConfigOnlineProd
5
//
14
// system include files
15
16
// user include files
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
19
#include "
CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h
"
20
21
#include "
CondFormats/L1TObjects/interface/L1RPCBxOrConfig.h
"
22
#include "
CondFormats/DataRecord/interface/L1RPCBxOrConfigRcd.h
"
23
24
//
25
// class declaration
26
//
27
28
class
L1RPCBxOrConfigOnlineProd
:
public
L1ConfigOnlineProdBase
< L1RPCBxOrConfigRcd,
29
L1RPCBxOrConfig > {
30
public
:
31
L1RPCBxOrConfigOnlineProd
(
const
edm::ParameterSet
&);
32
~L1RPCBxOrConfigOnlineProd
()
override
;
33
34
std::unique_ptr< L1RPCBxOrConfig >
newObject
(
35
const
std::string
& objectKey )
override
;
36
37
private
:
38
// ----------member data ---------------------------
39
};
40
41
//
42
// constants, enums and typedefs
43
//
44
45
//
46
// static data member definitions
47
//
48
49
//
50
// constructors and destructor
51
//
52
L1RPCBxOrConfigOnlineProd::L1RPCBxOrConfigOnlineProd
(
const
edm::ParameterSet
& iConfig)
53
:
L1ConfigOnlineProdBase
<
L1RPCBxOrConfigRcd
,
L1RPCBxOrConfig
>( iConfig )
54
{
55
//the following line is needed to tell the framework what
56
// data is being produced
57
58
//now do what ever other initialization is needed
59
}
60
61
62
L1RPCBxOrConfigOnlineProd::~L1RPCBxOrConfigOnlineProd
()
63
{
64
65
// do anything here that needs to be done at desctruction time
66
// (e.g. close files, deallocate resources etc.)
67
68
}
69
70
std::unique_ptr< L1RPCBxOrConfig >
71
L1RPCBxOrConfigOnlineProd::newObject
(
const
std::string
& objectKey )
72
{
73
edm::LogError
(
"L1-O2O"
) <<
"L1RPCBxOrConfig object with key "
74
<< objectKey <<
" not in ORCON!"
;
75
auto
pBxOrConfig = std::make_unique< L1RPCBxOrConfig >();
76
pBxOrConfig->setFirstBX(0);
77
pBxOrConfig->setLastBX(0);
78
return
pBxOrConfig;
79
}
80
81
//
82
// member functions
83
//
84
85
86
// ------------ method called to produce the data ------------
87
88
89
//define this as a plug-in
90
DEFINE_FWK_EVENTSETUP_MODULE
(
L1RPCBxOrConfigOnlineProd
);
L1RPCBxOrConfigOnlineProd
Definition:
L1RPCBxOrConfigOnlineProd.cc:28
MessageLogger.h
L1ConfigOnlineProdBase.h
L1RPCBxOrConfigOnlineProd::~L1RPCBxOrConfigOnlineProd
~L1RPCBxOrConfigOnlineProd() override
Definition:
L1RPCBxOrConfigOnlineProd.cc:62
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
L1RPCBxOrConfigOnlineProd::L1RPCBxOrConfigOnlineProd
L1RPCBxOrConfigOnlineProd(const edm::ParameterSet &)
Definition:
L1RPCBxOrConfigOnlineProd.cc:52
L1RPCBxOrConfig.h
L1RPCBxOrConfigRcd.h
edm::LogError
Definition:
MessageLogger.h:183
L1ConfigOnlineProdBase
Definition:
L1ConfigOnlineProdBase.h:52
L1RPCBxOrConfigOnlineProd::newObject
std::unique_ptr< L1RPCBxOrConfig > newObject(const std::string &objectKey) override
Definition:
L1RPCBxOrConfigOnlineProd.cc:71
L1RPCBxOrConfig
Definition:
L1RPCBxOrConfig.h:28
L1RPCBxOrConfigRcd
Definition:
L1RPCBxOrConfigRcd.h:23
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
edm::ParameterSet
Definition:
ParameterSet.h:36
Generated for CMSSW Reference Manual by
1.8.11