CMS 3D CMS Logo

L1TMuonOverlapParamsWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
14 
17 
19 public:
20  void analyze(const edm::Event&, const edm::EventSetup&) override;
21 
23  ~L1TMuonOverlapParamsWriter(void) override {}
24 };
25 
28  evSetup.get<L1TMuonOverlapParamsRcd>().get(handle1);
29  std::shared_ptr<L1TMuonOverlapParams> ptr1(new L1TMuonOverlapParams(*(handle1.product())));
30 
32  if (poolDb.isAvailable()) {
33  cond::Time_t firstSinceTime = poolDb->beginOfTime();
34  poolDb->writeOne(ptr1.get(), firstSinceTime, "L1TMuonOverlapPatternParamsRcd");
35  }
36 }
37 
41 
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
L1TMuonOverlapParamsRcd
Definition: L1TMuonOverlapParamsRcd.h:23
L1TMuonOverlapParamsWriter::L1TMuonOverlapParamsWriter
L1TMuonOverlapParamsWriter(const edm::ParameterSet &)
Definition: L1TMuonOverlapParamsWriter.cc:22
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition: PoolDBOutputService.cc:215
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::EDAnalyzer::EDAnalyzer
EDAnalyzer()
Definition: EDAnalyzer.cc:27
EDAnalyzer.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
L1TMuonOverlapParamsWriter
Definition: L1TMuonOverlapParamsWriter.cc:18
MakerMacros.h
L1TMuonOverlapParamsWriter::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1TMuonOverlapParamsWriter.cc:26
PoolDBOutputService.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
edm::ESHandle
Definition: DTSurvey.h:22
L1TMuonOverlapParams
Definition: L1TMuonOverlapParams.h:14
L1TMuonOverlapParams.h
L1TMuonOverlapParamsWriter::~L1TMuonOverlapParamsWriter
~L1TMuonOverlapParamsWriter(void) override
Definition: L1TMuonOverlapParamsWriter.cc:23
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
cond::Time_t
unsigned long long Time_t
Definition: Time.h:14
ModuleDef.h
edm::Service< cond::service::PoolDBOutputService >
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
ModuleFactory.h
EventSetup.h
L1TMuonOverlapParamsRcd.h
ParameterSet.h
edm::Event
Definition: Event.h:73