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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
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)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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 3 of file HLTTauRelvalQTester.h.

Constructor & Destructor Documentation

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

Definition at line 4 of file HLTTauRelvalQTester.cc.

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

4  : QualityTester(ps) {
5  refMothers_ = consumes<std::vector<int>>(ps.getParameter<edm::InputTag>("refMothers"));
6  mothers_ = ps.getParameter<std::vector<int>>("mothers");
7  runQTests = false;
8 }
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 10 of file HLTTauRelvalQTester.cc.

10 {}

Member Function Documentation

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

Definition at line 12 of file HLTTauRelvalQTester.cc.

References QualityTester::analyze(), edm::Event::getByToken(), mps_fire::i, mothers_, refMothers_, and runQTests.

12  {
13  edm::Handle<std::vector<int>> refMothers;
14  if (e.getByToken(refMothers_, refMothers))
15  for (unsigned int i = 0; i < refMothers->size(); ++i) {
16  int mother = (*refMothers)[i];
17  for (unsigned int j = 0; j < mothers_.size(); ++j) {
18  if (mothers_[j] == mother)
19  runQTests = true;
20  }
21 
22  if (runQTests) {
24  }
25  }
26 }
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:517
edm::EDGetTokenT< std::vector< int > > refMothers_
void HLTTauRelvalQTester::endJob ( void  )
overrideprotectedvirtual

Reimplemented from QualityTester.

Definition at line 34 of file HLTTauRelvalQTester.cc.

References QualityTester::endJob().

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 28 of file HLTTauRelvalQTester.cc.

References QualityTester::endLuminosityBlock().

28  {
30 }
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 32 of file HLTTauRelvalQTester.cc.

References QualityTester::endRun().

32 { QualityTester::endRun(r, c); }
void endRun(const edm::Run &r, const edm::EventSetup &c) override

Member Data Documentation

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

Definition at line 16 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().

edm::EDGetTokenT<std::vector<int> > HLTTauRelvalQTester::refMothers_
private

Definition at line 15 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().

bool HLTTauRelvalQTester::runQTests
private

Definition at line 17 of file HLTTauRelvalQTester.h.

Referenced by analyze(), and HLTTauRelvalQTester().