CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TCaloConfigESProducer.cc
Go to the documentation of this file.
1 
10 
11 // system include files
12 #include <memory>
13 #include "boost/shared_ptr.hpp"
14 #include <iostream>
15 #include <fstream>
16 
17 // user include files
23 
25 
29 
30 using namespace std;
31 
32 //
33 // class declaration
34 //
35 
36 using namespace l1t;
37 
39 public:
42 
43  typedef boost::shared_ptr<CaloConfig> ReturnType;
44 
45  ReturnType produce(const L1TCaloConfigRcd&);
46 
47 private:
50 };
51 
52 //
53 // constants, enums and typedefs
54 //
55 
56 //
57 // static data member definitions
58 //
59 
60 //
61 // constructors and destructor
62 //
64 {
65  //the following line is needed to tell the framework what
66  // data is being produced
67  setWhatProduced(this);
68  //setWhatProduced(this, conf.getParameter<std::string>("label"));
69 
70  std::string l1epoch = conf.getParameter<string>("l1Epoch");
71  unsigned fwv = conf.getParameter<unsigned>("fwVersionLayer2");
72  CaloConfigHelper h(m_params, fwv, l1epoch);
73 }
74 
75 
77 {
78 
79  // do anything here that needs to be done at desctruction time
80  // (e.g. close files, deallocate resources etc.)
81 
82 }
83 
84 
85 //
86 // member functions
87 //
88 
89 // ------------ method called to produce the data ------------
92 {
93  using namespace edm::es;
94  boost::shared_ptr<CaloConfig> pCaloConfig ;
95  pCaloConfig = boost::shared_ptr< CaloConfig >(new CaloConfig(m_params));
96  return pCaloConfig;
97 }
98 
99 
100 
101 //define this as a plug-in
T getParameter(std::string const &) const
boost::shared_ptr< CaloConfig > ReturnType
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
tuple conf
Definition: dbtoconf.py:185
ReturnType produce(const L1TCaloConfigRcd &)
L1TCaloConfigESProducer(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60