CMS 3D CMS Logo

Mixing2DB.cc
Go to the documentation of this file.
1 #include "Mixing2DB.h"
5 
7 
8 //
9 // constants, enums and typedefs
10 //
11 
12 //
13 // static data member definitions
14 //
15 
16 //
17 // constructors and destructor
18 //
20  //cfi_=iConfig.getParameter<edm::ParameterSet>("input");
21  cfi_ = iConfig;
22 }
23 
25  // do anything here that needs to be done at desctruction time
26  // (e.g. close files, deallocate resources etc.)
27 }
28 
29 //
30 // member functions
31 //
32 
33 // ------------ method called for each event ------------
34 void Mixing2DB::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {}
35 
36 // ------------ method called once each job just before starting event loop ------------
38 
39 // ------------ method fills 'descriptions' with the allowed parameters for the module ------------
41  //The following says we do not know what parameters are allowed so do no validation
42  // Please change this to state exactly what you do use, even if it is no parameters
44  desc.setUnknown();
45  descriptions.addDefault(desc);
46 }
47 
48 // ------------ method called once each job just after ending the event loop ------------
52  config.read(cfi_);
53  poolDbService->writeOneIOV(config, poolDbService->currentTime(), "MixingRcd");
54 }
edm::ParameterSet cfi_
Definition: Mixing2DB.h:49
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Mixing2DB.cc:40
void endJob() override
Definition: Mixing2DB.cc:49
dictionary config
Read in AllInOne config in JSON format.
Definition: DMR_cfg.py:21
Definition: config.py:1
int iEvent
Definition: GenABIO.cc:224
void addDefault(ParameterSetDescription const &psetDescription)
~Mixing2DB() override
Definition: Mixing2DB.cc:24
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: Mixing2DB.cc:34
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
Mixing2DB(const edm::ParameterSet &)
Definition: Mixing2DB.cc:19
void beginJob() override
Definition: Mixing2DB.cc:37