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 
15 #include <iostream>
16 #include <string>
17 
18 // user include files
28 
29 #include <string>
30 
31 class PFLinker : public edm::EDProducer {
32  public:
33 
34  explicit PFLinker(const edm::ParameterSet&);
35 
36  ~PFLinker();
37 
38  virtual void produce(edm::Event&, const edm::EventSetup&) override;
39 
40  private:
41 
42  template<typename T>
44  const edm::InputTag& tag,
45  const edm::Event& iEvent) const ;
46 
47  template<typename TYPE>
50  edm::Handle<TYPE>& inputObjCollection,
51  const std::map<edm::Ref<TYPE>, reco::PFCandidatePtr> & mapToTheCandidate,
52  const edm::OrphanHandle<reco::PFCandidateCollection> & newPFCandColl) const;
53 
54  private:
55 
57  std::vector<edm::InputTag> inputTagPFCandidates_;
58 
61 
64 
67 
70 
73 
76 
79 
82 
85 
86 };
87 
88 #endif
virtual void produce(edm::Event &, const edm::EventSetup &) override
Definition: PFLinker.cc:60
bool producePFCandidates_
Flags - if true: References will be towards new collection ; if false to the original one...
Definition: PFLinker.h:81
dictionary map
Definition: Association.py:205
~PFLinker()
Definition: PFLinker.cc:58
PFLinker(const edm::ParameterSet &)
Definition: PFLinker.cc:14
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:237
edm::InputTag inputTagMuons_
Input Muons.
Definition: PFLinker.h:66
int iEvent
Definition: GenABIO.cc:243
std::string nameOutputElectronsPF_
name of output ValueMap electrons
Definition: PFLinker.h:72
std::string nameOutputPhotonsPF_
name of output ValueMap photons
Definition: PFLinker.h:75
std::string nameOutputPF_
name of output collection of PFCandidate
Definition: PFLinker.h:69
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 fetchCollection(edm::Handle< T > &c, const edm::InputTag &tag, const edm::Event &iEvent) const
Definition: PFLinker.cc:219
edm::InputTag inputTagPhotons_
Input Photons.
Definition: PFLinker.h:63
bool fillMuonRefs_
Set muon refs and produce the value map?
Definition: PFLinker.h:84
edm::InputTag inputTagGsfElectrons_
Input GsfElectrons.
Definition: PFLinker.h:60
std::vector< edm::InputTag > inputTagPFCandidates_
Input PFCandidates.
Definition: PFLinker.h:57
std::string nameOutputMergedPF_
name of output merged ValueMap
Definition: PFLinker.h:78