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<double> const &puppiWeights();
17  const std::vector<double> &puppiRawAlphas() { return fRawAlphas; }
18  const std::vector<double> &puppiAlphas() { return fVals; }
19  // const std::vector<double> puppiAlpha () {return fAlpha;}
20  const std::vector<double> &puppiAlphasMed() { return fAlphaMed; }
21  const std::vector<double> &puppiAlphasRMS() { return fAlphaRMS; }
22 
23  int puppiNAlgos() { return fNAlgos; }
24 
25 protected:
26  double goodVar(PuppiCandidate const &iPart, std::vector<PuppiCandidate> const &iParts, int iOpt, const double iRCone);
27  void getRMSAvg(int iOpt,
28  std::vector<PuppiCandidate> const &iConstits,
29  std::vector<PuppiCandidate> const &iParticles,
30  std::vector<PuppiCandidate> const &iChargeParticles);
31  void getRawAlphas(int iOpt,
32  std::vector<PuppiCandidate> const &iConstits,
33  std::vector<PuppiCandidate> const &iParticles,
34  std::vector<PuppiCandidate> const &iChargeParticles);
35  double getChi2FromdZ(double iDZ);
36  int getPuppiId(float iPt, float iEta);
37  double var_within_R(int iId,
38  const std::vector<PuppiCandidate> &particles,
39  const PuppiCandidate &centre,
40  const double R);
41 
43  const std::vector<RecoObj> *fRecoParticles;
44  std::vector<PuppiCandidate> fPFParticles;
45  std::vector<PuppiCandidate> fPFParticlesForVar;
46  std::vector<PuppiCandidate> fPFParticlesForVarChargedPV;
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  std::vector<PuppiAlgo> fPuppiAlgo;
66 };
67 #endif
PuppiContainer::fPuppiWeightCut
double fPuppiWeightCut
Definition: PuppiContainer.h:58
PuppiCandidate.h
PuppiContainer::getChi2FromdZ
double getChi2FromdZ(double iDZ)
Definition: PuppiContainer.cc:225
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:23
PuppiContainer::~PuppiContainer
~PuppiContainer()
Definition: PuppiContainer.cc:78
PuppiContainer::puppiWeights
const std::vector< double > & puppiWeights()
Definition: PuppiContainer.cc:240
PuppiContainer::fNeutralMinPt
double fNeutralMinPt
Definition: PuppiContainer.h:56
PuppiContainer::puppiAlphasMed
const std::vector< double > & puppiAlphasMed()
Definition: PuppiContainer.h:20
PuppiContainer::fRecoParticles
const std::vector< RecoObj > * fRecoParticles
Definition: PuppiContainer.h:43
ecalTrigSettings_cff.particles
particles
Definition: ecalTrigSettings_cff.py:11
PuppiCandidate
Definition: PuppiCandidate.h:4
PuppiContainer::fRawAlphas
std::vector< double > fRawAlphas
Definition: PuppiContainer.h:49
PuppiContainer::fPFParticlesForVarChargedPV
std::vector< PuppiCandidate > fPFParticlesForVarChargedPV
Definition: PuppiContainer.h:46
PuppiContainer::puppiRawAlphas
const std::vector< double > & puppiRawAlphas()
Definition: PuppiContainer.h:17
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:208
PuppiContainer::goodVar
double goodVar(PuppiCandidate const &iPart, std::vector< PuppiCandidate > const &iParts, int iOpt, const double iRCone)
Definition: PuppiContainer.cc:80
PuppiContainer
Definition: PuppiContainer.h:8
PuppiContainer::fVals
std::vector< double > fVals
Definition: PuppiContainer.h:48
PuppiContainer::fInvert
bool fInvert
Definition: PuppiContainer.h:54
PuppiContainer::fPuppiAlgo
std::vector< PuppiAlgo > fPuppiAlgo
Definition: PuppiContainer.h:65
edm::ParameterSet
Definition: ParameterSet.h:47
PuppiContainer::puppiAlphas
const std::vector< double > & puppiAlphas()
Definition: PuppiContainer.h:18
PuppiContainer::fPuppiDiagnostics
bool fPuppiDiagnostics
Definition: PuppiContainer.h:42
PuppiContainer::getRawAlphas
void getRawAlphas(int iOpt, std::vector< PuppiCandidate > const &iConstits, std::vector< PuppiCandidate > const &iParticles, std::vector< PuppiCandidate > const &iChargeParticles)
Definition: PuppiContainer.cc:186
PuppiContainer::var_within_R
double var_within_R(int iId, const std::vector< PuppiCandidate > &particles, const PuppiCandidate &centre, const double R)
Definition: PuppiContainer.cc:87
PuppiContainer::fApplyCHS
bool fApplyCHS
Definition: PuppiContainer.h:53
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::fPFParticlesForVar
std::vector< PuppiCandidate > fPFParticlesForVar
Definition: PuppiContainer.h:45
PuppiContainer::fEtaMaxPhotons
double fEtaMaxPhotons
Definition: PuppiContainer.h:60
PuppiContainer::fPFParticles
std::vector< PuppiCandidate > fPFParticles
Definition: PuppiContainer.h:44
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:130
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:21