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 
22 public:
23  void analyze(const edm::Event&, const edm::EventSetup&) override;
24 
26  isO2Opayload = pset.getUntrackedParameter<bool>("isO2Opayload", false);
27  }
29 };
30 
33 
34  if (isO2Opayload)
35  evSetup.get<L1TGlobalPrescalesVetosO2ORcd>().get(handle1);
36  else
37  evSetup.get<L1TGlobalPrescalesVetosRcd>().get(handle1);
38 
39  std::shared_ptr<L1TGlobalPrescalesVetos> ptr1(new L1TGlobalPrescalesVetos(*(handle1.product())));
40 
42  if (poolDb.isAvailable()) {
43  cond::Time_t firstSinceTime = poolDb->beginOfTime();
44  poolDb->writeOneIOV(
45  *ptr1, firstSinceTime, (isO2Opayload ? "L1TGlobalPrescalesVetosO2ORcd" : "L1TGlobalPrescalesVetosRcd"));
46  }
47 }
48 
52 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:224
T const * product() const
Definition: ESHandle.h:86
unsigned long long Time_t
Definition: Time.h:14
T get() const
Definition: EventSetup.h:82
HLT enums.
L1TGlobalPrescalesVetosWriter(const edm::ParameterSet &pset)