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 {
29  public:
31 
32  private:
33  void beginJob() override {}
34  void analyze( const edm::Event&, const edm::EventSetup& ) override;
35  void endJob() override {}
36 
38 };
39 
40 void
42 {
43  // get timing calibration parameters
45  if ( calibWatcher_.check( iSetup ) ) {
46  iSetup.get<PPSTimingCalibrationRcd>().get( hTimingCalib );
47 
48  edm::LogInfo("PPSTimingCalibrationAnalyzer")
49  << "Calibrations retrieved:\n"
50  << *hTimingCalib;
51  }
52 }
53 
55 
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 &)
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
void analyze(const edm::Event &, const edm::EventSetup &) override
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:52
T get() const
Definition: EventSetup.h:71