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 Attributes
HLTTauRelvalQTester Class Reference

#include <HLTTauRelvalQTester.h>

Inheritance diagram for HLTTauRelvalQTester:
QualityTester edm::EDAnalyzer

Public Member Functions

 HLTTauRelvalQTester (const edm::ParameterSet &ps)
 
 ~HLTTauRelvalQTester ()
 
- Public Member Functions inherited from QualityTester
 QualityTester (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~QualityTester ()
 Destructor. More...
 
- 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)
 Analyze. More...
 
void endJob ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
 perform the actual quality tests More...
 
void endRun (const edm::Run &r, const edm::EventSetup &c)
 
- Protected Member Functions inherited from QualityTester
void beginRun (const edm::Run &, const edm::EventSetup &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Attributes

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

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

7  :
9 {
10  refMothers_ = ps.getParameter<edm::InputTag >("refMothers");
11  mothers_ = ps.getParameter<std::vector<int> >("mothers");
12  runQTests = false;
13 }
T getParameter(std::string const &) const
std::vector< int > mothers_
QualityTester(const edm::ParameterSet &ps)
Constructor.
HLTTauRelvalQTester::~HLTTauRelvalQTester ( )

Definition at line 15 of file HLTTauRelvalQTester.cc.

16 {
17 
18 }

Member Function Documentation

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

Analyze.

Reimplemented from QualityTester.

Definition at line 23 of file HLTTauRelvalQTester.cc.

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

24 {
25  edm::Handle<std::vector<int> > refMothers;
26  if(e.getByLabel(refMothers_,refMothers))
27  for(unsigned int i=0;i<refMothers->size();++i)
28  {
29  int mother = (*refMothers)[i];
30  for(unsigned int j=0;j<mothers_.size();++j)
31  {
32  if(mothers_[j]==mother)
33  runQTests = true;
34  }
35 
36  if(runQTests)
37  {
39  }
40  }
41 }
int i
Definition: DBlmapReader.cc:9
std::vector< int > mothers_
int j
Definition: DBlmapReader.cc:9
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void HLTTauRelvalQTester::endJob ( void  )
protectedvirtual

Reimplemented from QualityTester.

Definition at line 60 of file HLTTauRelvalQTester.cc.

References QualityTester::endJob().

61 {
63 
64 }
void HLTTauRelvalQTester::endLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  c 
)
protectedvirtual

perform the actual quality tests

Reimplemented from QualityTester.

Definition at line 44 of file HLTTauRelvalQTester.cc.

References QualityTester::endLuminosityBlock().

45 {
47 
48 }
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
perform the actual quality tests
void HLTTauRelvalQTester::endRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from QualityTester.

Definition at line 52 of file HLTTauRelvalQTester.cc.

References QualityTester::endRun().

53 {
55 
56 }
void endRun(const edm::Run &r, const edm::EventSetup &c)

Member Data Documentation

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

Definition at line 19 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().

edm::InputTag HLTTauRelvalQTester::refMothers_
private

Definition at line 18 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().

bool HLTTauRelvalQTester::runQTests
private

Definition at line 20 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().