CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTTauPostProcessor.cc
Go to the documentation of this file.
2 
3 using namespace std;
4 using namespace edm;
5 
7  runAtEndJob_(ps.getUntrackedParameter<bool>("runAtEndJob",false)),
8  runAtEndRun_(ps.getUntrackedParameter<bool>("runAtEndRun",true))
9 {
10  std::string dqmBaseFolder = ps.getUntrackedParameter<std::string>("DQMBaseFolder");
11  for(const edm::ParameterSet& pset: ps.getParameter<std::vector<edm::ParameterSet> >("Setup")) {
12  summaryPlotters_.emplace_back(new HLTTauDQMSummaryPlotter(pset, dqmBaseFolder));
13  }
14 }
15 
17 {
18 }
19 
20 void HLTTauPostProcessor::analyze( const Event& iEvent, const EventSetup& iSetup )
21 {
22 }
23 
24 void HLTTauPostProcessor::endRun( const Run& r, const EventSetup& context )
25 {
26  if (runAtEndRun_) harvest();
27 }
28 
30 {
31  if (runAtEndJob_) harvest();
32 }
33 
35 {
36  for(auto& plotter: summaryPlotters_) {
37  if(plotter->isValid()) {
38  plotter->bookPlots();
39  plotter->plot();
40  }
41  }
42 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HLTTauPostProcessor(const edm::ParameterSet &)
int iEvent
Definition: GenABIO.cc:243
std::vector< std::unique_ptr< HLTTauDQMSummaryPlotter > > summaryPlotters_
volatile std::atomic< bool > shutdown_flag false
void analyze(const edm::Event &e, const edm::EventSetup &c)
Fake Analyze.
Definition: Run.h:41
void endRun(const edm::Run &r, const edm::EventSetup &iSetup)
EndRun.