CMS 3D CMS Logo

FillInfoESAnalyzer.cc
Go to the documentation of this file.
1 #include <string>
2 #include <iostream>
3 #include <map>
11 
12 namespace edmtest {
14  private:
16 
17  public:
19  edm::LogPrint("FillInfoESAnalyzer") << "FillInfoESAnalyzer" << std::endl;
20  }
21  explicit FillInfoESAnalyzer(int i) {
22  edm::LogPrint("FillInfoESAnalyzer") << "FillInfoESAnalyzer " << i << std::endl;
23  }
24  ~FillInfoESAnalyzer() override { edm::LogPrint("FillInfoESAnalyzer") << "~FillInfoESAnalyzer " << std::endl; }
25  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
26  };
27 
29  edm::LogPrint("FillInfoESAnalyzer") << "###FillInfoESAnalyzer::analyze" << std::endl;
30  edm::LogPrint("FillInfoESAnalyzer") << " I AM IN RUN NUMBER " << e.id().run() << std::endl;
31  edm::LogPrint("FillInfoESAnalyzer") << " ---EVENT NUMBER " << e.id().event() << std::endl;
35  //record not found
36  edm::LogPrint("FillInfoESAnalyzer") << "Record \"FillInfoRcd"
37  << "\" does not exist " << std::endl;
38  }
39  edm::LogPrint("FillInfoESAnalyzer") << "got eshandle" << std::endl;
41  edm::LogPrint("FillInfoESAnalyzer") << "got context" << std::endl;
42  const FillInfo* summary = sum.product();
43  edm::LogPrint("FillInfoESAnalyzer") << "got FillInfo* " << std::endl;
44  edm::LogPrint("FillInfoESAnalyzer") << "print result" << std::endl;
45  edm::LogPrint("FillInfoESAnalyzer") << *summary;
46  }
48 } // namespace edmtest
FillInfoESAnalyzer(edm::ParameterSet const &p)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
T const * product() const
Definition: ESHandle.h:86
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
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