test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCObjectKeysOnlineProd.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L1TriggerConfig
4 // Class: RPCObjectKeysOnlineProd
5 //
13 //
14 // Original Author: Werner Man-Li Sun
15 // Created: Thu Oct 2 19:35:26 CEST 2008
16 //
17 //
18 
19 
20 // system include files
21 
22 // user include files
24 
26 
27 //
28 // class declaration
29 //
30 
32  public:
35 
36  virtual void fillObjectKeys( ReturnType pL1TriggerKey ) override ;
37  private:
38  // ----------member data ---------------------------
43 };
44 
45 //
46 // constants, enums and typedefs
47 //
48 
49 //
50 // static data member definitions
51 //
52 
53 //
54 // constructors and destructor
55 //
57  : L1ObjectKeysOnlineProdBase( iConfig ),
58  m_enableL1RPCConfig( iConfig.getParameter< bool >( "enableL1RPCConfig" ) ),
59  m_enableL1RPCConeDefinition( iConfig.getParameter< bool >( "enableL1RPCConeDefinition" ) ),
60  m_enableL1RPCHsbConfig( iConfig.getParameter< bool >( "enableL1RPCHsbConfig" ) ),
61  m_enableL1RPCBxOrConfig( iConfig.getParameter< bool >( "enableL1RPCBxOrConfig" ) )
62 {}
63 
64 
66 {
67 
68  // do anything here that needs to be done at desctruction time
69  // (e.g. close files, deallocate resources etc.)
70 
71 }
72 
73 
74 //
75 // member functions
76 //
77 
78 // ------------ method called to produce the data ------------
79 void
81 {
82  std::string rpcKey = pL1TriggerKey->subsystemKey( L1TriggerKey::kRPC ) ;
83 
84  if( !rpcKey.empty() )
85  {
87  {
88  pL1TriggerKey->add( "L1RPCConfigRcd",
89  "L1RPCConfig",
90  rpcKey ) ;
91  }
93  {
94  pL1TriggerKey->add( "L1RPCConeDefinitionRcd",
95  "L1RPCConeDefinition",
96  rpcKey ) ;
97  }
99  {
100  pL1TriggerKey->add( "L1RPCHsbConfigRcd",
101  "L1RPCHsbConfig",
102  rpcKey ) ;
103  }
105  {
106  pL1TriggerKey->add( "L1RPCBxOrConfigRcd",
107  "L1RPCBxOrConfig",
108  rpcKey ) ;
109  }
110 
111  }
112 }
113 
114 //define this as a plug-in
RPCObjectKeysOnlineProd(const edm::ParameterSet &)
virtual void fillObjectKeys(ReturnType pL1TriggerKey) override
boost::shared_ptr< L1TriggerKey > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60