#include <ParticleFlowForChargedMETProducer.h>
|
| ParticleFlowForChargedMETProducer (const edm::ParameterSet &) |
|
| ~ParticleFlowForChargedMETProducer () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
| 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 () |
|
| 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 |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
ParticleFlowForChargedMETProducer::ParticleFlowForChargedMETProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 10 of file ParticleFlowForChargedMETProducer.cc.
References edm::ParameterSet::getParameter().
21 produces<PFCandidateCollection>();
T getParameter(std::string const &) const
double neutralEtThreshold
edm::InputTag pfCollectionLabel
edm::InputTag pvCollectionLabel
edm::EDGetTokenT< VertexCollection > pvCollectionToken
edm::EDGetTokenT< PFCandidateCollection > pfCandidatesToken
ParticleFlowForChargedMETProducer::~ParticleFlowForChargedMETProducer |
( |
| ) |
|
Implements edm::EDProducer.
Definition at line 24 of file ParticleFlowForChargedMETProducer.cc.
References PFRecoTauChargedHadronBuilderPlugins_cfi::chargedPFCandidates, edm::Event::getByToken(), i, edm::Ptr< T >::isNonnull(), reco::tau::pfCandidates(), and edm::Event::put().
30 VertexCollection::const_iterator vertex = pvCollection->begin();
38 if (pvCollection->size()>0) {
39 for(
unsigned i=0;
i<pfCandidates->size();
i++ ) {
43 if (pfCandPtr->trackRef().isNonnull()) {
44 if (pfCandPtr->trackRef()->dz((*vertex).position()) <
dzCut) {
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double neutralEtThreshold
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
tuple chargedPFCandidates
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
Particle reconstructed by the particle flow algorithm.
edm::EDGetTokenT< VertexCollection > pvCollectionToken
edm::EDGetTokenT< PFCandidateCollection > pfCandidatesToken
double reco::ParticleFlowForChargedMETProducer::dzCut |
|
private |
double reco::ParticleFlowForChargedMETProducer::neutralEtThreshold |
|
private |
edm::InputTag reco::ParticleFlowForChargedMETProducer::pfCollectionLabel |
|
private |
edm::InputTag reco::ParticleFlowForChargedMETProducer::pvCollectionLabel |
|
private |