CMS 3D CMS Logo

L1TGlobalPrescalesVetosWriter.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  }
28 };
29 
32 
33  if( isO2Opayload )
34  evSetup.get<L1TGlobalPrescalesVetosO2ORcd>().get( handle1 ) ;
35  else
36  evSetup.get<L1TGlobalPrescalesVetosRcd>().get( handle1 ) ;
37 
38  boost::shared_ptr<L1TGlobalPrescalesVetos> ptr1(new L1TGlobalPrescalesVetos(*(handle1.product ())));
39 
41  if( poolDb.isAvailable() ){
42  cond::Time_t firstSinceTime = poolDb->beginOfTime();
43  poolDb->writeOne(ptr1.get(),firstSinceTime,( isO2Opayload ? "L1TGlobalPrescalesVetosO2ORcd" : "L1TGlobalPrescalesVetosRcd"));
44  }
45 
46 }
47 
51 
53 
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void analyze(const edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:230
unsigned long long Time_t
Definition: Time.h:16
const T & get() const
Definition: EventSetup.h:59
HLT enums.
T const * product() const
Definition: ESHandle.h:86
L1TGlobalPrescalesVetosWriter(const edm::ParameterSet &pset)