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
26 
27 #include <string>
28 
29 class PFLinker : public edm::EDProducer {
30  public:
31 
32  explicit PFLinker(const edm::ParameterSet&);
33 
34  ~PFLinker();
35 
36  virtual void produce(edm::Event&, const edm::EventSetup&) override;
37 
38  private:
39 
40  template<typename T>
42  const edm::InputTag& tag,
43  const edm::Event& iEvent) const ;
44 
45  template<typename TYPE>
48  edm::Handle<TYPE>& inputObjCollection,
49  const std::map<edm::Ref<TYPE>, reco::PFCandidatePtr> & mapToTheCandidate,
50  const edm::OrphanHandle<reco::PFCandidateCollection> & newPFCandColl) const;
51 
52  private:
53 
55  std::vector<edm::InputTag> inputTagPFCandidates_;
56 
59 
62 
65 
68 
71 
74 
77 
80 
83 
84 };
85 
86 #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:79
~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:64
int iEvent
Definition: GenABIO.cc:243
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 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:61
bool fillMuonRefs_
Set muon refs and produce the value map?
Definition: PFLinker.h:82
edm::InputTag inputTagGsfElectrons_
Input GsfElectrons.
Definition: PFLinker.h:58
std::vector< edm::InputTag > inputTagPFCandidates_
Input PFCandidates.
Definition: PFLinker.h:55
std::string nameOutputMergedPF_
name of output merged ValueMap
Definition: PFLinker.h:76