File indexing completed on 2024-04-06 12:19:12
0001 #ifndef IOPool_Streamer_StreamThingAnalyzer_h
0002 #define IOPool_Streamer_StreamThingAnalyzer_h
0003
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0006 #include "FWCore/Framework/interface/GetterOfProducts.h"
0007
0008 #if 1
0009 #include "DataFormats/TestObjects/interface/StreamTestThing.h"
0010 typedef edmtestprod::StreamTestThing WriteThis;
0011 #else
0012 #include "FWCore/Integration/interface/IntArray.h"
0013 typedef edmtestprod::IntArray WriteThis;
0014 #endif
0015
0016 #include <string>
0017 #include <fstream>
0018
0019 namespace edmtest_thing {
0020
0021 class StreamThingAnalyzer : public edm::one::EDAnalyzer<> {
0022 public:
0023 explicit StreamThingAnalyzer(edm::ParameterSet const&);
0024
0025 ~StreamThingAnalyzer() override;
0026
0027 void endJob() override;
0028
0029 void analyze(edm::Event const& e, edm::EventSetup const& c) override;
0030
0031 private:
0032 std::string name_;
0033 int total_;
0034 std::ofstream out_;
0035 std::string inChecksumFile_;
0036 std::string outChecksumFile_;
0037 int cnt_;
0038 edm::GetterOfProducts<WriteThis> getterUsingLabel_;
0039 };
0040 }
0041
0042 #endif