CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/RecoTauTag/TauTagTools/interface/PFTauQualityCutWrapper.h

Go to the documentation of this file.
00001 #ifndef RecoTauTag_TauTagTools_PFTauQualityCutWrapper_h
00002 #define RecoTauTag_TauTagTools_PFTauQualityCutWrapper_h
00003 
00004 /*
00005  * THIS CLASS IS DEPRECATED!!
00006  *
00007  */
00008 
00009 #include "RecoTauTag/TauTagTools/interface/TauTagTools.h"
00010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00011 #include "DataFormats/TauReco/interface/PFTau.h"
00012 
00013 class PFTauQualityCutWrapper {
00014    public:
00015       PFTauQualityCutWrapper(const edm::ParameterSet& pset)
00016       {
00017          isoQCuts.fill(pset.getParameter<edm::ParameterSet>("isolationQualityCuts"));
00018          signalQCuts.fill(pset.getParameter<edm::ParameterSet>("signalQualityCuts"));
00019       }
00020 
00021       struct QualityCutSet {
00022          // charged hadron & track cuts
00023          bool useTracksInsteadOfPF;
00024          double minTrackPt;
00025          double maxTrackChi2;
00026          uint32_t minTrackPixelHits;
00027          uint32_t minTrackHits; 
00028          double maxTransverseImpactParameter;
00029          double maxDeltaZ;
00030          // gamma cuts
00031          double minGammaEt;
00032          void fill(const edm::ParameterSet& pset) {
00033             useTracksInsteadOfPF         = pset.getParameter<bool>("useTracksInsteadOfPFHadrons");
00034             minTrackPt                   = pset.getParameter<double>("minTrackPt");
00035             maxTrackChi2                 = pset.getParameter<double>("maxTrackChi2");
00036             minTrackPixelHits            = pset.getParameter<uint32_t>("minTrackPixelHits");
00037             minTrackHits                 = pset.getParameter<uint32_t>("minTrackHits");
00038             maxTransverseImpactParameter = pset.getParameter<double>("maxTransverseImpactParameter");
00039             maxDeltaZ                    = pset.getParameter<double>("maxDeltaZ");
00040             minGammaEt                   = pset.getParameter<double>("minGammaEt"); 
00041          }
00042       };
00043 
00045       void isolationChargedObjects(const reco::PFTau&, const reco::Vertex&, std::vector<reco::LeafCandidate>&);
00046       void isolationPUObjects(const reco::PFTau&, const reco::Vertex&, std::vector<reco::LeafCandidate>&);
00048       void isolationGammaObjects(const reco::PFTau&, std::vector<reco::LeafCandidate>&);
00049 
00051       void signalChargedObjects(const reco::PFTau&, const reco::Vertex&, std::vector<reco::LeafCandidate>&);
00053       void signalGammaObjects(const reco::PFTau&, std::vector<reco::LeafCandidate>&);
00054 
00055    private:
00056       QualityCutSet isoQCuts;
00057       QualityCutSet signalQCuts;
00058 };
00059 
00060 #endif