CMS 3D CMS Logo

PPSTimingCalibrationAnalyzer.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  *
7  ****************************************************************************/
8 
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("PPSTimingCalibrationAnalyzer") << "Calibrations retrieved:\n" << iSetup.getData(tokenCalibration_);
46  }
47 }
48 
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
EventSetup record for TOTEM/PPS timing calibration information.
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
PPSTimingCalibrationAnalyzer(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
void analyze(const edm::Event &, const edm::EventSetup &) override
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > tokenCalibration_