#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(), pf2pat::TopProjectorAlgo< Top, Bottom >::name_, AlCaHLTBitMon_QueryRunRegistry::string, and pf2pat::TopProjectorAlgo< Top, Bottom >::verbose_.
|
inline |
Definition at line 48 of file TopProjectorAlgo.h.
References cmsBatch::handle, iEvent, pf2pat::TopProjectorAlgo< Top, Bottom >::maskAncestors(), summarizeEdmComparisonLogfiles::objectName, pf2pat::TopProjectorAlgo< Top, Bottom >::printAncestors(), pf2pat::TopProjectorAlgo< Top, Bottom >::processCollection(), pf2pat::TopProjectorAlgo< Top, Bottom >::produce(), and pf2pat::TopProjectorAlgo< Top, Bottom >::ptrToAncestor().
|
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 mps_fire::i, diffTreeTool::index, and edm::PtrVectorBase::size().
Referenced by pf2pat::TopProjectorAlgo< Top, Bottom >::processCollection(), and pf2pat::TopProjectorAlgo< Top, Bottom >::~TopProjectorAlgo().
|
private |
Definition at line 219 of file TopProjectorAlgo.h.
References gather_cfg::cout, mps_fire::i, edm::PtrVectorBase::id(), diffTreeTool::index, and edm::PtrVectorBase::size().
Referenced by pf2pat::TopProjectorAlgo< Top, Bottom >::processCollection(), and pf2pat::TopProjectorAlgo< Top, Bottom >::~TopProjectorAlgo().
|
private |
Definition at line 174 of file TopProjectorAlgo.h.
References gather_cfg::cout, mps_fire::i, edm::PtrVectorBase::id(), iEvent, pf2pat::TopProjectorAlgo< Top, Bottom >::maskAncestors(), pf2pat::TopProjectorAlgo< Top, Bottom >::printAncestors(), pf2pat::TopProjectorAlgo< Top, Bottom >::ptrToAncestor(), boostedHPSPFTaus_cff::topCollection, and pf2pat::TopProjectorAlgo< Top, Bottom >::verbose_.
Referenced by pf2pat::TopProjectorAlgo< Top, Bottom >::produce(), and pf2pat::TopProjectorAlgo< Top, Bottom >::~TopProjectorAlgo().
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, mps_fire::i, edm::ProductID::id(), iEvent, pf2pat::TopProjectorAlgo< Top, Bottom >::name_, pf2pat::TopProjectorAlgo< Top, Bottom >::processCollection(), and pf2pat::TopProjectorAlgo< Top, Bottom >::verbose_.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), HTMLExport.HTMLExportStatic::export(), and pf2pat::TopProjectorAlgo< Top, Bottom >::~TopProjectorAlgo().
|
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 mps_fire::i, and edm::PtrVector< T >::push_back().
Referenced by pf2pat::TopProjectorAlgo< Top, Bottom >::processCollection(), and pf2pat::TopProjectorAlgo< Top, Bottom >::~TopProjectorAlgo().
|
private |
Definition at line 88 of file TopProjectorAlgo.h.
Referenced by pf2pat::TopProjectorAlgo< Top, Bottom >::produce(), and pf2pat::TopProjectorAlgo< Top, Bottom >::TopProjectorAlgo().
|
private |
verbose ?
Definition at line 85 of file TopProjectorAlgo.h.
Referenced by pf2pat::TopProjectorAlgo< Top, Bottom >::processCollection(), pf2pat::TopProjectorAlgo< Top, Bottom >::produce(), and pf2pat::TopProjectorAlgo< Top, Bottom >::TopProjectorAlgo().