CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
HLTTauPostProcessor Class Reference

#include <HLTTauPostProcessor.h>

Inheritance diagram for HLTTauPostProcessor:
edm::EDAnalyzer

Public Member Functions

 HLTTauPostProcessor (const edm::ParameterSet &)
 
 ~HLTTauPostProcessor ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Fake Analyze. More...
 
void beginJob ()
 BeginJob. More...
 
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup)
 Luminosity Block. More...
 
void beginRun (const edm::Run &r, const edm::EventSetup &c)
 BeginRun. More...
 
void endJob ()
 Endjob. More...
 
void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup)
 DQM Client Diagnostic. More...
 
void endRun (const edm::Run &r, const edm::EventSetup &iSetup)
 EndRun. More...
 
void harvest ()
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Member Functions

void processPSet (const edm::ParameterSet &pset)
 

Private Attributes

HLTTauDQMAutomation automation_
 
std::string dqmBaseFolder_
 
HLTConfigProvider HLTCP_
 
double HLTMatchDr_
 
bool hltMenuChanged_
 
std::string hltProcessName_
 
double L1MatchDr_
 
edm::ParameterSet ps_
 
bool runAtEndJob_
 
bool runAtEndRun_
 
std::vector< edm::ParameterSetsetup_
 
std::string sourceModule_
 
std::vector
< HLTTauDQMSummaryPlotter * > 
summaryPlotters_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 23 of file HLTTauPostProcessor.h.

Constructor & Destructor Documentation

HLTTauPostProcessor::HLTTauPostProcessor ( const edm::ParameterSet ps)

Definition at line 6 of file HLTTauPostProcessor.cc.

References edm::ParameterSet::getUntrackedParameter().

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;
17  ps_ = ps;
18 }
T getUntrackedParameter(std::string const &, T const &) const
edm::ParameterSet ps_
HLTTauDQMAutomation automation_
HLTTauPostProcessor::~HLTTauPostProcessor ( )

Definition at line 20 of file HLTTauPostProcessor.cc.

21 {
22 }

Member Function Documentation

void HLTTauPostProcessor::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Fake Analyze.

Implements edm::EDAnalyzer.

Definition at line 44 of file HLTTauPostProcessor.cc.

45 {
46 }
void HLTTauPostProcessor::beginJob ( void  )
protectedvirtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 24 of file HLTTauPostProcessor.cc.

25 {
26 }
void HLTTauPostProcessor::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup iSetup 
)
protectedvirtual

Luminosity Block.

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file HLTTauPostProcessor.cc.

41 {
42 }
void HLTTauPostProcessor::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

BeginRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 28 of file HLTTauPostProcessor.cc.

29 {
30  //Evaluate configuration for every new trigger menu
31  if ( HLTCP_.init(iRun, iSetup, hltProcessName_, hltMenuChanged_) ) {
32  if ( hltMenuChanged_ ) {
34  }
35  } else {
36  edm::LogWarning("HLTTauPostProcessor") << "HLT config extraction failure with process name '" << hltProcessName_ << "'";
37  }
38 }
void processPSet(const edm::ParameterSet &pset)
HLTConfigProvider HLTCP_
edm::ParameterSet ps_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
void HLTTauPostProcessor::endJob ( void  )
protectedvirtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 57 of file HLTTauPostProcessor.cc.

References cmsPerfHarvest::harvest().

void HLTTauPostProcessor::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup iSetup 
)
protectedvirtual

DQM Client Diagnostic.

Reimplemented from edm::EDAnalyzer.

Definition at line 48 of file HLTTauPostProcessor.cc.

49 {
50 }
void HLTTauPostProcessor::endRun ( const edm::Run r,
const edm::EventSetup iSetup 
)
protectedvirtual

EndRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 52 of file HLTTauPostProcessor.cc.

References cmsPerfHarvest::harvest().

void HLTTauPostProcessor::harvest ( )
protected

Definition at line 62 of file HLTTauPostProcessor.cc.

References i, and plotResiduals::plot().

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 ) {
70  }
71 
72  for ( unsigned int i = 0; i < summaryPlotters_.size(); ++i ) {
73  if (summaryPlotters_[i]->isValid()) summaryPlotters_[i]->plot();
74  }
75 }
int i
Definition: DBlmapReader.cc:9
std::vector< HLTTauDQMSummaryPlotter * > summaryPlotters_
std::vector< edm::ParameterSet > setup_
void HLTTauPostProcessor::processPSet ( const edm::ParameterSet pset)
private

Definition at line 77 of file HLTTauPostProcessor.cc.

References edm::ParameterSet::getParameter().

77  {
78  //Get parameters
79  setup_ = pset.getParameter<std::vector<edm::ParameterSet> >("Setup");
80 
81  //Automatic Configuration
83 }
T getParameter(std::string const &) const
void AutoCompleteConfig(std::vector< edm::ParameterSet > &config, HLTConfigProvider const &HLTCP)
std::vector< edm::ParameterSet > setup_
HLTConfigProvider HLTCP_
HLTTauDQMAutomation automation_

Member Data Documentation

HLTTauDQMAutomation HLTTauPostProcessor::automation_
private

Definition at line 65 of file HLTTauPostProcessor.h.

std::string HLTTauPostProcessor::dqmBaseFolder_
private

Definition at line 56 of file HLTTauPostProcessor.h.

HLTConfigProvider HLTTauPostProcessor::HLTCP_
private

Definition at line 64 of file HLTTauPostProcessor.h.

double HLTTauPostProcessor::HLTMatchDr_
private

Definition at line 62 of file HLTTauPostProcessor.h.

bool HLTTauPostProcessor::hltMenuChanged_
private

Definition at line 57 of file HLTTauPostProcessor.h.

std::string HLTTauPostProcessor::hltProcessName_
private

Definition at line 58 of file HLTTauPostProcessor.h.

double HLTTauPostProcessor::L1MatchDr_
private

Definition at line 61 of file HLTTauPostProcessor.h.

edm::ParameterSet HLTTauPostProcessor::ps_
private

Definition at line 54 of file HLTTauPostProcessor.h.

bool HLTTauPostProcessor::runAtEndJob_
private

Definition at line 67 of file HLTTauPostProcessor.h.

bool HLTTauPostProcessor::runAtEndRun_
private

Definition at line 68 of file HLTTauPostProcessor.h.

std::vector<edm::ParameterSet> HLTTauPostProcessor::setup_
private

Definition at line 55 of file HLTTauPostProcessor.h.

std::string HLTTauPostProcessor::sourceModule_
private

Definition at line 59 of file HLTTauPostProcessor.h.

std::vector<HLTTauDQMSummaryPlotter*> HLTTauPostProcessor::summaryPlotters_
private

Definition at line 70 of file HLTTauPostProcessor.h.