CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TGlobalPrescalesVetosWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
7 
10 
13 
16 
18 public:
19  virtual void analyze(const edm::Event&, const edm::EventSetup&);
20 
23 };
24 
27  evSetup.get<L1TGlobalPrescalesVetosO2ORcd>().get( handle1 ) ;
28  boost::shared_ptr<L1TGlobalPrescalesVetos> ptr1(new L1TGlobalPrescalesVetos(*(handle1.product ())));
29 
31  if( poolDb.isAvailable() ){
32  cond::Time_t firstSinceTime = poolDb->beginOfTime();
33  poolDb->writeOne(ptr1.get(),firstSinceTime,"L1TGlobalPrescalesVetosO2ORcd");
34  }
35 
36 }
37 
41 
43 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void analyze(const edm::Event &, const edm::EventSetup &)
int iEvent
Definition: GenABIO.cc:230
unsigned long long Time_t
Definition: Time.h:16
L1TGlobalPrescalesVetosWriter(const edm::ParameterSet &)
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86