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 edm::EDConsumerBase

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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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_ = consumes<std::vector<int> >(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_
edm::EDGetTokenT< std::vector< int > > refMothers_
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::getByToken(), i, j, mothers_, refMothers_, and runQTests.

24 {
25  edm::Handle<std::vector<int> > refMothers;
26  if(e.getByToken(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_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
edm::EDGetTokenT< std::vector< int > > refMothers_
int j
Definition: DBlmapReader.cc:9
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::EDGetTokenT<std::vector<int> > 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().