CMS 3D CMS Logo

LHCInfoPerLSAnalyzer.cc
Go to the documentation of this file.
7 
10 
11 #include <memory>
12 #include <iostream>
13 #include <cassert>
14 
16 public:
19 
20 private:
21  void beginJob() override {}
22  void analyze(const edm::Event&, const edm::EventSetup&) override;
23  void endJob() override {}
24 
26 
28 };
29 
31  // get InfoPerLS
33  const LHCInfoPerLS& infoPerLS = iSetup.getData(tokenInfoPerLS_);
34 
35  assert(infoPerLS.fillNumber() == 7066);
36  assert(infoPerLS.lumiSection() == 1);
37  assert(infoPerLS.crossingAngleX() == 170);
38  assert(infoPerLS.crossingAngleY() == 170);
39  assert(infoPerLS.betaStarX() == 11);
40  assert(infoPerLS.betaStarY() == 11);
41  assert(infoPerLS.runNumber() == 301765);
42  edm::LogInfo("LHCInfoPerLSAnalyzer") << "LHCInfoPerLS retrieved:\n" << infoPerLS;
43 }
44 
edm::ESWatcher< LHCInfoPerLSRcd > infoPerLSWatcher_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
assert(be >=bs)
edm::ESGetToken< LHCInfoPerLS, LHCInfoPerLSRcd > tokenInfoPerLS_
void analyze(const edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Log< level::Info, false > LogInfo
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
LHCInfoPerLSAnalyzer(const edm::ParameterSet &)