CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

HLTHiggsValidator Class Reference

#include <HLTHiggsValidator.h>

Inheritance diagram for HLTHiggsValidator:
edm::EDAnalyzer

List of all members.

Public Member Functions

 HLTHiggsValidator (const edm::ParameterSet &)
 Constructor.
 ~HLTHiggsValidator ()

Private Member Functions

virtual void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup)
virtual void beginJob ()
virtual void beginRun (const edm::Run &iRun, const edm::EventSetup &iSetup)
virtual void endJob ()
virtual void endRun (const edm::Run &iRun, const edm::EventSetup &iSetup)

Private Attributes

std::vector< std::string > _analysisnames
 the names of the subanalysis
std::vector< HLTHiggsSubAnalysis_analyzers
 The instances of the class which do the real work.
EVTColContainer_collections
 The container with all the collections needed.
DQMStore_dbe
edm::ParameterSet _pset
 Input from configuration file.

Detailed Description

Generate histograms for trigger efficiencies Higgs related Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/HiggsWGHLTValidate

Date:
2012/03/23 11:50:56
Revision:
1.7
Author:
J. Duarte Campderros (based and adapted on J. Klukas, M. Vander Donckt and J. Alcaraz code from the HLTriggerOffline/Muon package)

Definition at line 34 of file HLTHiggsValidator.h.


Constructor & Destructor Documentation

HLTHiggsValidator::HLTHiggsValidator ( const edm::ParameterSet pset)

Constructor.

Definition at line 25 of file HLTHiggsValidator.cc.

References _collections.

                                                                :
        _pset(pset),
        _analysisnames(pset.getParameter<std::vector<std::string> >("analysis")),
        _collections(0),
        _dbe(0)
{
        _collections = new EVTColContainer;
}
HLTHiggsValidator::~HLTHiggsValidator ( )

Definition at line 34 of file HLTHiggsValidator.cc.

References _collections.

{
        if( _collections != 0 )
        {
                delete _collections;
                _collections = 0;
        }
}

Member Function Documentation

void HLTHiggsValidator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDAnalyzer.

Definition at line 60 of file HLTHiggsValidator.cc.

References _analyzers, _collections, LogTrace, and EVTColContainer::reset().

{
        static int eventNumber = 0;
        eventNumber++;
        LogTrace("HiggsValidation") << "In HLTHiggsSubAnalysis::analyze,  " 
                << "Event: " << eventNumber;
        
        // Initialize the event collections
        this->_collections->reset();

        for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin(); 
                        iter != _analyzers.end(); ++iter) 
        {
                iter->analyze(iEvent, iSetup, this->_collections);
        }
}
void HLTHiggsValidator::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 79 of file HLTHiggsValidator.cc.

{
}
void HLTHiggsValidator::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 44 of file HLTHiggsValidator.cc.

References _analysisnames, _analyzers, _pset, and i.

{
        for(size_t i = 0; i < _analysisnames.size() ; ++i)
        {
                HLTHiggsSubAnalysis analyzer(_pset, _analysisnames.at(i));
                _analyzers.push_back(analyzer);
        }
        // Call the Plotter beginRun (which stores the triggers paths..:)
        for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin(); 
                        iter != _analyzers.end(); ++iter) 
        {
                iter->beginRun(iRun, iSetup);
        }
}
void HLTHiggsValidator::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 94 of file HLTHiggsValidator.cc.

{
}
void HLTHiggsValidator::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 83 of file HLTHiggsValidator.cc.

{
        // vector<HLTMuonPlotter>::iterator iter;
        // for(std::vector<HLTHiggsPlotter>::iterator iter = _analyzers.begin(); 
        //                 iter != analyzers_.end(); ++iter) 
        // {
        //         iter->endRun(iRun, iSetup);
        // }
}

Member Data Documentation

std::vector<std::string> HLTHiggsValidator::_analysisnames [private]

the names of the subanalysis

Definition at line 52 of file HLTHiggsValidator.h.

Referenced by beginRun().

The instances of the class which do the real work.

Definition at line 55 of file HLTHiggsValidator.h.

Referenced by analyze(), and beginRun().

The container with all the collections needed.

Definition at line 58 of file HLTHiggsValidator.h.

Referenced by analyze(), HLTHiggsValidator(), and ~HLTHiggsValidator().

Definition at line 61 of file HLTHiggsValidator.h.

Input from configuration file.

Definition at line 50 of file HLTHiggsValidator.h.

Referenced by beginRun().