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);
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 
26 protected:
27  double goodVar(PuppiCandidate const &iPart, std::vector<PuppiCandidate> const &iParts, int iOpt, const double iRCone);
28  void getRMSAvg(int iOpt,
29  std::vector<PuppiCandidate> const &iConstits,
30  std::vector<PuppiCandidate> const &iParticles,
31  std::vector<PuppiCandidate> const &iChargeParticles);
32  void getRawAlphas(int iOpt,
33  std::vector<PuppiCandidate> const &iConstits,
34  std::vector<PuppiCandidate> const &iParticles,
35  std::vector<PuppiCandidate> const &iChargeParticles);
36  double getChi2FromdZ(double iDZ);
37  int getPuppiId(float iPt, float iEta);
38  double var_within_R(int iId,
39  const std::vector<PuppiCandidate> &particles,
40  const PuppiCandidate &centre,
41  const double R);
42 
44  const std::vector<RecoObj> *fRecoParticles;
45  std::vector<PuppiCandidate> fPFParticles;
46  std::vector<PuppiCandidate> fChargedPV;
47  std::vector<double> fWeights;
48  std::vector<double> fVals;
49  std::vector<double> fRawAlphas;
50  std::vector<double> fAlphaMed;
51  std::vector<double> fAlphaRMS;
52 
53  bool fApplyCHS;
54  bool fInvert;
55  bool fUseExp;
56  double fNeutralMinPt;
57  double fNeutralSlope;
59  double fPtMaxPhotons;
63  int fNAlgos;
64  int fNPV;
65  double fPVFrac;
66  std::vector<PuppiAlgo> fPuppiAlgo;
67 };
68 #endif
PuppiContainer::fPuppiWeightCut
double fPuppiWeightCut
Definition: PuppiContainer.h:58
PuppiCandidate.h
PuppiContainer::getChi2FromdZ
double getChi2FromdZ(double iDZ)
Definition: PuppiContainer.cc:230
PuppiContainer::PuppiContainer
PuppiContainer(const edm::ParameterSet &iConfig)
Definition: PuppiContainer.cc:12
PuppiContainer::fPtMaxNeutrals
double fPtMaxNeutrals
Definition: PuppiContainer.h:61
PuppiContainer::puppiNAlgos
int puppiNAlgos()
Definition: PuppiContainer.h:24
PuppiContainer::pvParticles
const std::vector< PuppiCandidate > & pvParticles() const
Definition: PuppiContainer.h:16
PuppiContainer::~PuppiContainer
~PuppiContainer()
Definition: PuppiContainer.cc:66
PuppiContainer::puppiWeights
const std::vector< double > & puppiWeights()
Definition: PuppiContainer.cc:245
PuppiContainer::fNeutralMinPt
double fNeutralMinPt
Definition: PuppiContainer.h:56
PuppiContainer::puppiAlphasMed
const std::vector< double > & puppiAlphasMed()
Definition: PuppiContainer.h:21
PuppiContainer::fRecoParticles
const std::vector< RecoObj > * fRecoParticles
Definition: PuppiContainer.h:44
ecalTrigSettings_cff.particles
particles
Definition: ecalTrigSettings_cff.py:11
PuppiContainer::fRawAlphas
std::vector< double > fRawAlphas
Definition: PuppiContainer.h:49
PuppiContainer::puppiRawAlphas
const std::vector< double > & puppiRawAlphas()
Definition: PuppiContainer.h:18
PuppiContainer::fNeutralSlope
double fNeutralSlope
Definition: PuppiContainer.h:57
PuppiContainer::fPtMaxPhotons
double fPtMaxPhotons
Definition: PuppiContainer.h:59
PuppiContainer::setNPV
void setNPV(int iNPV)
Definition: PuppiContainer.h:13
PuppiContainer::getPuppiId
int getPuppiId(float iPt, float iEta)
Definition: PuppiContainer.cc:213
PuppiContainer::fPVFrac
double fPVFrac
Definition: PuppiContainer.h:65
PuppiContainer::goodVar
double goodVar(PuppiCandidate const &iPart, std::vector< PuppiCandidate > const &iParts, int iOpt, const double iRCone)
Definition: PuppiContainer.cc:68
PuppiContainer
Definition: PuppiContainer.h:8
PuppiContainer::fVals
std::vector< double > fVals
Definition: PuppiContainer.h:48
PuppiContainer::fChargedPV
std::vector< PuppiCandidate > fChargedPV
Definition: PuppiContainer.h:46
PuppiContainer::fInvert
bool fInvert
Definition: PuppiContainer.h:54
PuppiContainer::fPuppiAlgo
std::vector< PuppiAlgo > fPuppiAlgo
Definition: PuppiContainer.h:66
edm::ParameterSet
Definition: ParameterSet.h:36
PuppiContainer::puppiAlphas
const std::vector< double > & puppiAlphas()
Definition: PuppiContainer.h:19
PuppiContainer::fPuppiDiagnostics
bool fPuppiDiagnostics
Definition: PuppiContainer.h:43
PuppiContainer::getRawAlphas
void getRawAlphas(int iOpt, std::vector< PuppiCandidate > const &iConstits, std::vector< PuppiCandidate > const &iParticles, std::vector< PuppiCandidate > const &iChargeParticles)
Definition: PuppiContainer.cc:188
PuppiContainer::var_within_R
double var_within_R(int iId, const std::vector< PuppiCandidate > &particles, const PuppiCandidate &centre, const double R)
Definition: PuppiContainer.cc:75
PuppiContainer::fApplyCHS
bool fApplyCHS
Definition: PuppiContainer.h:53
PuppiCandidate
Definition: PuppiCandidate.h:8
PuppiContainer::fAlphaRMS
std::vector< double > fAlphaRMS
Definition: PuppiContainer.h:51
PuppiContainer::pfParticles
const std::vector< PuppiCandidate > & pfParticles() const
Definition: PuppiContainer.h:15
PuppiContainer::fAlphaMed
std::vector< double > fAlphaMed
Definition: PuppiContainer.h:50
PuppiContainer::fEtaMaxPhotons
double fEtaMaxPhotons
Definition: PuppiContainer.h:60
PuppiContainer::fPFParticles
std::vector< PuppiCandidate > fPFParticles
Definition: PuppiContainer.h:45
PuppiContainer::fPtMaxNeutralsStartSlope
double fPtMaxNeutralsStartSlope
Definition: PuppiContainer.h:62
RecoObj.h
PuppiContainer::fWeights
std::vector< double > fWeights
Definition: PuppiContainer.h:47
PuppiContainer::getRMSAvg
void getRMSAvg(int iOpt, std::vector< PuppiCandidate > const &iConstits, std::vector< PuppiCandidate > const &iParticles, std::vector< PuppiCandidate > const &iChargeParticles)
Definition: PuppiContainer.cc:136
L1TowerCalibrationProducer_cfi.iEta
iEta
Definition: L1TowerCalibrationProducer_cfi.py:60
PuppiContainer::fUseExp
bool fUseExp
Definition: PuppiContainer.h:55
PuppiAlgo.h
PuppiContainer::initialize
void initialize(const std::vector< RecoObj > &iRecoObjects)
Definition: PuppiContainer.cc:30
dttmaxenums::R
Definition: DTTMax.h:29
PuppiContainer::fNPV
int fNPV
Definition: PuppiContainer.h:64
PuppiContainer::fNAlgos
int fNAlgos
Definition: PuppiContainer.h:63
PuppiContainer::puppiAlphasRMS
const std::vector< double > & puppiAlphasRMS()
Definition: PuppiContainer.h:22