CMS 3D CMS Logo

RetrieveCTPPSBeamParameters.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Class: RetrieveCTPPSBeamParameters
4 //
5 // Description: Test analyzer for reading CTPPS beam parameters condition data
6 //
7 // Simple analyzer that retrieves CTTPSBeamParameters record from a sql
8 // database file, as a test of offline conditions implementation.
9 //
10 // Original Author: Wagner De Paula Carvalho
11 // Created: Wed, 21 Nov 2018 17:35:07 GMT
12 //
13 //==================================================================================
14 
15 #include <memory>
16 
20 
24 
28 
31 
32 #include <cstdint>
33 
35 {
36  public:
38  ~RetrieveCTPPSBeamParameters() override = default;
39 
40  private:
41  void analyze(const edm::Event&, const edm::EventSetup&) override;
43 };
44 
45 //---------------------------------------------------------------------------------------
46 
48 {}
49 
51 {
53  iSetup.get<CTPPSBeamParametersRcd>().get(label_, pSetup);
54 
55  const CTPPSBeamParameters* pInfo = pSetup.product();
56 
57  edm::LogInfo("CTPPSBeamParameters") << "\n" << *pInfo << "\n" ;
58 }
59 
61 
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
~RetrieveCTPPSBeamParameters() override=default
T get() const
Definition: EventSetup.h:71
RetrieveCTPPSBeamParameters(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
T const * product() const
Definition: ESHandle.h:86