CMS 3D CMS Logo

L1TMuonGlobalParamsWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
7 
10 
14 
17 
19 private:
21 public:
22  void analyze(const edm::Event&, const edm::EventSetup&) override;
23 
25  isO2Opayload = pset.getUntrackedParameter<bool>("isO2Opayload", false);
26  }
27  ~L1TMuonGlobalParamsWriter(void) override{}
28 };
29 
32 
33  if( isO2Opayload )
34  evSetup.get<L1TMuonGlobalParamsO2ORcd>().get( handle1 ) ;
35  else
36  evSetup.get<L1TMuonGlobalParamsRcd>().get( handle1 ) ;
37 
38  boost::shared_ptr<L1TMuonGlobalParams> ptr1(new L1TMuonGlobalParams(*(handle1.product ())));
39 
41  if( poolDb.isAvailable() ){
42  cond::Time_t firstSinceTime = poolDb->beginOfTime();
43  poolDb->writeOne(ptr1.get(),firstSinceTime,( isO2Opayload ? "L1TMuonGlobalParamsO2ORcd" : "L1TMuonGlobalParamsRcd"));
44  }
45 
46 }
47 
51 
53 
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:17
int iEvent
Definition: GenABIO.cc:230
unsigned long long Time_t
Definition: Time.h:16
L1TMuonGlobalParamsWriter(const edm::ParameterSet &pset)
HLT enums.
T get() const
Definition: EventSetup.h:63
T const * product() const
Definition: ESHandle.h:86