CMS 3D CMS Logo

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 fills 'descriptions' with the allowed parameters for the module ------------
67 void
69  //The following says we do not know what parameters are allowed so do no validation
70  // Please change this to state exactly what you do use, even if it is no parameters
72  desc.setUnknown();
73  descriptions.addDefault(desc);
74 }
75 
76 // ------------ method called once each job just after ending the event loop ------------
77 void
79 {
82  config->read(cfi_);
83  poolDbService->writeOne<MixingModuleConfig>(config,
84  poolDbService->currentTime(),
85  "MixingRcd");
86 }
edm::ParameterSet cfi_
Definition: Mixing2DB.h:52
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Mixing2DB.cc:68
void endJob() override
Definition: Mixing2DB.cc:78
Definition: config.py:1
config
Definition: looper.py:287
int iEvent
Definition: GenABIO.cc:230
void addDefault(ParameterSetDescription const &psetDescription)
~Mixing2DB() override
Definition: Mixing2DB.cc:27
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: Mixing2DB.cc:42
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:475
const T & get() const
Definition: EventSetup.h:59
void beginJob() override
Definition: Mixing2DB.cc:62
HLT enums.
void read(edm::ParameterSet &pset)