CMS 3D CMS Logo

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