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() override;
40 
41  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 
86 };
87 
89 
90 #endif
edm::InputTag muonTag_
Input Muons.
Definition: PFLinker.h:63
edm::EDGetTokenT< reco::MuonCollection > inputTagMuons_
Definition: PFLinker.h:64
void produce(edm::Event &, const edm::EventSetup &) override
Definition: PFLinker.cc:64
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(const edm::ParameterSet &)
Definition: PFLinker.cc:8
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:206
edm::EDGetTokenT< reco::MuonToMuonMap > inputTagMuonMap_
Definition: PFLinker.h:65
char const * label
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
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
bool forceElectronsInHGCAL_
Put Electrons within HGCAL coming from SimPFProducer.
Definition: PFLinker.h:85
~PFLinker() override
Definition: PFLinker.cc:62
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