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 public:
37  ~RetrieveCTPPSBeamParameters() override = default;
38 
39 private:
40  void analyze(const edm::Event&, const edm::EventSetup&) override;
42 };
43 
44 //---------------------------------------------------------------------------------------
45 
47 
50  iSetup.get<CTPPSBeamParametersRcd>().get(label_, pSetup);
51 
52  const CTPPSBeamParameters* pInfo = pSetup.product();
53 
54  edm::LogInfo("CTPPSBeamParameters") << "\n" << *pInfo << "\n";
55 }
56 
CTPPSBeamParameters
Definition: CTPPSBeamParameters.h:22
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
CTPPSBeamParameters.h
RetrieveCTPPSBeamParameters::label_
std::string label_
Definition: RetrieveCTPPSBeamParameters.cc:41
EDAnalyzer.h
CTPPSBeamParametersRcd.h
MessageLogger.h
ESHandle.h
RetrieveCTPPSBeamParameters
Definition: RetrieveCTPPSBeamParameters.cc:34
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
MakerMacros.h
RetrieveCTPPSBeamParameters::~RetrieveCTPPSBeamParameters
~RetrieveCTPPSBeamParameters() override=default
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
RetrieveCTPPSBeamParameters::RetrieveCTPPSBeamParameters
RetrieveCTPPSBeamParameters(const edm::ParameterSet &)
Definition: RetrieveCTPPSBeamParameters.cc:46
edm::ESHandle< CTPPSBeamParameters >
RetrieveCTPPSBeamParameters::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: RetrieveCTPPSBeamParameters.cc:48
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
CTPPSBeamParametersRcd
Definition: CTPPSBeamParametersRcd.h:14
Frameworkfwd.h
EventSetup.h
ParameterSet.h
edm::Event
Definition: Event.h:73