CMS 3D CMS Logo

DTUserKeyedConfigPopConAnalyzer.cc
Go to the documentation of this file.
9 #include <memory>
10 
11 //typedef popcon::PopConAnalyzer<DTUserKeyedConfigHandler> DTUserKeyedConfigPopConAnalyzer;
12 class DTUserKeyedConfigPopConAnalyzer : public popcon::PopConAnalyzer<DTUserKeyedConfigHandler> {
13 public:
17  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override {
18  edm::LogInfo("DTUserKeyedConfigPopConAnalyzer") << "got eSdata" << std::endl;
20  for (size_t i = 0; i < kl.size(); i++) {
21  std::shared_ptr<DTKeyedConfig> kentry = kl.getUsingIndex<DTKeyedConfig>(i);
22  if (kentry.get())
23  edm::LogInfo("DTUserKeyedConfigPopConAnalyzer") << kentry->getId() << std::endl;
24  }
25  source().setList(&kl);
26  }
27 
28 private:
30 };
31 
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
void setList(const cond::persistency::KeyList *list)
int iEvent
Definition: GenABIO.cc:224
DTUserKeyedConfigPopConAnalyzer(const edm::ParameterSet &pset)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Log< level::Info, false > LogInfo
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
size_t size() const
Number of keys based on container passed to setKeys.
Definition: KeyList.h:63
std::shared_ptr< T > getUsingIndex(size_t n) const
Retrieves the pre-fetched data. The index is the same order as the keys used in setKeys.
Definition: KeyList.h:44
edm::ESGetToken< cond::persistency::KeyList, DTKeyedConfigListRcd > perskeylistToken_
PopConAnalyzer(const edm::ParameterSet &pset)