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