CMS 3D CMS Logo

PuppiContainer.h
Go to the documentation of this file.
1 #ifndef COMMONTOOLS_PUPPI_PUPPICONTAINER_H_
2 #define COMMONTOOLS_PUPPI_PUPPICONTAINER_H_
3 
7 
9 public:
10  PuppiContainer(const edm::ParameterSet &iConfig);
11  ~PuppiContainer();
12  void initialize(const std::vector<RecoObj> &iRecoObjects);
13  void setNPV(int iNPV){ fNPV = iNPV; }
14 
15  std::vector<PuppiCandidate> const & pfParticles() const { return fPFParticles; }
16  std::vector<PuppiCandidate> const & pvParticles() const { return fChargedPV; }
17  std::vector<double> const & puppiWeights();
18  const std::vector<double> & puppiRawAlphas(){ return fRawAlphas; }
19  const std::vector<double> & puppiAlphas(){ return fVals; }
20  // const std::vector<double> puppiAlpha () {return fAlpha;}
21  const std::vector<double> & puppiAlphasMed() {return fAlphaMed;}
22  const std::vector<double> & puppiAlphasRMS() {return fAlphaRMS;}
23 
24  int puppiNAlgos(){ return fNAlgos; }
25  std::vector<PuppiCandidate> const & puppiParticles() const { return fPupParticles;}
26 
27 protected:
28  double goodVar (PuppiCandidate const &iPart,std::vector<PuppiCandidate> const &iParts, int iOpt,const double iRCone);
29  void getRMSAvg (int iOpt,std::vector<PuppiCandidate> const &iConstits,std::vector<PuppiCandidate> const &iParticles,std::vector<PuppiCandidate> const &iChargeParticles);
30  void getRawAlphas (int iOpt,std::vector<PuppiCandidate> const &iConstits,std::vector<PuppiCandidate> const &iParticles,std::vector<PuppiCandidate> const &iChargeParticles);
31  double getChi2FromdZ(double iDZ);
32  int getPuppiId ( float iPt, float iEta);
33  double var_within_R (int iId, const std::vector<PuppiCandidate> & particles, const PuppiCandidate& centre, const double R);
34 
36  std::vector<RecoObj> fRecoParticles;
37  std::vector<PuppiCandidate> fPFParticles;
38  std::vector<PuppiCandidate> fChargedPV;
39  std::vector<PuppiCandidate> fPupParticles;
40  std::vector<double> fWeights;
41  std::vector<double> fVals;
42  std::vector<double> fRawAlphas;
43  std::vector<double> fAlphaMed;
44  std::vector<double> fAlphaRMS;
45 
46  bool fApplyCHS;
47  bool fInvert;
48  bool fUseExp;
49  double fNeutralMinPt;
50  double fNeutralSlope;
52  double fPtMax;
53  int fNAlgos;
54  int fNPV;
55  double fPVFrac;
56  std::vector<PuppiAlgo> fPuppiAlgo;
57 };
58 #endif
59 
std::vector< PuppiCandidate > const & pfParticles() const
std::vector< double > const & puppiWeights()
double var_within_R(int iId, const std::vector< PuppiCandidate > &particles, const PuppiCandidate &centre, const double R)
double getChi2FromdZ(double iDZ)
std::vector< PuppiCandidate > fPFParticles
const std::vector< double > & puppiAlphasMed()
const std::vector< double > & puppiAlphas()
std::vector< double > fVals
void getRMSAvg(int iOpt, std::vector< PuppiCandidate > const &iConstits, std::vector< PuppiCandidate > const &iParticles, std::vector< PuppiCandidate > const &iChargeParticles)
double fNeutralSlope
void getRawAlphas(int iOpt, std::vector< PuppiCandidate > const &iConstits, std::vector< PuppiCandidate > const &iParticles, std::vector< PuppiCandidate > const &iChargeParticles)
std::vector< double > fRawAlphas
PuppiContainer(const edm::ParameterSet &iConfig)
std::vector< double > fAlphaMed
std::vector< PuppiCandidate > fChargedPV
double fPuppiWeightCut
int getPuppiId(float iPt, float iEta)
std::vector< PuppiCandidate > const & puppiParticles() const
std::vector< PuppiCandidate > const & pvParticles() const
const std::vector< double > & puppiAlphasRMS()
std::vector< double > fWeights
std::vector< PuppiCandidate > fPupParticles
double goodVar(PuppiCandidate const &iPart, std::vector< PuppiCandidate > const &iParts, int iOpt, const double iRCone)
std::vector< RecoObj > fRecoParticles
std::vector< double > fAlphaRMS
std::vector< PuppiAlgo > fPuppiAlgo
void initialize(const std::vector< RecoObj > &iRecoObjects)
double fNeutralMinPt
void setNPV(int iNPV)
const std::vector< double > & puppiRawAlphas()