CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TagProbeMassEDMFilter Class Reference

#include <PhysicsTools/TagAndProbe/interface/TagProbeMassEDMFilter.h>

Inheritance diagram for TagProbeMassEDMFilter:
edm::EDFilter edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 TagProbeMassEDMFilter (const edm::ParameterSet &)
 
 ~TagProbeMassEDMFilter ()
 
- Public Member Functions inherited from edm::EDFilter
 EDFilter ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDFilter ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 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
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void beginJob ()
 
virtual void endJob ()
 
virtual bool filter (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

std::string tpMapName
 

Additional Inherited Members

- Public Types inherited from edm::EDFilter
typedef EDFilter ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDFilter
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- 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)
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 38 of file TagProbeMassEDMFilter.h.

Constructor & Destructor Documentation

TagProbeMassEDMFilter::TagProbeMassEDMFilter ( const edm::ParameterSet iConfig)
explicit

Definition at line 37 of file TagProbeMassEDMFilter.cc.

References edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and tpMapName.

38 {
39  //now do what ever initialization is needed
40  tpMapName = iConfig.getParameter<std::string>("tpMapName");
41 
42 }
T getParameter(std::string const &) const
TagProbeMassEDMFilter::~TagProbeMassEDMFilter ( )

Definition at line 45 of file TagProbeMassEDMFilter.cc.

46 {
47 
48  // do anything here that needs to be done at desctruction time
49  // (e.g. close files, deallocate resources etc.)
50 
51 }

Member Function Documentation

void TagProbeMassEDMFilter::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 83 of file TagProbeMassEDMFilter.cc.

84 {
85 }
void TagProbeMassEDMFilter::endJob ( void  )
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 89 of file TagProbeMassEDMFilter.cc.

89  {
90 }
bool TagProbeMassEDMFilter::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDFilter.

Definition at line 60 of file TagProbeMassEDMFilter.cc.

References edm::Event::getByLabel(), and tpMapName.

Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filter(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setDataAccessor(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView().

61 {
62  using namespace edm;
63  using namespace std;
64 
65  // Pass the event if there are some TP pairs ...
67 
68  iEvent.getByLabel(tpMapName,"TPmass",tp_mass);
69  if (!tp_mass.isValid())
70  {
71  LogWarning("TagAndProbeFilter") << "Could not extract TP pairs ";
72  return false;
73  }
74 
75  int nrTP = tp_mass->size();
76 
77  if( nrTP > 0 ) return true;
78  else return false;
79 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:420

Member Data Documentation

std::string TagProbeMassEDMFilter::tpMapName
private

Definition at line 50 of file TagProbeMassEDMFilter.h.

Referenced by filter(), and TagProbeMassEDMFilter().