CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFTauVertexSelector.h
Go to the documentation of this file.
1 #ifndef PFTauVertexSelector_H
2 #define PFTauVertexSelector_H
3 
8 
15 
16 /*
17  * class PFTauVertexSelector
18  * created : January 26 2012,
19  * revised : Wed Jan 26 11:13:04 PDT 2012
20  * Authors : Andreas Hinzmann (CERN)
21  */
22 
24  public:
25  explicit PFTauVertexSelector(const edm::ParameterSet& iConfig){
26  tauSrc_ = iConfig.getParameter<edm::InputTag>("tauSrc");
27  useVertex_ = iConfig.getParameter<bool>("useVertex");
28  vertexSrc_ = iConfig.getParameter<edm::InputTag>("vertexSrc");
29  useBeamSpot_ = iConfig.getParameter<bool>("useBeamSpot");
30  beamSpotSrc_ = iConfig.getParameter<edm::InputTag>("beamSpotSrc");
31  useLeadingTrack_ = iConfig.getParameter<bool>("useLeadingTrack");
32  trackSrc_ = iConfig.getParameter<std::vector<edm::InputTag> >("trackSrc");
33  useLeadingRecoCandidate_ = iConfig.getParameter<bool>("useLeadingRecoCandidate");
34  recoCandidateSrc_ = iConfig.getParameter<std::vector<edm::InputTag> >("recoCandidateSrc");
35  useTriggerFilterElectrons_ = iConfig.getParameter<bool>("useTriggerFilterElectrons");
36  triggerFilterElectronsSrc_ = iConfig.getParameter<edm::InputTag>("triggerFilterElectronsSrc");
37  useTriggerFilterMuons_ = iConfig.getParameter<bool>("useTriggerFilterMuons");
38  triggerFilterMuonsSrc_ = iConfig.getParameter<edm::InputTag>("triggerFilterMuonsSrc");
39  dZ_ = iConfig.getParameter<double>("dZ");
40  filterOnNTaus_ = iConfig.getParameter<uint32_t>("filterOnNTaus");
41  produces<reco::PFTauCollection>();
42  }
44  private:
45  virtual bool filter(edm::Event&, const edm::EventSetup&);
47  bool useVertex_;
52  std::vector<edm::InputTag> trackSrc_;
54  std::vector<edm::InputTag> recoCandidateSrc_;
59  double dZ_;
60  uint32_t filterOnNTaus_;
61 };
62 
63 #endif
edm::InputTag triggerFilterElectronsSrc_
T getParameter(std::string const &) const
std::vector< edm::InputTag > recoCandidateSrc_
std::vector< edm::InputTag > trackSrc_
edm::InputTag triggerFilterMuonsSrc_
edm::InputTag beamSpotSrc_
virtual bool filter(edm::Event &, const edm::EventSetup &)
PFTauVertexSelector(const edm::ParameterSet &iConfig)