CMS 3D CMS Logo

FFTGenericScaleCalculator.h
Go to the documentation of this file.
1 #ifndef JetMETCorrections_FFTJetObjects_FFTGenericScaleCalculator_h
2 #define JetMETCorrections_FFTJetObjects_FFTGenericScaleCalculator_h
3 
4 //
5 // Generic variable mapper for FFTJet jet corrections
6 //
7 #include <cmath>
8 #include <vector>
9 
12 
14 public:
16 
17  inline ~FFTGenericScaleCalculator() override {}
18 
19  void mapFFTJet(const reco::Jet& jet,
20  const reco::FFTJet<float>& fftJet,
21  const math::XYZTLorentzVector& current,
22  double* buf,
23  unsigned dim) const override;
24 
25 private:
26  inline double f_safeLog(const double x) const {
27  if (x > 0.0)
28  return log(x);
29  else
30  return m_minLog;
31  }
32 
33  std::vector<double> m_factors;
34  double m_minLog;
35 
36  // Variables from the "current" Lorentz vector
37  int m_eta;
38  int m_phi;
39  int m_pt;
40  int m_logPt;
41  int m_mass;
42  int m_logMass;
43  int m_energy;
45  int m_gamma;
47 
48  // Variables from fftJet
49  int m_pileup;
50  int m_ncells;
51  int m_etSum;
62 
63  // Variables from the precluster
66  int m_magS1;
68  int m_magS2;
75  int m_scale;
87 
88  // Variables from reco::Jet
94 
95  // Variables from reco::PFJet
116 };
117 
118 #endif // JetMETCorrections_FFTJetObjects_FFTGenericScaleCalculator_h
FFTGenericScaleCalculator::m_logMass
int m_logMass
Definition: FFTGenericScaleCalculator.h:42
FFTGenericScaleCalculator::~FFTGenericScaleCalculator
~FFTGenericScaleCalculator() override
Definition: FFTGenericScaleCalculator.h:17
FFTGenericScaleCalculator::m_phi
int m_phi
Definition: FFTGenericScaleCalculator.h:38
FFTGenericScaleCalculator::mapFFTJet
void mapFFTJet(const reco::Jet &jet, const reco::FFTJet< float > &fftJet, const math::XYZTLorentzVector &current, double *buf, unsigned dim) const override
Definition: FFTGenericScaleCalculator.cc:189
FFTGenericScaleCalculator::m_dRFromJet
int m_dRFromJet
Definition: FFTGenericScaleCalculator.h:80
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
FFTGenericScaleCalculator::m_electronEnergyFraction
int m_electronEnergyFraction
Definition: FFTGenericScaleCalculator.h:99
AbsFFTSpecificScaleCalculator.h
FFTGenericScaleCalculator::m_chargedEmEnergyFraction
int m_chargedEmEnergyFraction
Definition: FFTGenericScaleCalculator.h:110
FFTGenericScaleCalculator::m_lifetime
int m_lifetime
Definition: FFTGenericScaleCalculator.h:72
FFTGenericScaleCalculator::m_electronMultiplicity
int m_electronMultiplicity
Definition: FFTGenericScaleCalculator.h:106
FFTGenericScaleCalculator::m_HFHadronMultiplicity
int m_HFHadronMultiplicity
Definition: FFTGenericScaleCalculator.h:108
FFTGenericScaleCalculator::m_magS1
int m_magS1
Definition: FFTGenericScaleCalculator.h:66
FFTGenericScaleCalculator::m_chargedHadronEnergyFraction
int m_chargedHadronEnergyFraction
Definition: FFTGenericScaleCalculator.h:96
FFTGenericScaleCalculator::m_muonMultiplicity
int m_muonMultiplicity
Definition: FFTGenericScaleCalculator.h:107
FFTGenericScaleCalculator::m_neutralEmEnergyFraction
int m_neutralEmEnergyFraction
Definition: FFTGenericScaleCalculator.h:112
FFTGenericScaleCalculator::f_safeLog
double f_safeLog(const double x) const
Definition: FFTGenericScaleCalculator.h:26
FFTGenericScaleCalculator::m_chargedMuEnergyFraction
int m_chargedMuEnergyFraction
Definition: FFTGenericScaleCalculator.h:111
FFTGenericScaleCalculator::m_neutralHadronEnergyFraction
int m_neutralHadronEnergyFraction
Definition: FFTGenericScaleCalculator.h:97
FFTGenericScaleCalculator::m_neutralMultiplicity
int m_neutralMultiplicity
Definition: FFTGenericScaleCalculator.h:115
FFTGenericScaleCalculator::m_etSum
int m_etSum
Definition: FFTGenericScaleCalculator.h:51
FFTGenericScaleCalculator::m_splitTime
int m_splitTime
Definition: FFTGenericScaleCalculator.h:73
reco::FFTJet< float >
FFTGenericScaleCalculator::m_phiWidth
int m_phiWidth
Definition: FFTGenericScaleCalculator.h:53
FFTGenericScaleCalculator::m_neutralHadronMultiplicity
int m_neutralHadronMultiplicity
Definition: FFTGenericScaleCalculator.h:104
FFTGenericScaleCalculator::m_magSpeed
int m_magSpeed
Definition: FFTGenericScaleCalculator.h:71
FFTGenericScaleCalculator::m_chargedMultiplicity
int m_chargedMultiplicity
Definition: FFTGenericScaleCalculator.h:114
FFTGenericScaleCalculator::m_HessianS6
int m_HessianS6
Definition: FFTGenericScaleCalculator.h:86
FFTGenericScaleCalculator::m_pileup
int m_pileup
Definition: FFTGenericScaleCalculator.h:49
DDAxes::x
FFTGenericScaleCalculator::m_EmEnergyFraction
int m_EmEnergyFraction
Definition: FFTGenericScaleCalculator.h:113
FFTGenericScaleCalculator::m_logAveConstituentPt
int m_logAveConstituentPt
Definition: FFTGenericScaleCalculator.h:91
FFTGenericScaleCalculator::m_logPt
int m_logPt
Definition: FFTGenericScaleCalculator.h:40
FFTGenericScaleCalculator::m_eta
int m_eta
Definition: FFTGenericScaleCalculator.h:37
FFTGenericScaleCalculator::m_logScale
int m_logScale
Definition: FFTGenericScaleCalculator.h:76
FFTGenericScaleCalculator::m_logGamma
int m_logGamma
Definition: FFTGenericScaleCalculator.h:46
FFTGenericScaleCalculator::m_energy
int m_energy
Definition: FFTGenericScaleCalculator.h:43
FFTGenericScaleCalculator::m_logMagnitude
int m_logMagnitude
Definition: FFTGenericScaleCalculator.h:65
FFTGenericScaleCalculator::m_muonEnergyFraction
int m_muonEnergyFraction
Definition: FFTGenericScaleCalculator.h:100
FFTGenericScaleCalculator::m_clusterRadius
int m_clusterRadius
Definition: FFTGenericScaleCalculator.h:78
FFTGenericScaleCalculator::m_magnitude
int m_magnitude
Definition: FFTGenericScaleCalculator.h:64
FFTGenericScaleCalculator::m_nConstituents
int m_nConstituents
Definition: FFTGenericScaleCalculator.h:89
FFTGenericScaleCalculator::m_photonMultiplicity
int m_photonMultiplicity
Definition: FFTGenericScaleCalculator.h:105
FFTGenericScaleCalculator::m_HessianS4
int m_HessianS4
Definition: FFTGenericScaleCalculator.h:85
FFTGenericScaleCalculator::m_LogMagS1
int m_LogMagS1
Definition: FFTGenericScaleCalculator.h:67
FFTGenericScaleCalculator::m_LaplacianS1
int m_LaplacianS1
Definition: FFTGenericScaleCalculator.h:81
FFTGenericScaleCalculator::m_constituentPtDistribution
int m_constituentPtDistribution
Definition: FFTGenericScaleCalculator.h:92
FFTGenericScaleCalculator::m_ncells
int m_ncells
Definition: FFTGenericScaleCalculator.h:50
FFTGenericScaleCalculator::m_recoScaleRatio
int m_recoScaleRatio
Definition: FFTGenericScaleCalculator.h:60
FFTGenericScaleCalculator::m_etaPhiCorr
int m_etaPhiCorr
Definition: FFTGenericScaleCalculator.h:56
edm::ParameterSet
Definition: ParameterSet.h:47
FFTGenericScaleCalculator::m_LogMagS2
int m_LogMagS2
Definition: FFTGenericScaleCalculator.h:69
FFTGenericScaleCalculator::m_mass
int m_mass
Definition: FFTGenericScaleCalculator.h:41
FFTGenericScaleCalculator::m_membershipFactor
int m_membershipFactor
Definition: FFTGenericScaleCalculator.h:61
FFTGenericScaleCalculator::m_photonEnergyFraction
int m_photonEnergyFraction
Definition: FFTGenericScaleCalculator.h:98
FFTGenericScaleCalculator::m_driftSpeed
int m_driftSpeed
Definition: FFTGenericScaleCalculator.h:70
FFTGenericScaleCalculator::m_HFHadronEnergyFraction
int m_HFHadronEnergyFraction
Definition: FFTGenericScaleCalculator.h:101
FFTGenericScaleCalculator::m_magS2
int m_magS2
Definition: FFTGenericScaleCalculator.h:68
FFTGenericScaleCalculator::m_nearestNeighborDistance
int m_nearestNeighborDistance
Definition: FFTGenericScaleCalculator.h:77
FFTGenericScaleCalculator::m_chargedHadronMultiplicity
int m_chargedHadronMultiplicity
Definition: FFTGenericScaleCalculator.h:103
FFTGenericScaleCalculator::m_HFEMMultiplicity
int m_HFEMMultiplicity
Definition: FFTGenericScaleCalculator.h:109
FFTGenericScaleCalculator::FFTGenericScaleCalculator
FFTGenericScaleCalculator(const edm::ParameterSet &ps)
Definition: FFTGenericScaleCalculator.cc:29
FFTGenericScaleCalculator::m_averageWidth
int m_averageWidth
Definition: FFTGenericScaleCalculator.h:54
FFTGenericScaleCalculator::m_minLog
double m_minLog
Definition: FFTGenericScaleCalculator.h:34
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
FFTGenericScaleCalculator::m_clusterSeparation
int m_clusterSeparation
Definition: FFTGenericScaleCalculator.h:79
FFTGenericScaleCalculator::m_pt
int m_pt
Definition: FFTGenericScaleCalculator.h:39
FFTGenericScaleCalculator::m_constituentEtaPhiSpread
int m_constituentEtaPhiSpread
Definition: FFTGenericScaleCalculator.h:93
FFTGenericScaleCalculator::m_HFEMEnergyFraction
int m_HFEMEnergyFraction
Definition: FFTGenericScaleCalculator.h:102
FFTGenericScaleCalculator::m_aveConstituentPt
int m_aveConstituentPt
Definition: FFTGenericScaleCalculator.h:90
AbsFFTSpecificScaleCalculator
Definition: AbsFFTSpecificScaleCalculator.h:13
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
metsig::jet
Definition: SignAlgoResolutions.h:47
FFTGenericScaleCalculator::m_mergeTime
int m_mergeTime
Definition: FFTGenericScaleCalculator.h:74
FFTGenericScaleCalculator::m_factors
std::vector< double > m_factors
Definition: FFTGenericScaleCalculator.h:33
FFTGenericScaleCalculator
Definition: FFTGenericScaleCalculator.h:13
FFTGenericScaleCalculator::m_gamma
int m_gamma
Definition: FFTGenericScaleCalculator.h:45
FFTGenericScaleCalculator::m_fuzziness
int m_fuzziness
Definition: FFTGenericScaleCalculator.h:57
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
FFTGenericScaleCalculator::m_LaplacianS3
int m_LaplacianS3
Definition: FFTGenericScaleCalculator.h:83
FFTGenericScaleCalculator::m_logEnergy
int m_logEnergy
Definition: FFTGenericScaleCalculator.h:44
FFTGenericScaleCalculator::m_convergenceDistance
int m_convergenceDistance
Definition: FFTGenericScaleCalculator.h:58
FFTGenericScaleCalculator::m_recoScale
int m_recoScale
Definition: FFTGenericScaleCalculator.h:59
ParameterSet.h
FFTGenericScaleCalculator::m_widthRatio
int m_widthRatio
Definition: FFTGenericScaleCalculator.h:55
FFTGenericScaleCalculator::m_LaplacianS2
int m_LaplacianS2
Definition: FFTGenericScaleCalculator.h:82
FFTGenericScaleCalculator::m_HessianS2
int m_HessianS2
Definition: FFTGenericScaleCalculator.h:84
FFTGenericScaleCalculator::m_etaWidth
int m_etaWidth
Definition: FFTGenericScaleCalculator.h:52
FFTGenericScaleCalculator::m_scale
int m_scale
Definition: FFTGenericScaleCalculator.h:75