CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Mixing2DB.cc
Go to the documentation of this file.
1 #include "Mixing2DB.h"
5 
7 
8 
9 //
10 // constants, enums and typedefs
11 //
12 
13 //
14 // static data member definitions
15 //
16 
17 //
18 // constructors and destructor
19 //
21 {
22  //cfi_=iConfig.getParameter<edm::ParameterSet>("input");
23  cfi_=iConfig;
24 }
25 
26 
28 {
29 
30  // do anything here that needs to be done at desctruction time
31  // (e.g. close files, deallocate resources etc.)
32 
33 }
34 
35 
36 //
37 // member functions
38 //
39 
40 // ------------ method called for each event ------------
41 void
43 {
44  using namespace edm;
45 
46 
47 
48 #ifdef THIS_IS_AN_EVENT_EXAMPLE
50  iEvent.getByLabel("example",pIn);
51 #endif
52 
53 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
54  ESHandle<SetupData> pSetup;
55  iSetup.get<SetupRecord>().get(pSetup);
56 #endif
57 }
58 
59 
60 // ------------ method called once each job just before starting event loop ------------
61 void
63 {
64 }
65 
66 // ------------ method called when starting to processes a run ------------
67 void
69 {
70 }
71 
72 // ------------ method called when ending the processing of a run ------------
73 void
75 {
76 }
77 
78 // ------------ method called when starting to processes a luminosity block ------------
79 void
81 {
82 }
83 
84 // ------------ method called when ending the processing of a luminosity block ------------
85 void
87 {
88 }
89 
90 // ------------ method fills 'descriptions' with the allowed parameters for the module ------------
91 void
93  //The following says we do not know what parameters are allowed so do no validation
94  // Please change this to state exactly what you do use, even if it is no parameters
96  desc.setUnknown();
97  descriptions.addDefault(desc);
98 }
99 
100 // ------------ method called once each job just after ending the event loop ------------
101 void
103 {
106  config->read(cfi_);
107 
108  poolDbService->writeOne<MixingModuleConfig>(config,
109  poolDbService->currentTime(),
110  "MixingRcd");
111 }
112 
113 
edm::ParameterSet cfi_
Definition: Mixing2DB.h:57
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Mixing2DB.cc:92
virtual void endJob()
Definition: Mixing2DB.cc:102
~Mixing2DB()
Definition: Mixing2DB.cc:27
int iEvent
Definition: GenABIO.cc:243
void addDefault(ParameterSetDescription const &psetDescription)
virtual void beginJob()
Definition: Mixing2DB.cc:62
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
Mixing2DB(const edm::ParameterSet &)
Definition: Mixing2DB.cc:20
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
virtual void endRun(edm::Run const &, edm::EventSetup const &)
Definition: Mixing2DB.cc:74
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: Mixing2DB.cc:86
const T & get() const
Definition: EventSetup.h:55
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
Definition: Mixing2DB.cc:68
void read(edm::ParameterSet &pset)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: Mixing2DB.cc:80
Definition: Run.h:33
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: Mixing2DB.cc:42