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&);
39 
40  virtual void beginRun(edm::Run& run,const edm::EventSetup & es);
41 
42  private:
43 
44  template<typename T>
46  const edm::InputTag& tag,
47  const edm::Event& iEvent) const ;
48 
49  template<typename TYPE>
51  std::string label,
52  edm::Handle<TYPE>& inputObjCollection,
53  const std::map<edm::Ref<TYPE>, reco::PFCandidatePtr> & mapToTheCandidate,
54  const edm::OrphanHandle<reco::PFCandidateCollection> & newPFCandColl) const;
55 
56  private:
57 
59  std::vector<edm::InputTag> inputTagPFCandidates_;
60 
63 
66 
69 
71  std::string nameOutputPF_;
72 
75 
77  std::string nameOutputPhotonsPF_;
78 
80  std::string nameOutputMergedPF_;
81 
84 
87 
88 };
89 
90 #endif
virtual void produce(edm::Event &, const edm::EventSetup &)
Definition: PFLinker.cc:62
bool producePFCandidates_
Flags - if true: References will be towards new collection ; if false to the original one...
Definition: PFLinker.h:83
~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:239
edm::InputTag inputTagMuons_
Input Muons.
Definition: PFLinker.h:68
int iEvent
Definition: GenABIO.cc:243
std::string nameOutputElectronsPF_
name of output ValueMap electrons
Definition: PFLinker.h:74
std::string nameOutputPhotonsPF_
name of output ValueMap photons
Definition: PFLinker.h:77
std::string nameOutputPF_
name of output collection of PFCandidate
Definition: PFLinker.h:71
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:221
edm::InputTag inputTagPhotons_
Input Photons.
Definition: PFLinker.h:65
virtual void beginRun(edm::Run &run, const edm::EventSetup &es)
Definition: PFLinker.cc:60
bool fillMuonRefs_
Set muon refs and produce the value map?
Definition: PFLinker.h:86
edm::InputTag inputTagGsfElectrons_
Input GsfElectrons.
Definition: PFLinker.h:62
std::vector< edm::InputTag > inputTagPFCandidates_
Input PFCandidates.
Definition: PFLinker.h:59
Definition: Run.h:33
std::string nameOutputMergedPF_
name of output merged ValueMap
Definition: PFLinker.h:80