test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TMuonEndcapWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
14 
17 
19 public:
20  virtual void analyze(const edm::Event&, const edm::EventSetup&);
21 
22  explicit L1TMuonEndcapWriter(const edm::ParameterSet&) : edm::EDAnalyzer(){}
23  virtual ~L1TMuonEndcapWriter(void){}
24 };
25 
27 
29  evSetup.get<L1TMuonEndcapParamsRcd>().get( handle1 ) ;
30  boost::shared_ptr<L1TMuonEndCapParams> ptr1(new L1TMuonEndCapParams(*(handle1.product ())));
31 
33  if( poolDb.isAvailable() ){
34  cond::Time_t firstSinceTime = poolDb->beginOfTime();
35  poolDb->writeOne(ptr1.get(),firstSinceTime,"L1TMuonEndcapParamsRcd");
36  }
37 
38 }
39 
43 
45 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
L1TMuonEndcapWriter(const edm::ParameterSet &)
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
T const * product() const
Definition: ESHandle.h:86
virtual void analyze(const edm::Event &, const edm::EventSetup &)