CMS 3D CMS Logo

L1MenuWriter.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
15 
18 
20 private:
22 
23 public:
24  void analyze(const edm::Event&, const edm::EventSetup&) override;
27 
29  : edm::one::EDAnalyzer<>(),
32  isO2Opayload = pset.getUntrackedParameter<bool>("isO2Opayload", false);
33  }
34  ~L1MenuWriter(void) override = default;
35 };
36 
39 
40  if (isO2Opayload)
41  handle1 = evSetup.getHandle(l1GtMenuO2OToken_);
42  else
43  handle1 = evSetup.getHandle(l1GtMenuToken_);
44 
45  std::shared_ptr<L1TUtmTriggerMenu> ptr1(new L1TUtmTriggerMenu(*(handle1.product())));
46 
48  if (poolDb.isAvailable()) {
49  cond::Time_t firstSinceTime = poolDb->beginOfTime();
50  poolDb->writeOneIOV(*ptr1, firstSinceTime, (isO2Opayload ? "L1TUtmTriggerMenuO2ORcd" : "L1TUtmTriggerMenuRcd"));
51  }
52 }
53 
57 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
L1MenuWriter(const edm::ParameterSet &pset)
Definition: L1MenuWriter.cc:28
~L1MenuWriter(void) override=default
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > l1GtMenuToken_
Definition: L1MenuWriter.cc:25
int iEvent
Definition: GenABIO.cc:224
T const * product() const
Definition: ESHandle.h:86
unsigned long long Time_t
Definition: Time.h:14
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1MenuWriter.cc:37
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuO2ORcd > l1GtMenuO2OToken_
Definition: L1MenuWriter.cc:26
HLT enums.