CMS 3D CMS Logo

NoPileUpMEtUtilities.h
Go to the documentation of this file.
1 #ifndef RecoMET_METPUSubtraction_noPileUpMEtUtilities_h
2 #define RecoMET_METPUSubtraction_noPileUpMEtUtilities_h
3 
5 
10 
11 #include <vector>
12 
14 public:
15  enum { kOutsideJet = 0, kWithin, kAll };
17 
20 
21  // general auxiliary functions
23 
24  //-------------------------------------------------------------------------------
25  // auxiliary functions for jets
27  const std::vector<reco::Candidate::LorentzVector>&,
28  double,
29  bool);
30 
31  // auxiliary functions for PFCandidates
33  const std::vector<reco::Candidate::LorentzVector>&,
34  double,
35  bool);
36 
37  // common internal functions for jets and pfCandidates
40 
41  CommonMETData computeRecoil(int metType, double& sumAbsPx, double& sumAbsPy);
42  //-------------------------------------------------------------------------------
43 
44 private:
45  // common internal functions for jets and pfCandidates, to compute the different object sums
47  bool neutralFracOnly,
48  double& sumAbsPx,
49  double& sumAbsPy);
50 
52  double minPt,
53  double maxPt,
54  int type,
55  bool isCharged,
56  int isWithinJet);
57 
58 private:
59  double minPtDef_;
60  double maxPtDef_;
61 
67 
73 
79 };
80 
81 #endif
NoPileUpMEtUtilities::~NoPileUpMEtUtilities
~NoPileUpMEtUtilities()
Definition: NoPileUpMEtUtilities.cc:13
NoPileUpMEtUtilities::finalizeMEtData
void finalizeMEtData(CommonMETData &)
Definition: NoPileUpMEtUtilities.cc:19
zmumugammaAnalyzer_cfi.pfCandidates
pfCandidates
Definition: zmumugammaAnalyzer_cfi.py:11
NoPileUpMEtUtilities::kOutsideJet
Definition: NoPileUpMEtUtilities.h:15
NoPileUpMEtUtilities::kWithin
Definition: NoPileUpMEtUtilities.h:15
NoPileUpMEtUtilities::nUncPfcSum_
CommonMETData nUncPfcSum_
Definition: NoPileUpMEtUtilities.h:64
PUSubMETDataFwd.h
NoPileUpMEtUtilities::cleanPFCandidates
reco::PUSubMETCandInfoCollection cleanPFCandidates(const reco::PUSubMETCandInfoCollection &, const std::vector< reco::Candidate::LorentzVector > &, double, bool)
Definition: NoPileUpMEtUtilities.cc:81
NoPileUpMEtUtilities::kNeutralUncMET
Definition: NoPileUpMEtUtilities.h:16
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
CommonMETData
Structure containing data common to all types of MET.
Definition: CommonMETData.h:12
objects.autophobj.metType
metType
Definition: autophobj.py:214
MuonErrorMatrixAnalyzer_cfi.maxPt
maxPt
Definition: MuonErrorMatrixAnalyzer_cfi.py:19
NoPileUpMEtUtilities::cleanJets
reco::PUSubMETCandInfoCollection cleanJets(const reco::PUSubMETCandInfoCollection &, const std::vector< reco::Candidate::LorentzVector > &, double, bool)
Definition: NoPileUpMEtUtilities.cc:28
NoPileUpMEtUtilities
Definition: NoPileUpMEtUtilities.h:13
NoPileUpMEtUtilities::kChPUMET
Definition: NoPileUpMEtUtilities.h:16
NoPileUpMEtUtilities::computeCandidateSum
CommonMETData computeCandidateSum(const reco::PUSubMETCandInfoCollection &cands, bool neutralFracOnly, double &sumAbsPx, double &sumAbsPy)
Definition: NoPileUpMEtUtilities.cc:49
NoPileUpMEtUtilities::chPUPfcSumAbsPx_
double chPUPfcSumAbsPx_
Definition: NoPileUpMEtUtilities.h:69
NoPileUpMEtUtilities::nHSJetSum_
CommonMETData nHSJetSum_
Definition: NoPileUpMEtUtilities.h:65
NoPileUpMEtUtilities::chPUPfcSum_
CommonMETData chPUPfcSum_
Definition: NoPileUpMEtUtilities.h:63
NoPileUpMEtUtilities::NoPileUpMEtUtilities
NoPileUpMEtUtilities()
Definition: NoPileUpMEtUtilities.cc:8
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15205
NoPileUpMEtUtilities::nHSJetSumAbsPy_
double nHSJetSumAbsPy_
Definition: NoPileUpMEtUtilities.h:77
NoPileUpMEtUtilities::kHadronicHSMET
Definition: NoPileUpMEtUtilities.h:16
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
NoPileUpMEtUtilities::chHSPfcSumAbsPx_
double chHSPfcSumAbsPx_
Definition: NoPileUpMEtUtilities.h:68
NoPileUpMEtUtilities::chHSPfcSum_
CommonMETData chHSPfcSum_
Definition: NoPileUpMEtUtilities.h:62
NoPileUpMEtUtilities::minPtDef_
double minPtDef_
Definition: NoPileUpMEtUtilities.h:59
CommonMETData.h
NoPileUpMEtUtilities::nPUJetSumAbsPy_
double nPUJetSumAbsPy_
Definition: NoPileUpMEtUtilities.h:78
beam_dqm_sourceclient-live_cfg.minPt
minPt
Definition: beam_dqm_sourceclient-live_cfg.py:321
NoPileUpMEtUtilities::nPUJetSumAbsPx_
double nPUJetSumAbsPx_
Definition: NoPileUpMEtUtilities.h:72
NoPileUpMEtUtilities::chHSPfcSumAbsPy_
double chHSPfcSumAbsPy_
Definition: NoPileUpMEtUtilities.h:74
NoPileUpMEtUtilities::nHSJetSumAbsPx_
double nHSJetSumAbsPx_
Definition: NoPileUpMEtUtilities.h:71
NoPileUpMEtUtilities::nUncPfcSumAbsPy_
double nUncPfcSumAbsPy_
Definition: NoPileUpMEtUtilities.h:76
NoPileUpMEtUtilities::nUncPfcSumAbsPx_
double nUncPfcSumAbsPx_
Definition: NoPileUpMEtUtilities.h:70
PUSubMETData.h
NoPileUpMEtUtilities::chPUPfcSumAbsPy_
double chPUPfcSumAbsPy_
Definition: NoPileUpMEtUtilities.h:75
NoPileUpMEtUtilities::computeAllSums
void computeAllSums(const reco::PUSubMETCandInfoCollection &jets, const reco::PUSubMETCandInfoCollection &pfCandidates)
Definition: NoPileUpMEtUtilities.cc:140
NoPileUpMEtUtilities::selectCandidates
reco::PUSubMETCandInfoCollection selectCandidates(const reco::PUSubMETCandInfoCollection &cands, double minPt, double maxPt, int type, bool isCharged, int isWithinJet)
Definition: NoPileUpMEtUtilities.cc:107
NoPileUpMEtUtilities::maxPtDef_
double maxPtDef_
Definition: NoPileUpMEtUtilities.h:60
NoPileUpMEtUtilities::kHadronicPUMET
Definition: NoPileUpMEtUtilities.h:16
NoPileUpMEtUtilities::computeRecoil
CommonMETData computeRecoil(int metType, double &sumAbsPx, double &sumAbsPy)
Definition: NoPileUpMEtUtilities.cc:169
Candidate.h
reco::PUSubMETCandInfoCollection
std::vector< reco::PUSubMETCandInfo > PUSubMETCandInfoCollection
Definition: PUSubMETDataFwd.h:9
ParameterSet.h
NoPileUpMEtUtilities::kChHSMET
Definition: NoPileUpMEtUtilities.h:16
NoPileUpMEtUtilities::nPUJetSum_
CommonMETData nPUJetSum_
Definition: NoPileUpMEtUtilities.h:66
NoPileUpMEtUtilities::kAll
Definition: NoPileUpMEtUtilities.h:15