CMS 3D CMS Logo

L1TMuonEndcapWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
15 
18 
20 private:
22 public:
23  virtual void analyze(const edm::Event&, const edm::EventSetup&);
24 
26  isO2Opayload = pset.getUntrackedParameter<bool>("isO2Opayload", false);
27  }
28  virtual ~L1TMuonEndcapWriter(void){}
29 };
30 
33 
34  if( isO2Opayload )
35  evSetup.get<L1TMuonEndcapParamsO2ORcd>().get( handle1 ) ;
36  else
37  evSetup.get<L1TMuonEndcapParamsRcd>().get( handle1 ) ;
38 
39  boost::shared_ptr<L1TMuonEndCapParams> ptr1(new L1TMuonEndCapParams(*(handle1.product ())));
40 
42  if( poolDb.isAvailable() ){
43  cond::Time_t firstSinceTime = poolDb->beginOfTime();
44  poolDb->writeOne(ptr1.get(),firstSinceTime,( isO2Opayload ? "L1TMuonEndcapParamsO2ORcd" : "L1TMuonEndcapParamsRcd"));
45  }
46 
47 }
48 
52 
54 
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
virtual ~L1TMuonEndcapWriter(void)
const T & get() const
Definition: EventSetup.h:56
virtual void analyze(const edm::Event &, const edm::EventSetup &)
HLT enums.
T const * product() const
Definition: ESHandle.h:86
L1TMuonEndcapWriter(const edm::ParameterSet &pset)