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 {
8  sourceModule_ = ps.getUntrackedParameter<std::string>("SourceModule");
9  dqmBaseFolder_ = ps.getUntrackedParameter<std::string>("DQMBaseFolder");
10  hltProcessName_ = ps.getUntrackedParameter<std::string>("HLTProcessName","HLT");
11  L1MatchDr_ = ps.getUntrackedParameter<double>("L1MatchDeltaR",0.5);
12  HLTMatchDr_ = ps.getUntrackedParameter<double>("HLTMatchDeltaR",0.2);
13  runAtEndJob_ = ps.getUntrackedParameter<bool>("runAtEndJob",false);
14  runAtEndRun_ = ps.getUntrackedParameter<bool>("runAtEndRun",true);
15  hltMenuChanged_ = true;
16  automation_ = HLTTauDQMAutomation(hltProcessName_, L1MatchDr_, HLTMatchDr_);
17  ps_ = ps;
18 }
19 
21 {
22 }
23 
25 {
26 }
27 
28 void HLTTauPostProcessor::beginRun( const edm::Run& iRun, const edm::EventSetup& iSetup )
29 {
30  //Evaluate configuration for every new trigger menu
31  if ( HLTCP_.init(iRun, iSetup, hltProcessName_, hltMenuChanged_) ) {
32  if ( hltMenuChanged_ ) {
33  processPSet(ps_);
34  }
35  } else {
36  edm::LogWarning("HLTTauPostProcessor") << "HLT config extraction failure with process name '" << hltProcessName_ << "'";
37  }
38 }
39 
41 {
42 }
43 
44 void HLTTauPostProcessor::analyze( const Event& iEvent, const EventSetup& iSetup )
45 {
46 }
47 
49 {
50 }
51 
52 void HLTTauPostProcessor::endRun( const Run& r, const EventSetup& context )
53 {
54  if (runAtEndRun_) harvest();
55 }
56 
58 {
59  if (runAtEndJob_) harvest();
60 }
61 
63 {
64  //Clear the plotter collection first
65  while (!summaryPlotters_.empty()) delete summaryPlotters_.back(), summaryPlotters_.pop_back();
66 
67  //Read the configuration
68  for ( unsigned int i = 0; i < setup_.size(); ++i ) {
69  summaryPlotters_.push_back(new HLTTauDQMSummaryPlotter(setup_[i],dqmBaseFolder_));
70  }
71 
72  for ( unsigned int i = 0; i < summaryPlotters_.size(); ++i ) {
73  if (summaryPlotters_[i]->isValid()) summaryPlotters_[i]->plot();
74  }
75 }
76 
78  //Get parameters
79  setup_ = pset.getParameter<std::vector<edm::ParameterSet> >("Setup");
80 
81  //Automatic Configuration
82  automation_.AutoCompleteConfig( setup_, HLTCP_ );
83 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
void beginJob()
BeginJob.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
HLTTauPostProcessor(const edm::ParameterSet &)
int iEvent
Definition: GenABIO.cc:243
void processPSet(const edm::ParameterSet &pset)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup)
DQM Client Diagnostic.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup)
Luminosity Block.
def harvest
Harvest all data from a perfsuite directory (if cpu subdirectories exist, it will examine them) ...
void analyze(const edm::Event &e, const edm::EventSetup &c)
Fake Analyze.
Definition: Run.h:33
void endRun(const edm::Run &r, const edm::EventSetup &iSetup)
EndRun.