CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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")),
27  _ebGeom(NULL),
28  _eeGeom(NULL),
29  _esGeom(NULL),
30  _esPlus(false),
31  _esMinus(false) {
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);
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
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::unique_ptr< CaloRecHitResolutionProvider > _timeResolutionCalc
#define NULL
Definition: scimark2.h:8
This is EGM version of the ECAL position + depth correction calculation.
void calculateAndSetPositionActual(reco::PFCluster &) const
void calculateAndSetPositions(reco::PFClusterCollection &)
tuple conf
Definition: dbtoconf.py:185
ParameterSet const & getParameterSet(std::string const &) const
const CaloSubdetectorGeometry * _ebGeom
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)
volatile std::atomic< bool > shutdown_flag false
ECAL2DPositionCalcWithDepthCorr & operator=(const ECAL2DPositionCalcWithDepthCorr &)=delete
ECAL2DPositionCalcWithDepthCorr(const edm::ParameterSet &conf)