File indexing completed on 2021-10-08 02:27:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #include <memory>
0021 #include <iostream>
0022
0023
0024 #include "FWCore/Framework/interface/global/EDAnalyzer.h"
0025
0026 #include "FWCore/Framework/interface/MakerMacros.h"
0027
0028 #include "FWCore/Integration/test/ValueExample.h"
0029 #include "FWCore/ServiceRegistry/interface/Service.h"
0030
0031
0032
0033
0034
0035 class UseValueExampleAnalyzer : public edm::global::EDAnalyzer<> {
0036 public:
0037 explicit UseValueExampleAnalyzer(const edm::ParameterSet&);
0038
0039 void analyze(edm::StreamID, const edm::Event&, const edm::EventSetup&) const final;
0040
0041 private:
0042
0043 };
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056 UseValueExampleAnalyzer::UseValueExampleAnalyzer(const edm::ParameterSet& ) {
0057
0058 }
0059
0060
0061
0062
0063
0064
0065 void UseValueExampleAnalyzer::analyze(edm::StreamID,
0066 const edm::Event& ,
0067 const edm::EventSetup& ) const {
0068 std::cout << " value from service " << edm::Service<ValueExample>()->value() << std::endl;
0069 }
0070
0071
0072 DEFINE_FWK_MODULE(UseValueExampleAnalyzer);