#include <XtoFFbarFilter.h>
Public Member Functions | |
virtual bool | filter (edm::Event &iEvent, const edm::EventSetup &iSetup) |
XtoFFbarFilter (const edm::ParameterSet &) | |
~XtoFFbarFilter () | |
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< ConsumesInfo > | consumesInfo () 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 | endJob () |
bool | found (const std::vector< int > &v, int j) |
bool | foundXtoFFbar (const reco::GenParticleRef &moth, const std::vector< int > &idMotherX, const std::vector< int > &idDaughterF) |
Private Attributes | |
edm::Handle < reco::GenParticleCollection > | genParticles_ |
std::vector< int > | idDaughterF_ |
std::vector< int > | idDaughterG_ |
std::vector< int > | idMotherX_ |
std::vector< int > | idMotherY_ |
unsigned int | rejectedEvents_ |
bool | requireY_ |
edm::InputTag | src_ |
unsigned int | totalEvents_ |
double | xSumCtau_ |
double | xSumPt_ |
double | xSumR_ |
unsigned int | xTotal_ |
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) |
XtoFFbarFilter A GenParticle-based filter that searches for X -> f fbar where X and f are any particle you choose. Can optionally also require a second decay Y -> g g-bar to be present in same event.
Definition at line 30 of file XtoFFbarFilter.h.
XtoFFbarFilter::XtoFFbarFilter | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 6 of file XtoFFbarFilter.cc.
References idDaughterG_, idMotherY_, and requireY_.
|
inline |
Definition at line 33 of file XtoFFbarFilter.h.
|
privatevirtual |
Reimplemented from edm::EDFilter.
Definition at line 103 of file XtoFFbarFilter.cc.
References gather_cfg::cout, rejectedEvents_, totalEvents_, xSumCtau_, xSumPt_, xSumR_, and xTotal_.
|
virtual |
Implements edm::EDFilter.
Definition at line 19 of file XtoFFbarFilter.cc.
References foundXtoFFbar(), genParticles_, edm::Event::getByLabel(), idDaughterF_, idDaughterG_, idMotherX_, idMotherY_, j, rejectedEvents_, requireY_, src_, and totalEvents_.
|
inlineprivate |
Definition at line 40 of file XtoFFbarFilter.h.
References spr::find(), and j.
Referenced by pf_01_customizeAll.SeqVisitor::__init__(), pf_01_customizeSimulation.SeqVisitor::__init__(), pf_01_customizeAll.SeqVisitor::enter(), pf_01_customizeSimulation.SeqVisitor::enter(), foundXtoFFbar(), pf_01_customizeAll.SeqVisitor::prepareSearch(), and pf_01_customizeSimulation.SeqVisitor::prepareSearch().
|
private |
|
private |
Definition at line 60 of file XtoFFbarFilter.h.
Referenced by filter().
|
private |
Definition at line 55 of file XtoFFbarFilter.h.
Referenced by filter().
|
private |
Definition at line 57 of file XtoFFbarFilter.h.
Referenced by filter(), and XtoFFbarFilter().
|
private |
Definition at line 54 of file XtoFFbarFilter.h.
Referenced by filter().
|
private |
Definition at line 56 of file XtoFFbarFilter.h.
Referenced by filter(), and XtoFFbarFilter().
|
private |
Definition at line 68 of file XtoFFbarFilter.h.
|
private |
Definition at line 58 of file XtoFFbarFilter.h.
Referenced by filter(), and XtoFFbarFilter().
|
private |
Definition at line 53 of file XtoFFbarFilter.h.
Referenced by filter().
|
private |
Definition at line 67 of file XtoFFbarFilter.h.
|
private |
Definition at line 66 of file XtoFFbarFilter.h.
Referenced by endJob(), and foundXtoFFbar().
|
private |
Definition at line 64 of file XtoFFbarFilter.h.
Referenced by endJob(), and foundXtoFFbar().
|
private |
Definition at line 65 of file XtoFFbarFilter.h.
Referenced by endJob(), and foundXtoFFbar().
|
private |
Definition at line 63 of file XtoFFbarFilter.h.
Referenced by endJob(), and foundXtoFFbar().