Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoEcal
EgammaCoreTools
interface
PositionCalc.h
Go to the documentation of this file.
1
#ifndef RecoEcal_EgammaCoreTools_PositionCalc_h
2
#define RecoEcal_EgammaCoreTools_PositionCalc_h
3
15
#include <vector>
16
#include <map>
17
18
#include "
DataFormats/EcalRecHit/interface/EcalRecHit.h
"
19
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
20
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
21
#include "
DataFormats/Math/interface/Point3D.h
"
22
#include "
Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h
"
23
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
24
25
class
PositionCalc
26
{
27
public
:
28
// You must call Initialize before you can calculate positions or
29
// covariances.
30
31
PositionCalc
(
const
edm::ParameterSet
&
par
);
32
PositionCalc
() { };
33
34
const
PositionCalc
&
operator=
(
const
PositionCalc
& rhs);
35
36
// Calculate_Location calculates an arithmetically or logarithmically
37
// weighted average position of a vector of DetIds, which should be
38
// a subset of the map used to Initialize.
39
40
math::XYZPoint
Calculate_Location
(
const
std::vector< std::pair< DetId, float > >& iDetIds ,
41
const
EcalRecHitCollection
* iRecHits ,
42
const
CaloSubdetectorGeometry
* iSubGeom ,
43
const
CaloSubdetectorGeometry
* iESGeom = 0 ) ;
44
45
private
:
46
bool
param_LogWeighted_
;
47
double
param_T0_barl_
;
48
double
param_T0_endc_
;
49
double
param_T0_endcPresh_
;
50
double
param_W0_
;
51
double
param_X0_
;
52
53
const
CaloSubdetectorGeometry
*
m_esGeom
;
54
bool
m_esPlus
;
55
bool
m_esMinus
;
56
57
};
58
59
#endif
PositionCalc::param_T0_endc_
double param_T0_endc_
Definition:
PositionCalc.h:48
edm::SortedCollection
Definition:
SortedCollection.h:49
PositionCalc::param_W0_
double param_W0_
Definition:
PositionCalc.h:50
CaloSubdetectorGeometry
Definition:
CaloSubdetectorGeometry.h:21
PositionCalc::m_esMinus
bool m_esMinus
Definition:
PositionCalc.h:55
EcalRecHitCollections.h
EcalRecHit.h
PositionCalc::param_X0_
double param_X0_
Definition:
PositionCalc.h:51
Frameworkfwd.h
Point3D.h
PositionCalc::operator=
const PositionCalc & operator=(const PositionCalc &rhs)
Definition:
PositionCalc.cc:24
PositionCalc::param_LogWeighted_
bool param_LogWeighted_
Definition:
PositionCalc.h:46
PositionCalc::param_T0_endcPresh_
double param_T0_endcPresh_
Definition:
PositionCalc.h:49
CaloSubdetectorGeometry.h
PositionCalc::m_esPlus
bool m_esPlus
Definition:
PositionCalc.h:54
PositionCalc
Definition:
PositionCalc.h:25
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition:
Point3D.h:13
PositionCalc::param_T0_barl_
double param_T0_barl_
Definition:
PositionCalc.h:47
PositionCalc::Calculate_Location
math::XYZPoint Calculate_Location(const std::vector< std::pair< DetId, float > > &iDetIds, const EcalRecHitCollection *iRecHits, const CaloSubdetectorGeometry *iSubGeom, const CaloSubdetectorGeometry *iESGeom=0)
Definition:
PositionCalc.cc:40
edm::ParameterSet
Definition:
ParameterSet.h:32
EBDetId.h
PositionCalc::PositionCalc
PositionCalc()
Definition:
PositionCalc.h:32
PositionCalc::m_esGeom
const CaloSubdetectorGeometry * m_esGeom
Definition:
PositionCalc.h:53
Gflash::par
const double par[8 *NPar][4]
Definition:
GflashNameSpace.h:177
Generated for CMSSW Reference Manual by
1.8.5