CMS 3D CMS Logo

RetrievePPSAlignmentConfiguration.cc
Go to the documentation of this file.
1 /****************************************************************************
2 * Author:
3 * Mateusz Kocot (mateuszkocot99@gmail.com)
4 ****************************************************************************/
5 
12 
16 
19 
20 #include <memory>
21 
23 public:
25 
26 private:
27  void analyze(const edm::Event&, const edm::EventSetup&) override;
28 
30 };
31 
33  : esToken_(esConsumes()) {}
34 
36  // get the data
37  const auto& ppsAlignmentConfiguration = iSetup.getData(esToken_);
38 
39  edm::LogInfo("PPS") << ppsAlignmentConfiguration;
40 }
41 
42 //define this as a plug-in
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
int iEvent
Definition: GenABIO.cc:224
void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool getData(T &iHolder) const
Definition: EventSetup.h:122
Log< level::Info, false > LogInfo
edm::ESGetToken< PPSAlignmentConfiguration, PPSAlignmentConfigurationRcd > esToken_
RetrievePPSAlignmentConfiguration(const edm::ParameterSet &)