CMS 3D CMS Logo

DQMSummaryEventSetupAnalyzer.cc
Go to the documentation of this file.
10 #include <iostream>
11 
12 namespace edmtest {
14  public:
16  explicit DQMSummaryEventSetupAnalyzer(int i);
18  void analyze(const edm::Event& event, const edm::EventSetup& setup) override;
19  };
20 
22  std::cout << "DQMSummaryEventSetupAnalyzer" << std::endl;
23  }
24 
26  std::cout << "DQMSummaryEventSetupAnalyzer" << i << std::endl;
27  }
28 
30  std::cout << "~DQMSummaryEventSetupAnalyzer" << std::endl;
31  }
32 
34  std::cout << "### DQMSummaryEventSetupAnalyzer::analyze" << std::endl;
35  std::cout << "--- RUN NUMBER: " << event.id().run() << std::endl;
36  std::cout << "--- EVENT NUMBER: " << event.id().event() << std::endl;
39  throw cms::Exception ("Record not found") << "Record \"DQMSummaryRcd"
40  << "\" does not exist!" << std::endl;
41  }
43  std::cout << "got EShandle" << std::endl;
44  setup.get<DQMSummaryRcd>().get(sum);
45  std::cout <<"got the Event Setup" << std::endl;
46  const DQMSummary* summary = sum.product();
47  std::cout <<"got DQMSummary* "<< std::endl;
48  std::cout<< "print result" << std::endl;
49  summary->printAllValues();
50  }
51 
53 }
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
DQMSummaryEventSetupAnalyzer(const edm::ParameterSet &pset)
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
void analyze(const edm::Event &event, const edm::EventSetup &setup) override
void printAllValues() const
Definition: DQMSummary.h:39
const T & get() const
Definition: EventSetup.h:59
heterocontainer::HCTypeTag TypeTag
T const * product() const
Definition: ESHandle.h:86
Definition: event.py:1