/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Integration/plugins/UseValueExampleAnalyzer.cc
79 строк
2 KB
Chris Jones
Added fillDescriptions to more classes in FWCore
11 янв 2026, 23:54
11 янв 2026, 23:54
ea1d933
Код
Авторство
О чём код?
// -*- C++ -*- // // Package: Integration // Class: UseValueExampleAnalyzer // /**\class UseValueExampleAnalyzer UseValueExampleAnalyzer.cc FWCore/Integration/test/UseValueExampleAnalyzer.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: Chris D Jones // Created: Thu Sep 8 03:55:42 EDT 2005 // // // system include files #include <memory> #include <iostream> // user include files #include "FWCore/Framework/interface/global/EDAnalyzer.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "ValueExample.h" #include "FWCore/ServiceRegistry/interface/Service.h" // // class decleration // class UseValueExampleAnalyzer : public edm::global::EDAnalyzer<> { public: explicit UseValueExampleAnalyzer(const edm::ParameterSet&); void analyze(edm::StreamID, const edm::Event&, const edm::EventSetup&) const final; static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); private: // ----------member data --------------------------- }; // // constants, enums and typedefs // // // static data member definitions // // // constructors and destructor // UseValueExampleAnalyzer::UseValueExampleAnalyzer(const edm::ParameterSet& /* iConfig */) { //now do what ever initialization is needed } // // member functions // void UseValueExampleAnalyzer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) { edm::ParameterSetDescription desc; descriptions.addDefault(desc); } // ------------ method called to produce the data ------------ void UseValueExampleAnalyzer::analyze(edm::StreamID, const edm::Event& /* iEvent */, const edm::EventSetup& /* iSetup*/) const { std::cout << " value from service " << edm::Service<ValueExample>()->value() << std::endl; } //define this as a plug-in DEFINE_FWK_MODULE(UseValueExampleAnalyzer);