CMS 3D CMS Logo

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 () override
 
- Public Member Functions inherited from QualityTester
 QualityTester (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~QualityTester () override
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void endJob () override
 
void endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
 perform the actual quality tests More...
 
void endRun (const edm::Run &r, const edm::EventSetup &c) override
 
- Protected Member Functions inherited from QualityTester
void analyze (const edm::Event &e, const edm::EventSetup &c) override
 Analyze. More...
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 
void endRun (const edm::Run &r, const edm::EventSetup &c) override
 
- 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
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

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

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 
)
overrideprotected

Definition at line 23 of file HLTTauRelvalQTester.cc.

References QualityTester::analyze(), edm::Event::getByToken(), mps_fire::i, 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 }
std::vector< int > mothers_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
edm::EDGetTokenT< std::vector< int > > refMothers_
void HLTTauRelvalQTester::endJob ( void  )
overrideprotectedvirtual

Reimplemented from QualityTester.

Definition at line 60 of file HLTTauRelvalQTester.cc.

References QualityTester::endJob().

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

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) override
perform the actual quality tests
void HLTTauRelvalQTester::endRun ( const edm::Run r,
const edm::EventSetup c 
)
overrideprotected

Definition at line 52 of file HLTTauRelvalQTester.cc.

References QualityTester::endRun().

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

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