CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
PhotonIDValueMapProducer.cc File Reference
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include "DataFormats/Common/interface/View.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"
#include "DataFormats/PatCandidates/interface/Photon.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h"
#include <memory>
#include <vector>

Go to the source code of this file.

Classes

class  PhotonIDValueMapProducer
 

Typedefs

typedef edm::Ptr
< pat::PackedCandidate
patCandPtr
 
typedef edm::Ptr
< reco::PFCandidate
recoCandPtr
 

Functions

template<class T , class U >
bool isInFootprint (const T &thefootprint, const U &theCandidate)
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< PhotonIDValueMapProducer > > 
s_filler__LINE__ ("PhotonIDValueMapProducer")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< PhotonIDValueMapProducer > > 
s_maker__LINE__ ("PhotonIDValueMapProducer")
 

Typedef Documentation

Definition at line 27 of file PhotonIDValueMapProducer.cc.

Definition at line 26 of file PhotonIDValueMapProducer.cc.

Function Documentation

template<class T , class U >
bool isInFootprint ( const T thefootprint,
const U &  theCandidate 
)

Definition at line 33 of file PhotonIDValueMapProducer.cc.

Referenced by ElectronPFIsolationWithMapBasedVeto::isInIsolationCone(), PhotonPFIsolationWithMapBasedVeto::isInIsolationCone(), and PhotonIDValueMapProducer::produce().

33  {
34  for ( auto itr = thefootprint.begin(); itr != thefootprint.end(); ++itr ) {
35  if( itr->key() == theCandidate.key() ) return true;
36  }
37  return false;
38 }
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< PhotonIDValueMapProducer > > s_filler__LINE__ ( "PhotonIDValueMapProducer"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< PhotonIDValueMapProducer > > s_maker__LINE__ ( "PhotonIDValueMapProducer"  )
static