CMS 3D CMS Logo

FillInfoESAnalyzer.cc
Go to the documentation of this file.
1 #include <string>
2 #include <iostream>
3 #include <map>
10 
11 namespace edmtest {
13  private:
15 
16  public:
18  edm::LogPrint("FillInfoESAnalyzer") << "FillInfoESAnalyzer" << std::endl;
19  }
20  explicit FillInfoESAnalyzer(int i) {
21  edm::LogPrint("FillInfoESAnalyzer") << "FillInfoESAnalyzer " << i << std::endl;
22  }
23  ~FillInfoESAnalyzer() override { edm::LogPrint("FillInfoESAnalyzer") << "~FillInfoESAnalyzer " << std::endl; }
24  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
25  };
26 
28  edm::LogPrint("FillInfoESAnalyzer") << "###FillInfoESAnalyzer::analyze" << std::endl;
29  edm::LogPrint("FillInfoESAnalyzer") << " I AM IN RUN NUMBER " << e.id().run() << std::endl;
30  edm::LogPrint("FillInfoESAnalyzer") << " ---EVENT NUMBER " << e.id().event() << std::endl;
34  //record not found
35  edm::LogPrint("FillInfoESAnalyzer") << "Record \"FillInfoRcd"
36  << "\" does not exist " << std::endl;
37  }
38  edm::LogPrint("FillInfoESAnalyzer") << "got eshandle" << std::endl;
40  edm::LogPrint("FillInfoESAnalyzer") << "got context" << std::endl;
41  const FillInfo* summary = sum.product();
42  edm::LogPrint("FillInfoESAnalyzer") << "got FillInfo* " << std::endl;
43  edm::LogPrint("FillInfoESAnalyzer") << "print result" << std::endl;
44  edm::LogPrint("FillInfoESAnalyzer") << *summary;
45  }
47 } // namespace edmtest
FillInfoESAnalyzer(edm::ParameterSet const &p)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
T const * product() const
Definition: ESHandle.h:86
Log< level::Warning, true > LogPrint
heterocontainer::HCTypeTag TypeTag
const edm::ESGetToken< FillInfo, FillInfoRcd > m_FillInfoToken
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:121