CMS 3D CMS Logo

EcalMustacheSCParametersMaker.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: RecoEcal/EcalMustacheSCParametersMaker
4 // Class: EcalMustacheSCParametersMaker
5 //
13 //
14 // Original Author: Thomas Reis
15 // Created: Thu, 05 Nov 2020 09:18:19 GMT
16 //
17 //
18 
19 // system include files
20 #include <memory>
21 
22 // user include files
25 
30 
36 
38 public:
40 
41  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
42 
43 private:
44  void analyze(const edm::Event&, const edm::EventSetup&) override;
45 
47 };
48 
51 
54 
56  if (poolDbService.isAvailable()) {
57  poolDbService->writeOne(esParamsHandle_.product(), poolDbService->currentTime(), "EcalMustacheSCParametersRcd");
58  } else {
59  throw cms::Exception("PoolDBService") << "No PoolDBService available.";
60  }
61 }
62 
65  descriptions.addDefault(desc);
66 }
67 
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
EDAnalyzer.h
EcalMustacheSCParametersMaker::EcalMustacheSCParametersMaker
EcalMustacheSCParametersMaker(const edm::ParameterSet &)
Definition: EcalMustacheSCParametersMaker.cc:49
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
EcalMustacheSCParameters
Definition: EcalMustacheSCParameters.h:13
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
EcalMustacheSCParametersRcd.h
MakerMacros.h
PoolDBOutputService.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
edm::ESHandle
Definition: DTSurvey.h:22
EcalMustacheSCParametersMaker::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: EcalMustacheSCParametersMaker.cc:52
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
EcalMustacheSCParametersRcd
Definition: EcalMustacheSCParametersRcd.h:23
EcalMustacheSCParametersMaker::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: EcalMustacheSCParametersMaker.cc:63
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
EcalMustacheSCParameters.h
edm::Service< cond::service::PoolDBOutputService >
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
edm::EventSetup
Definition: EventSetup.h:58
edm::ESGetToken< EcalMustacheSCParameters, EcalMustacheSCParametersRcd >
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
EcalMustacheSCParametersMaker
Definition: EcalMustacheSCParametersMaker.cc:37
Frameworkfwd.h
Exception
Definition: hltDiff.cc:245
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition: PoolDBOutputService.h:63
EventSetup.h
Exception.h
ParameterSet.h
EcalMustacheSCParametersMaker::parametersToken_
edm::ESGetToken< EcalMustacheSCParameters, EcalMustacheSCParametersRcd > parametersToken_
Definition: EcalMustacheSCParametersMaker.cc:46
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
edm::Event
Definition: Event.h:73
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition: PoolDBOutputService.cc:217