CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:203
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
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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
std::string nameOutputMergedPF_
name of output merged ValueMap
Definition: PFLinker.h:76