CMS 3D CMS Logo

SiStripApvSimulationParametersBuilder.cc
Go to the documentation of this file.
6 
8 public:
11 
12  void analyze(const edm::Event&, const edm::EventSetup&) override;
13 
14 private:
16 };
17 
19  // copy; DB service needs non-const pointer but does not take ownership
20  auto obj = std::make_unique<SiStripApvSimulationParameters>(evtSetup.getData(m_parametersToken));
21 
23  if (mydbservice.isAvailable()) {
24  if (mydbservice->isNewTagRequest("SiStripApvSimulationParametersRcd")) {
26  *obj, mydbservice->beginOfTime(), "SiStripApvSimulationParametersRcd");
27  } else {
28  mydbservice->appendOneIOV<SiStripApvSimulationParameters>(
29  *obj, mydbservice->currentTime(), "SiStripApvSimulationParametersRcd");
30  }
31  } else {
32  edm::LogError("SiStripApvSimulationParametersBuilder") << "Service is unavailable";
33  }
34 }
35 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Log< level::Error, false > LogError
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
const edm::ESGetToken< SiStripApvSimulationParameters, SiStripApvSimulationParametersRcd > m_parametersToken
void analyze(const edm::Event &, const edm::EventSetup &) override
bool getData(T &iHolder) const
Definition: EventSetup.h:122
SiStripApvSimulationParametersBuilder(const edm::ParameterSet &iConfig)