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 // $Id: RPCObjectKeysOnlineProd.cc,v 1.4 2010/02/26 16:06:38 michals Exp $
17 //
18 //
19 
20 
21 // system include files
22 
23 // user include files
25 
27 
28 //
29 // class declaration
30 //
31 
33  public:
36 
37  virtual void fillObjectKeys( ReturnType pL1TriggerKey ) ;
38  private:
39  // ----------member data ---------------------------
44 };
45 
46 //
47 // constants, enums and typedefs
48 //
49 
50 //
51 // static data member definitions
52 //
53 
54 //
55 // constructors and destructor
56 //
58  : L1ObjectKeysOnlineProdBase( iConfig ),
59  m_enableL1RPCConfig( iConfig.getParameter< bool >( "enableL1RPCConfig" ) ),
60  m_enableL1RPCConeDefinition( iConfig.getParameter< bool >( "enableL1RPCConeDefinition" ) ),
61  m_enableL1RPCHsbConfig( iConfig.getParameter< bool >( "enableL1RPCHsbConfig" ) ),
62  m_enableL1RPCBxOrConfig( iConfig.getParameter< bool >( "enableL1RPCBxOrConfig" ) )
63 {}
64 
65 
67 {
68 
69  // do anything here that needs to be done at desctruction time
70  // (e.g. close files, deallocate resources etc.)
71 
72 }
73 
74 
75 //
76 // member functions
77 //
78 
79 // ------------ method called to produce the data ------------
80 void
82 {
83  std::string rpcKey = pL1TriggerKey->subsystemKey( L1TriggerKey::kRPC ) ;
84 
85  if( !rpcKey.empty() )
86  {
88  {
89  pL1TriggerKey->add( "L1RPCConfigRcd",
90  "L1RPCConfig",
91  rpcKey ) ;
92  }
94  {
95  pL1TriggerKey->add( "L1RPCConeDefinitionRcd",
96  "L1RPCConeDefinition",
97  rpcKey ) ;
98  }
100  {
101  pL1TriggerKey->add( "L1RPCHsbConfigRcd",
102  "L1RPCHsbConfig",
103  rpcKey ) ;
104  }
106  {
107  pL1TriggerKey->add( "L1RPCBxOrConfigRcd",
108  "L1RPCBxOrConfig",
109  rpcKey ) ;
110  }
111 
112  }
113 }
114 
115 //define this as a plug-in
RPCObjectKeysOnlineProd(const edm::ParameterSet &)
virtual void fillObjectKeys(ReturnType pL1TriggerKey)
boost::shared_ptr< L1TriggerKey > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:56