CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
CommonMETData computeRecoil(int metType, double &sumAbsPx, double &sumAbsPy)
reco::PUSubMETCandInfoCollection cleanJets(const reco::PUSubMETCandInfoCollection &, const std::vector< reco::Candidate::LorentzVector > &, double, bool)
void computeAllSums(const reco::PUSubMETCandInfoCollection &jets, const reco::PUSubMETCandInfoCollection &pfCandidates)
vector< PseudoJet > jets
std::vector< reco::PUSubMETCandInfo > PUSubMETCandInfoCollection
Structure containing data common to all types of MET.
Definition: CommonMETData.h:12
CommonMETData computeCandidateSum(const reco::PUSubMETCandInfoCollection &cands, bool neutralFracOnly, double &sumAbsPx, double &sumAbsPy)
tuple metType
MET
Definition: autophobj.py:214
reco::PUSubMETCandInfoCollection cleanPFCandidates(const reco::PUSubMETCandInfoCollection &, const std::vector< reco::Candidate::LorentzVector > &, double, bool)
reco::PUSubMETCandInfoCollection selectCandidates(const reco::PUSubMETCandInfoCollection &cands, double minPt, double maxPt, int type, bool isCharged, int isWithinJet)
void finalizeMEtData(CommonMETData &)