CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

HLTTauRelvalQTester Class Reference

#include <HLTTauRelvalQTester.h>

Inheritance diagram for HLTTauRelvalQTester:
QualityTester edm::EDAnalyzer

List of all members.

Public Member Functions

 HLTTauRelvalQTester (const edm::ParameterSet &ps)
 ~HLTTauRelvalQTester ()

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze.
void endJob ()
void endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
 perform the actual quality tests
void endRun (const edm::Run &r, const edm::EventSetup &c)

Private Attributes

std::vector< int > mothers_
edm::InputTag refMothers_
bool runQTests

Detailed Description

Definition at line 4 of file HLTTauRelvalQTester.h.


Constructor & Destructor Documentation

HLTTauRelvalQTester::HLTTauRelvalQTester ( const edm::ParameterSet ps)

Definition at line 7 of file HLTTauRelvalQTester.cc.

References edm::ParameterSet::getParameter(), mothers_, refMothers_, and runQTests.

                                                                 :
QualityTester(ps)
{
  refMothers_ = ps.getParameter<edm::InputTag >("refMothers");
  mothers_ = ps.getParameter<std::vector<int> >("mothers");
  runQTests = false;
}
HLTTauRelvalQTester::~HLTTauRelvalQTester ( )

Definition at line 15 of file HLTTauRelvalQTester.cc.

{

}

Member Function Documentation

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

Analyze.

Reimplemented from QualityTester.

Definition at line 23 of file HLTTauRelvalQTester.cc.

References edm::Event::getByLabel(), i, j, mothers_, refMothers_, and runQTests.

{
  edm::Handle<std::vector<int> > refMothers;
  if(e.getByLabel(refMothers_,refMothers))
    for(unsigned int i=0;i<refMothers->size();++i)
      {
        int mother = (*refMothers)[i];
        for(unsigned int j=0;j<mothers_.size();++j)
          {
            if(mothers_[j]==mother)
              runQTests = true;
          }

        if(runQTests)
          {
            QualityTester::analyze(e,c);
          }
      }
} 
void HLTTauRelvalQTester::endJob ( void  ) [protected, virtual]

Reimplemented from QualityTester.

Definition at line 60 of file HLTTauRelvalQTester.cc.

void HLTTauRelvalQTester::endLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  c 
) [protected, virtual]

perform the actual quality tests

Reimplemented from QualityTester.

Definition at line 44 of file HLTTauRelvalQTester.cc.

void HLTTauRelvalQTester::endRun ( const edm::Run r,
const edm::EventSetup c 
) [protected, virtual]

Reimplemented from QualityTester.

Definition at line 52 of file HLTTauRelvalQTester.cc.


Member Data Documentation

std::vector<int> HLTTauRelvalQTester::mothers_ [private]

Definition at line 19 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().

Definition at line 18 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().

Definition at line 20 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().