CMS 3D CMS Logo

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