CMS 3D CMS Logo

PFLinker.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFProducer_PFLinker_h
2 #define RecoParticleFlow_PFProducer_PFLinker_h
3 
13 #include <iostream>
14 #include <string>
15 
16 // user include files
31 
32 #include <string>
33 
35  public:
36 
37  explicit PFLinker(const edm::ParameterSet&);
38 
39  ~PFLinker();
40 
41  virtual void produce(edm::Event&, const edm::EventSetup&) override;
42 
43  private:
44  template<typename TYPE>
47  edm::Handle<TYPE>& inputObjCollection,
48  const std::map<edm::Ref<TYPE>, reco::PFCandidatePtr> & mapToTheCandidate,
49  const edm::OrphanHandle<reco::PFCandidateCollection> & newPFCandColl) const;
50 
51  private:
52 
54  std::vector<edm::EDGetTokenT<reco::PFCandidateCollection> > inputTagPFCandidates_;
55 
58 
61 
68 
71 
74 
77 
80 
83 
84 };
85 
87 
88 #endif
edm::InputTag muonTag_
Input Muons.
Definition: PFLinker.h:63
edm::EDGetTokenT< reco::MuonCollection > inputTagMuons_
Definition: PFLinker.h:64
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void produce(edm::Event &, const edm::EventSetup &) override
Definition: PFLinker.cc:62
bool producePFCandidates_
Flags - if true: References will be towards new collection ; if false to the original one...
Definition: PFLinker.h:79
edm::EDGetTokenT< reco::PhotonCollection > inputTagPhotons_
Input Photons.
Definition: PFLinker.h:60
~PFLinker()
Definition: PFLinker.cc:60
PFLinker(const edm::ParameterSet &)
Definition: PFLinker.cc:9
edm::ValueMap< reco::PFCandidatePtr > fillValueMap(edm::Event &event, std::string label, edm::Handle< TYPE > &inputObjCollection, const std::map< edm::Ref< TYPE >, reco::PFCandidatePtr > &mapToTheCandidate, const edm::OrphanHandle< reco::PFCandidateCollection > &newPFCandColl) const
Definition: PFLinker.cc:201
edm::EDGetTokenT< reco::MuonToMuonMap > inputTagMuonMap_
Definition: PFLinker.h:65
std::string nameOutputElectronsPF_
name of output ValueMap electrons
Definition: PFLinker.h:70
std::string nameOutputPhotonsPF_
name of output ValueMap photons
Definition: PFLinker.h:73
std::string nameOutputPF_
name of output collection of PFCandidate
Definition: PFLinker.h:67
bool fillMuonRefs_
Set muon refs and produce the value map?
Definition: PFLinker.h:82
edm::EDGetTokenT< reco::GsfElectronCollection > inputTagGsfElectrons_
Input GsfElectrons.
Definition: PFLinker.h:57
std::vector< edm::EDGetTokenT< reco::PFCandidateCollection > > inputTagPFCandidates_
Input PFCandidates.
Definition: PFLinker.h:54
Definition: event.py:1
std::string nameOutputMergedPF_
name of output merged ValueMap
Definition: PFLinker.h:76