CMS 3D CMS Logo

PPSTimingCalibrationLUTAnalyzer.cc
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of TOTEM/PPS offline software.
4  * Author:
5  * Laurent Forthomme (laurent.forthomme@cern.ch)
6  * Christopher Misan
7  *
8  ****************************************************************************/
9 
16 
19 
21 
24 
25 #include <memory>
26 
28 public:
31 
32 private:
33  void beginJob() override {}
34  void analyze(const edm::Event&, const edm::EventSetup&) override;
35  void endJob() override {}
36 
38 
40 };
41 
43  // get timing calibration parameters
44  if (calibWatcher_.check(iSetup)) {
45  edm::LogInfo("PPSTimingCalibrationLUTAnalyzer") << "Calibrations retrieved:\n" << iSetup.getData(tokenCalibration_);
46  }
47 }
48 
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
PPSTimingCalibrationLUTAnalyzer(const edm::ParameterSet &)
int iEvent
Definition: GenABIO.cc:224
void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Log< level::Info, false > LogInfo
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
edm::ESGetToken< PPSTimingCalibrationLUT, PPSTimingCalibrationLUTRcd > tokenCalibration_
edm::ESWatcher< PPSTimingCalibrationLUTRcd > calibWatcher_