CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1TMuonEndCapParamsWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
15 
18 
20 private:
22 
23 public:
24  void analyze(const edm::Event&, const edm::EventSetup&) override;
25 
27  isO2Opayload = pset.getUntrackedParameter<bool>("isO2Opayload", false);
28  }
29  ~L1TMuonEndCapParamsWriter(void) override {}
30 };
31 
34 
35  if (isO2Opayload)
36  evSetup.get<L1TMuonEndCapParamsO2ORcd>().get(handle1);
37  else
38  evSetup.get<L1TMuonEndCapParamsRcd>().get(handle1);
39 
40  std::shared_ptr<L1TMuonEndCapParams> ptr1(new L1TMuonEndCapParams(*(handle1.product())));
41 
43  if (poolDb.isAvailable()) {
44  cond::Time_t firstSinceTime = poolDb->beginOfTime();
45  poolDb->writeOneIOV(*ptr1, firstSinceTime, (isO2Opayload ? "L1TMuonEndCapParamsO2ORcd" : "L1TMuonEndCapParamsRcd"));
46  }
47 }
48 
52 
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
int iEvent
Definition: GenABIO.cc:224
unsigned long long Time_t
Definition: Time.h:14
T const * product() const
Definition: ESHandle.h:86
T get() const
Definition: EventSetup.h:88
L1TMuonEndCapParamsWriter(const edm::ParameterSet &pset)