#include <TopProjectorAlgo.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 Member Functions | |
BottomCollection | produce (const TopHandle &topHandle, const BottomHandle &bottomHandle, const edm::EventBase &iEvent) |
TopProjectorAlgo (const edm::ParameterSet &) | |
~TopProjectorAlgo () | |
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::EventBase &iEvent) const |
void | ptrToAncestor (reco::CandidatePtr candRef, reco::CandidatePtrVector &ancestors, const edm::ProductID &ancestorsID, const edm::EventBase &iEvent) const |
Private Attributes | |
std::string | name_ |
bool | verbose_ |
verbose ? More... | |
Definition at line 36 of file TopProjectorAlgo.h.
typedef std::vector<Bottom> pf2pat::TopProjectorAlgo< Top, Bottom >::BottomCollection |
Definition at line 42 of file TopProjectorAlgo.h.
typedef edm::Handle< std::vector<Bottom> > pf2pat::TopProjectorAlgo< Top, Bottom >::BottomHandle |
Definition at line 43 of file TopProjectorAlgo.h.
typedef edm::Ptr<Bottom> pf2pat::TopProjectorAlgo< Top, Bottom >::BottomPtr |
Definition at line 44 of file TopProjectorAlgo.h.
typedef std::vector<Top> pf2pat::TopProjectorAlgo< Top, Bottom >::TopCollection |
Definition at line 40 of file TopProjectorAlgo.h.
typedef edm::Handle< std::vector<Top> > pf2pat::TopProjectorAlgo< Top, Bottom >::TopHandle |
Definition at line 41 of file TopProjectorAlgo.h.
TopProjectorAlgo::TopProjectorAlgo | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 96 of file TopProjectorAlgo.h.
References edm::ParameterSet::getUntrackedParameter().
|
inline |
Definition at line 48 of file TopProjectorAlgo.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 282 of file TopProjectorAlgo.h.
References i, getHLTprescales::index, and edm::PtrVectorBase::size().
|
private |
Definition at line 219 of file TopProjectorAlgo.h.
References gather_cfg::cout, i, edm::PtrVectorBase::id(), getHLTprescales::index, and edm::PtrVectorBase::size().
|
private |
Definition at line 174 of file TopProjectorAlgo.h.
References gather_cfg::cout, i, edm::PtrVectorBase::id(), iEvent, and benchmark_cfg::topCollection.
std::vector< Bottom > TopProjectorAlgo::produce | ( | const TopHandle & | topHandle, |
const BottomHandle & | bottomHandle, | ||
const edm::EventBase & | iEvent | ||
) |
Definition at line 104 of file TopProjectorAlgo.h.
References gather_cfg::cout, i, edm::ProductID::id(), and iEvent.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
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 241 of file TopProjectorAlgo.h.
References i, and edm::PtrVector< T >::push_back().
|
private |
Definition at line 88 of file TopProjectorAlgo.h.
|
private |
verbose ?
Definition at line 85 of file TopProjectorAlgo.h.