#include <PFClusterWidthCalculator.h>
Definition at line 18 of file PFClusterWidthCalculator.h.
◆ PFClusterWidthCalculator()
| PFClusterWidthCalculator::PFClusterWidthCalculator |
( |
| ) |
|
◆ ~PFClusterWidthCalculator()
| PFClusterWidthCalculator::~PFClusterWidthCalculator |
( |
| ) |
|
|
default |
◆ getPFClusterCoordinateWidth()
| PFClusterWidth PFClusterWidthCalculator::getPFClusterCoordinateWidth |
( |
const std::vector< double > & | eta, |
|
|
const std::vector< double > & | phi, |
|
|
double | clusterEta, |
|
|
double | clusterPhi, |
|
|
unsigned int | nCells ) const |
Definition at line 14 of file PFClusterWidthCalculator.cxx.
14 {
15 PFClusterWidth pfClusterWidth;
16 if (nCells <= 1) {
17 pfClusterWidth.
etaMean = clusterEta;
18 pfClusterWidth.
phiMean = clusterPhi;
21 return pfClusterWidth;
22 }
23
24 double etaSum(0.0);
25 double etaSum2(0.0);
26 double phiSum(0.0);
27 double phiSum2(0.0);
28
29 for(
unsigned int iCell=0; iCell<
nCells; ++iCell){
31 etaSum2 +=
eta[iCell]*
eta[iCell];
32 double thisCellPhi = eflowAzimuth(
phi[iCell]).cycle(clusterPhi);
33 phiSum += thisCellPhi;
34 phiSum2 += thisCellPhi*thisCellPhi;
35 }
36
39
40 double varianceCorrection = (
double)nCells / (
double)(
nCells-1);
43
44 return pfClusterWidth;
45}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
setRawEt setRawPhi nCells
◆ m_etaPhiLowerLimit
| double PFClusterWidthCalculator::m_etaPhiLowerLimit {} |
|
private |
The documentation for this class was generated from the following files: