CMS 3D CMS Logo

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

#include <PositionCalc.h>

Public Types

typedef std::vector< std::pair
< DetId, double > > 
HitsAndEnergies
 
typedef std::vector< std::pair
< DetId, float > > 
HitsAndFractions
 

Public Member Functions

template<typename HitType >
math::XYZPoint Calculate_Location (const HitsAndFractions &iDetIds, const edm::SortedCollection< HitType > *iRecHits, const CaloSubdetectorGeometry *iSubGeom, const CaloSubdetectorGeometry *iESGeom=0)
 
const PositionCalcoperator= (const PositionCalc &rhs)
 
 PositionCalc (const edm::ParameterSet &par)
 
 PositionCalc ()
 

Private Attributes

const CaloSubdetectorGeometrym_esGeom
 
bool m_esMinus
 
bool m_esPlus
 
bool param_LogWeighted_
 
double param_T0_barl_
 
double param_T0_endc_
 
double param_T0_endcPresh_
 
double param_W0_
 
double param_X0_
 

Detailed Description

Definition at line 29 of file PositionCalc.h.

Member Typedef Documentation

typedef std::vector< std::pair<DetId,double> > PositionCalc::HitsAndEnergies

Definition at line 33 of file PositionCalc.h.

typedef std::vector< std::pair<DetId,float> > PositionCalc::HitsAndFractions

Definition at line 32 of file PositionCalc.h.

Constructor & Destructor Documentation

PositionCalc::PositionCalc ( const edm::ParameterSet par)

Definition at line 4 of file PositionCalc.cc.

4  :
5  param_LogWeighted_ ( par.getParameter<bool>("LogWeighted")) ,
6  param_T0_barl_ ( par.getParameter<double>("T0_barl")) ,
7  param_T0_endc_ ( par.getParameter<double>("T0_endc")) ,
8  param_T0_endcPresh_ ( par.getParameter<double>("T0_endcPresh")) ,
9  param_W0_ ( par.getParameter<double>("W0")) ,
10  param_X0_ ( par.getParameter<double>("X0")) ,
11  m_esGeom ( 0 ) ,
12  m_esPlus ( false ) ,
13  m_esMinus ( false )
14 {
15 }
T getParameter(std::string const &) const
double param_T0_endc_
Definition: PositionCalc.h:55
double param_W0_
Definition: PositionCalc.h:57
double param_X0_
Definition: PositionCalc.h:58
bool param_LogWeighted_
Definition: PositionCalc.h:53
double param_T0_endcPresh_
Definition: PositionCalc.h:56
double param_T0_barl_
Definition: PositionCalc.h:54
const CaloSubdetectorGeometry * m_esGeom
Definition: PositionCalc.h:60
PositionCalc::PositionCalc ( )
inline

Definition at line 38 of file PositionCalc.h.

Member Function Documentation

template<typename HitType >
math::XYZPoint PositionCalc::Calculate_Location ( const HitsAndFractions iDetIds,
const edm::SortedCollection< HitType > *  iRecHits,
const CaloSubdetectorGeometry iSubGeom,
const CaloSubdetectorGeometry iESGeom = 0 
)

Definition at line 68 of file PositionCalc.h.

const PositionCalc & PositionCalc::operator= ( const PositionCalc rhs)

Definition at line 17 of file PositionCalc.cc.

References m_esGeom, m_esMinus, m_esPlus, param_LogWeighted_, param_T0_barl_, param_T0_endc_, param_T0_endcPresh_, param_W0_, and param_X0_.

18 {
23  param_W0_ = rhs.param_W0_;
24  param_X0_ = rhs.param_X0_;
25 
26  m_esGeom = rhs.m_esGeom ;
27  m_esPlus = rhs.m_esPlus ;
28  m_esMinus = rhs.m_esMinus ;
29  return *this;
30 }
double param_T0_endc_
Definition: PositionCalc.h:55
double param_W0_
Definition: PositionCalc.h:57
double param_X0_
Definition: PositionCalc.h:58
bool param_LogWeighted_
Definition: PositionCalc.h:53
double param_T0_endcPresh_
Definition: PositionCalc.h:56
double param_T0_barl_
Definition: PositionCalc.h:54
const CaloSubdetectorGeometry * m_esGeom
Definition: PositionCalc.h:60

Member Data Documentation

const CaloSubdetectorGeometry* PositionCalc::m_esGeom
private

Definition at line 60 of file PositionCalc.h.

Referenced by operator=().

bool PositionCalc::m_esMinus
private

Definition at line 62 of file PositionCalc.h.

Referenced by operator=().

bool PositionCalc::m_esPlus
private

Definition at line 61 of file PositionCalc.h.

Referenced by operator=().

bool PositionCalc::param_LogWeighted_
private

Definition at line 53 of file PositionCalc.h.

Referenced by operator=().

double PositionCalc::param_T0_barl_
private

Definition at line 54 of file PositionCalc.h.

Referenced by operator=().

double PositionCalc::param_T0_endc_
private

Definition at line 55 of file PositionCalc.h.

Referenced by operator=().

double PositionCalc::param_T0_endcPresh_
private

Definition at line 56 of file PositionCalc.h.

Referenced by operator=().

double PositionCalc::param_W0_
private

Definition at line 57 of file PositionCalc.h.

Referenced by operator=().

double PositionCalc::param_X0_
private

Definition at line 58 of file PositionCalc.h.

Referenced by operator=().