CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
ECAL2DPositionCalcWithDepthCorr Class Reference

This is EGM version of the ECAL position + depth correction calculation. More...

#include <ECAL2DPositionCalcWithDepthCorr.h>

Inheritance diagram for ECAL2DPositionCalcWithDepthCorr:
PFCPositionCalculatorBase

Public Member Functions

void calculateAndSetPosition (reco::PFCluster &)
 
void calculateAndSetPositions (reco::PFClusterCollection &)
 
 ECAL2DPositionCalcWithDepthCorr (const edm::ParameterSet &conf)
 
 ECAL2DPositionCalcWithDepthCorr (const ECAL2DPositionCalcWithDepthCorr &)=delete
 
ECAL2DPositionCalcWithDepthCorroperator= (const ECAL2DPositionCalcWithDepthCorr &)=delete
 
void update (const edm::EventSetup &es)
 
- Public Member Functions inherited from PFCPositionCalculatorBase
const std::string & name () const
 
PosCalcoperator= (const PosCalc &)=delete
 
 PFCPositionCalculatorBase (const edm::ParameterSet &conf)
 
 PFCPositionCalculatorBase (const PosCalc &)=delete
 
 ~PFCPositionCalculatorBase ()
 

Private Member Functions

void calculateAndSetPositionActual (reco::PFCluster &) const
 

Private Attributes

const CaloSubdetectorGeometry_ebGeom
 
const CaloSubdetectorGeometry_eeGeom
 
const CaloSubdetectorGeometry_esGeom
 
bool _esMinus
 
bool _esPlus
 
const double _minAllowedNorm
 
const double _param_T0_EB
 
const double _param_T0_EE
 
const double _param_T0_ES
 
const double _param_W0
 
const double _param_X0
 
std::unique_ptr
< CaloRecHitResolutionProvider
_timeResolutionCalc
 

Additional Inherited Members

- Protected Attributes inherited from PFCPositionCalculatorBase
const float _minFractionInCalc
 

Detailed Description

This is EGM version of the ECAL position + depth correction calculation.

Definition at line 17 of file ECAL2DPositionCalcWithDepthCorr.h.

Constructor & Destructor Documentation

ECAL2DPositionCalcWithDepthCorr::ECAL2DPositionCalcWithDepthCorr ( const edm::ParameterSet conf)
inline

Definition at line 19 of file ECAL2DPositionCalcWithDepthCorr.h.

References _timeResolutionCalc, edm::ParameterSet::exists(), edm::ParameterSet::getParameterSet(), and NULL.

19  :
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  }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::unique_ptr< CaloRecHitResolutionProvider > _timeResolutionCalc
#define NULL
Definition: scimark2.h:8
ParameterSet const & getParameterSet(std::string const &) const
const CaloSubdetectorGeometry * _ebGeom
const CaloSubdetectorGeometry * _esGeom
const CaloSubdetectorGeometry * _eeGeom
PFCPositionCalculatorBase(const edm::ParameterSet &conf)
ECAL2DPositionCalcWithDepthCorr::ECAL2DPositionCalcWithDepthCorr ( const ECAL2DPositionCalcWithDepthCorr )
delete

Member Function Documentation

void ECAL2DPositionCalcWithDepthCorr::calculateAndSetPosition ( reco::PFCluster cluster)
virtual

Implements PFCPositionCalculatorBase.

Definition at line 39 of file ECAL2DPositionCalcWithDepthCorr.cc.

void ECAL2DPositionCalcWithDepthCorr::calculateAndSetPositionActual ( reco::PFCluster cluster) const
private

Definition at line 51 of file ECAL2DPositionCalcWithDepthCorr.cc.

void ECAL2DPositionCalcWithDepthCorr::calculateAndSetPositions ( reco::PFClusterCollection clusters)
virtual

Implements PFCPositionCalculatorBase.

Definition at line 44 of file ECAL2DPositionCalcWithDepthCorr.cc.

ECAL2DPositionCalcWithDepthCorr& ECAL2DPositionCalcWithDepthCorr::operator= ( const ECAL2DPositionCalcWithDepthCorr )
delete
void ECAL2DPositionCalcWithDepthCorr::update ( const edm::EventSetup es)
virtual

Member Data Documentation

const CaloSubdetectorGeometry* ECAL2DPositionCalcWithDepthCorr::_ebGeom
private

Definition at line 57 of file ECAL2DPositionCalcWithDepthCorr.h.

const CaloSubdetectorGeometry* ECAL2DPositionCalcWithDepthCorr::_eeGeom
private

Definition at line 58 of file ECAL2DPositionCalcWithDepthCorr.h.

const CaloSubdetectorGeometry* ECAL2DPositionCalcWithDepthCorr::_esGeom
private

Definition at line 59 of file ECAL2DPositionCalcWithDepthCorr.h.

bool ECAL2DPositionCalcWithDepthCorr::_esMinus
private

Definition at line 60 of file ECAL2DPositionCalcWithDepthCorr.h.

bool ECAL2DPositionCalcWithDepthCorr::_esPlus
private

Definition at line 60 of file ECAL2DPositionCalcWithDepthCorr.h.

const double ECAL2DPositionCalcWithDepthCorr::_minAllowedNorm
private

Definition at line 53 of file ECAL2DPositionCalcWithDepthCorr.h.

const double ECAL2DPositionCalcWithDepthCorr::_param_T0_EB
private

Definition at line 48 of file ECAL2DPositionCalcWithDepthCorr.h.

const double ECAL2DPositionCalcWithDepthCorr::_param_T0_EE
private

Definition at line 49 of file ECAL2DPositionCalcWithDepthCorr.h.

const double ECAL2DPositionCalcWithDepthCorr::_param_T0_ES
private

Definition at line 50 of file ECAL2DPositionCalcWithDepthCorr.h.

const double ECAL2DPositionCalcWithDepthCorr::_param_W0
private

Definition at line 51 of file ECAL2DPositionCalcWithDepthCorr.h.

const double ECAL2DPositionCalcWithDepthCorr::_param_X0
private

Definition at line 52 of file ECAL2DPositionCalcWithDepthCorr.h.

std::unique_ptr<CaloRecHitResolutionProvider> ECAL2DPositionCalcWithDepthCorr::_timeResolutionCalc
private

Definition at line 62 of file ECAL2DPositionCalcWithDepthCorr.h.

Referenced by ECAL2DPositionCalcWithDepthCorr().