CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
RunNumber_t run() const
Definition: EventID.h:38
EventNumber_t event() const
Definition: EventID.h:40
const edm::EventSetup & c
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
Log< level::Warning, true > LogPrint
T const * product() const
Definition: ESHandle.h:86
heterocontainer::HCTypeTag TypeTag
edm::EventID id() const
Definition: EventBase.h:59
const edm::ESGetToken< FillInfo, FillInfoRcd > m_FillInfoToken
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151
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