CMS 3D CMS Logo

ECAL2DPositionCalcWithDepthCorr.h
Go to the documentation of this file.
1 #ifndef __ECAL2DPositionCalcWithDepthCorr_H__
2 #define __ECAL2DPositionCalcWithDepthCorr_H__
3 
7 
13 
15 
18  public:
21  _param_T0_EB(conf.getParameter<double>("T0_EB")),
22  _param_T0_EE(conf.getParameter<double>("T0_EE")),
23  _param_T0_ES(conf.getParameter<double>("T0_ES")),
24  _param_W0(conf.getParameter<double>("W0")),
25  _param_X0(conf.getParameter<double>("X0")),
26  _minAllowedNorm(conf.getParameter<double>("minAllowedNormalization")),
30  _esPlus(false),
31  _esMinus(false) {
32  _timeResolutionCalc.reset(nullptr);
33  if( conf.exists("timeResolutionCalc") ) {
34  const edm::ParameterSet& timeResConf =
35  conf.getParameterSet("timeResolutionCalc");
36  _timeResolutionCalc.reset(new CaloRecHitResolutionProvider(timeResConf));
37  }
38  }
41 
42  void update(const edm::EventSetup& es) override;
43 
46 
47  private:
48  const double _param_T0_EB;
49  const double _param_T0_EE;
50  const double _param_T0_ES;
51  const double _param_W0;
52  const double _param_X0;
53  const double _minAllowedNorm;
54 
55 
56  //const CaloGeometryRecord _caloGeom;
61 
62  std::unique_ptr<CaloRecHitResolutionProvider> _timeResolutionCalc;
63 
65 };
66 
69  "ECAL2DPositionCalcWithDepthCorr");
70 
71 #endif
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition: PFCluster.h:47
#define nullptr
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::unique_ptr< CaloRecHitResolutionProvider > _timeResolutionCalc
This is EGM version of the ECAL position + depth correction calculation.
void calculateAndSetPositionActual(reco::PFCluster &) const
void update(const edm::EventSetup &es) override
void calculateAndSetPosition(reco::PFCluster &) override
ParameterSet const & getParameterSet(std::string const &) const
const CaloSubdetectorGeometry * _ebGeom
void calculateAndSetPositions(reco::PFClusterCollection &) override
const CaloSubdetectorGeometry * _esGeom
const CaloSubdetectorGeometry * _eeGeom
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
#define DEFINE_EDM_PLUGIN(factory, type, name)
ECAL2DPositionCalcWithDepthCorr & operator=(const ECAL2DPositionCalcWithDepthCorr &)=delete
ECAL2DPositionCalcWithDepthCorr(const edm::ParameterSet &conf)