#include <TopProjector.h>
Public Types | |
typedef std::vector< Bottom > | BottomCollection |
typedef edm::Handle < std::vector< Bottom > > | BottomHandle |
typedef edm::Ptr< Bottom > | BottomPtr |
typedef std::vector< Top > | TopCollection |
typedef edm::Handle < std::vector< Top > > | TopHandle |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
void | produce (edm::Event &, const edm::EventSetup &) |
TopProjector (const edm::ParameterSet &) | |
~TopProjector () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
void | maskAncestors (const reco::CandidatePtrVector &ancestors, std::vector< bool > &masked) const |
void | printAncestors (const reco::CandidatePtrVector &ancestors, const edm::Handle< std::vector< Bottom > > &allPFCandidates) const |
void | processCollection (const edm::Handle< std::vector< Top > > &handle, const edm::Handle< std::vector< Bottom > > &allPFCandidates, std::vector< bool > &masked, const char *objectName, const edm::Event &iEvent) const |
void | ptrToAncestor (reco::CandidatePtr candRef, reco::CandidatePtrVector &ancestors, const edm::ProductID &ancestorsID, const edm::Event &iEvent) const |
Private Attributes | |
bool | enable_ |
enable? if not, all candidates in the bottom collection are copied to the output collection More... | |
edm::InputTag | inputTagBottom_ |
input tag for the masked collection. More... | |
edm::InputTag | inputTagTop_ |
input tag for the top (masking) collection More... | |
std::string | name_ |
name of the top projection More... | |
bool | verbose_ |
verbose ? More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Definition at line 37 of file TopProjector.h.
typedef std::vector<Bottom> TopProjector< Top, Bottom >::BottomCollection |
Definition at line 43 of file TopProjector.h.
typedef edm::Handle< std::vector<Bottom> > TopProjector< Top, Bottom >::BottomHandle |
Definition at line 44 of file TopProjector.h.
typedef edm::Ptr<Bottom> TopProjector< Top, Bottom >::BottomPtr |
Definition at line 45 of file TopProjector.h.
typedef std::vector<Top> TopProjector< Top, Bottom >::TopCollection |
Definition at line 41 of file TopProjector.h.
typedef edm::Handle< std::vector<Top> > TopProjector< Top, Bottom >::TopHandle |
Definition at line 42 of file TopProjector.h.
TopProjector< Top, Bottom >::TopProjector | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 103 of file TopProjector.h.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), TopProjector< Top, Bottom >::inputTagBottom_, TopProjector< Top, Bottom >::inputTagTop_, TopProjector< Top, Bottom >::name_, and TopProjector< Top, Bottom >::verbose_.
|
inline |
Definition at line 49 of file TopProjector.h.
|
private |
ancestors is a RefToBase vector. For each object in this vector get the index and set the corresponding slot to true in the masked vector
Definition at line 321 of file TopProjector.h.
References i, getHLTprescales::index, and edm::PtrVectorBase::size().
|
private |
Definition at line 260 of file TopProjector.h.
References gather_cfg::cout, i, edm::PtrVectorBase::id(), getHLTprescales::index, and edm::PtrVectorBase::size().
|
private |
Definition at line 215 of file TopProjector.h.
References gather_cfg::cout, i, edm::PtrVectorBase::id(), iEvent, and benchmark_cfg::topCollection.
|
virtual |
Implements edm::EDProducer.
Definition at line 118 of file TopProjector.h.
References edm::Provenance::branchDescription(), gather_cfg::cout, edm::EventID::event(), edm::Event::getByLabel(), edm::Event::getProvenance(), i, edm::EventBase::id(), edm::HandleBase::id(), iEvent, and edm::Event::put().
|
private |
fills ancestors with ptrs to the PFCandidates that in one way or another contribute to the candidate pointed to by candPtr
Definition at line 282 of file TopProjector.h.
References edm::Provenance::branchDescription(), gather_cfg::cout, edm::Event::getProvenance(), i, edm::Ptr< T >::id(), edm::Ptr< T >::key(), and edm::PtrVector< T >::push_back().
|
private |
enable? if not, all candidates in the bottom collection are copied to the output collection
Definition at line 84 of file TopProjector.h.
|
private |
input tag for the masked collection.
Definition at line 96 of file TopProjector.h.
Referenced by TopProjector< Top, Bottom >::TopProjector().
|
private |
input tag for the top (masking) collection
Definition at line 93 of file TopProjector.h.
Referenced by TopProjector< Top, Bottom >::TopProjector().
|
private |
name of the top projection
Definition at line 90 of file TopProjector.h.
Referenced by Config.Process::fillProcessDesc(), and TopProjector< Top, Bottom >::TopProjector().
|
private |
verbose ?
Definition at line 87 of file TopProjector.h.
Referenced by TopProjector< Top, Bottom >::TopProjector().