CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

HLTTauPostProcessor Class Reference

#include <HLTTauPostProcessor.h>

Inheritance diagram for HLTTauPostProcessor:
edm::EDAnalyzer

List of all members.

Public Member Functions

 HLTTauPostProcessor (const edm::ParameterSet &)
 ~HLTTauPostProcessor ()

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Fake Analyze.
void beginJob ()
 BeginJob.
void beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup)
 Luminosity Block.
void beginRun (const edm::Run &r, const edm::EventSetup &c)
 BeginRun.
void endJob ()
 Endjob.
void endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup)
 DQM Client Diagnostic.
void endRun (const edm::Run &r, const edm::EventSetup &iSetup)
 EndRun.
void harvest ()

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_

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().

{
    sourceModule_   = ps.getUntrackedParameter<std::string>("SourceModule");
    dqmBaseFolder_  = ps.getUntrackedParameter<std::string>("DQMBaseFolder");
    hltProcessName_ = ps.getUntrackedParameter<std::string>("HLTProcessName","HLT");
    L1MatchDr_      = ps.getUntrackedParameter<double>("L1MatchDeltaR",0.5);
    HLTMatchDr_     = ps.getUntrackedParameter<double>("HLTMatchDeltaR",0.2);
    runAtEndJob_    = ps.getUntrackedParameter<bool>("runAtEndJob",false);
    runAtEndRun_    = ps.getUntrackedParameter<bool>("runAtEndRun",true);
    hltMenuChanged_ = true;
    automation_     = HLTTauDQMAutomation(hltProcessName_, L1MatchDr_, HLTMatchDr_); 
    ps_             = ps;
}
HLTTauPostProcessor::~HLTTauPostProcessor ( )

Definition at line 20 of file HLTTauPostProcessor.cc.

{
}

Member Function Documentation

void HLTTauPostProcessor::analyze ( const edm::Event e,
const edm::EventSetup c 
) [protected, virtual]

Fake Analyze.

Implements edm::EDAnalyzer.

Definition at line 44 of file HLTTauPostProcessor.cc.

{
}
void HLTTauPostProcessor::beginJob ( void  ) [protected, virtual]

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 24 of file HLTTauPostProcessor.cc.

{
}
void HLTTauPostProcessor::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup iSetup 
) [protected, virtual]

Luminosity Block.

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file HLTTauPostProcessor.cc.

{
}
void HLTTauPostProcessor::beginRun ( const edm::Run r,
const edm::EventSetup c 
) [protected, virtual]

BeginRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 28 of file HLTTauPostProcessor.cc.

{
    //Evaluate configuration for every new trigger menu
    if ( HLTCP_.init(iRun, iSetup, hltProcessName_, hltMenuChanged_) ) {
        if ( hltMenuChanged_ ) {
            processPSet(ps_);
        }
    } else {
        edm::LogWarning("HLTTauPostProcessor") << "HLT config extraction failure with process name '" << hltProcessName_ << "'";
    }
}
void HLTTauPostProcessor::endJob ( void  ) [protected, virtual]

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 57 of file HLTTauPostProcessor.cc.

References cmsPerfHarvest::harvest().

{
    if (runAtEndJob_) harvest();
}
void HLTTauPostProcessor::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup iSetup 
) [protected, virtual]

DQM Client Diagnostic.

Reimplemented from edm::EDAnalyzer.

Definition at line 48 of file HLTTauPostProcessor.cc.

{
}
void HLTTauPostProcessor::endRun ( const edm::Run r,
const edm::EventSetup iSetup 
) [protected, virtual]

EndRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 52 of file HLTTauPostProcessor.cc.

References cmsPerfHarvest::harvest().

{
    if (runAtEndRun_) harvest();
}
void HLTTauPostProcessor::harvest ( ) [protected]

Definition at line 62 of file HLTTauPostProcessor.cc.

References i, and plotResiduals::plot().

{    
    //Clear the plotter collection first
    while (!summaryPlotters_.empty()) delete summaryPlotters_.back(), summaryPlotters_.pop_back();
    
    //Read the configuration
    for ( unsigned int i = 0; i < setup_.size(); ++i ) {
        summaryPlotters_.push_back(new HLTTauDQMSummaryPlotter(setup_[i],dqmBaseFolder_));
    }
    
    for ( unsigned int i = 0; i < summaryPlotters_.size(); ++i ) {
        if (summaryPlotters_[i]->isValid()) summaryPlotters_[i]->plot();
    }
}
void HLTTauPostProcessor::processPSet ( const edm::ParameterSet pset) [private]

Definition at line 77 of file HLTTauPostProcessor.cc.

References edm::ParameterSet::getParameter().

                                                                   {
    //Get parameters
    setup_ = pset.getParameter<std::vector<edm::ParameterSet> >("Setup");
    
    //Automatic Configuration
    automation_.AutoCompleteConfig( setup_, HLTCP_ );
}

Member Data Documentation

Definition at line 65 of file HLTTauPostProcessor.h.

std::string HLTTauPostProcessor::dqmBaseFolder_ [private]

Definition at line 56 of file HLTTauPostProcessor.h.

Definition at line 64 of file HLTTauPostProcessor.h.

Definition at line 62 of file HLTTauPostProcessor.h.

Definition at line 57 of file HLTTauPostProcessor.h.

std::string HLTTauPostProcessor::hltProcessName_ [private]

Definition at line 58 of file HLTTauPostProcessor.h.

Definition at line 61 of file HLTTauPostProcessor.h.

Definition at line 54 of file HLTTauPostProcessor.h.

Definition at line 67 of file HLTTauPostProcessor.h.

Definition at line 68 of file HLTTauPostProcessor.h.

Definition at line 55 of file HLTTauPostProcessor.h.

std::string HLTTauPostProcessor::sourceModule_ [private]

Definition at line 59 of file HLTTauPostProcessor.h.

Definition at line 70 of file HLTTauPostProcessor.h.