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->writeOne<MixingModuleConfig>(config, poolDbService->currentTime(), "MixingRcd");
54 }
MixingModuleConfig.h
Mixing2DB::Mixing2DB
Mixing2DB(const edm::ParameterSet &)
Definition: Mixing2DB.cc:19
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SimBeamSpotObjects.h
Mixing2DB::beginJob
void beginJob() override
Definition: Mixing2DB.cc:37
config
Definition: config.py:1
PoolDBOutputService.h
Service.h
submitPVResolutionJobs.config
config
parse the configuration file
Definition: submitPVResolutionJobs.py:281
Mixing2DB::cfi_
edm::ParameterSet cfi_
Definition: Mixing2DB.h:49
Mixing2DB::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Mixing2DB.cc:40
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
Mixing2DB::endJob
void endJob() override
Definition: Mixing2DB.cc:49
edm::ParameterSet
Definition: ParameterSet.h:47
Mixing2DB::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: Mixing2DB.cc:34
MixingModuleConfig
Definition: MixingModuleConfig.h:71
edm::Service< cond::service::PoolDBOutputService >
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:58
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition: PoolDBOutputService.h:63
Mixing2DB::~Mixing2DB
~Mixing2DB() override
Definition: Mixing2DB.cc:24
edm::Event
Definition: Event.h:73
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
Mixing2DB.h
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition: PoolDBOutputService.cc:217