CMS 3D CMS Logo

List of all members | Public Member Functions
EcalClusterLazyToolsT< ClusterTools > Class Template Reference

#include <EcalClusterLazyTools.h>

Inheritance diagram for EcalClusterLazyToolsT< ClusterTools >:
EcalClusterLazyToolsBase

Public Member Functions

std::array< float, 3 > covariances (const reco::BasicCluster &cluster, float w0=4.7) const
 
float e1x3 (const reco::BasicCluster &cluster) const
 
float e1x5 (const reco::BasicCluster &cluster) const
 
float e2nd (const reco::BasicCluster &cluster) const
 
float e2x2 (const reco::BasicCluster &cluster) const
 
float e2x5Bottom (const reco::BasicCluster &cluster) const
 
float e2x5Left (const reco::BasicCluster &cluster) const
 
float e2x5Max (const reco::BasicCluster &cluster) const
 
float e2x5Right (const reco::BasicCluster &cluster) const
 
float e2x5Top (const reco::BasicCluster &cluster) const
 
float e3x1 (const reco::BasicCluster &cluster) const
 
float e3x2 (const reco::BasicCluster &cluster) const
 
float e3x3 (const reco::BasicCluster &cluster) const
 
float e4x4 (const reco::BasicCluster &cluster) const
 
float e5x1 (const reco::BasicCluster &cluster) const
 
float e5x5 (const reco::BasicCluster &cluster) const
 
float eBottom (const reco::BasicCluster &cluster) const
 
 EcalClusterLazyToolsT (const edm::Event &ev, ESData const &esData, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2)
 
 EcalClusterLazyToolsT (const edm::Event &ev, ESData const &esData, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2, edm::EDGetTokenT< EcalRecHitCollection > token3)
 
float eLeft (const reco::BasicCluster &cluster) const
 
float eMax (const reco::BasicCluster &cluster) const
 
std::vector< float > energyBasketFractionEta (const reco::BasicCluster &cluster) const
 
std::vector< float > energyBasketFractionPhi (const reco::BasicCluster &cluster) const
 
std::vector< float > energyMatrix (reco::BasicCluster const &cluster, int size) const
 
float eRight (const reco::BasicCluster &cluster) const
 
float eTop (const reco::BasicCluster &cluster) const
 
std::pair< DetId, float > getMaximum (const reco::BasicCluster &cluster) const
 
std::vector< float > lat (const reco::BasicCluster &cluster, bool logW=true, float w0=4.7) const
 
std::array< float, 3 > localCovariances (const reco::BasicCluster &cluster, float w0=EgammaLocalCovParamDefaults::kRelEnCut, const EcalPFRecHitThresholds *rhthresholds=nullptr, float multEB=0.0, float multEE=0.0) const
 
int n5x5 (const reco::BasicCluster &cluster) const
 
std::array< float, 3 > scLocalCovariances (const reco::SuperCluster &cluster, float w0=4.7) const
 
double zernike20 (const reco::BasicCluster &cluster, double R0=6.6, bool logW=true, float w0=4.7) const
 
double zernike42 (const reco::BasicCluster &cluster, double R0=6.6, bool logW=true, float w0=4.7) const
 
- Public Member Functions inherited from EcalClusterLazyToolsBase
float BasicClusterSeedTime (const reco::BasicCluster &cluster)
 
float BasicClusterTime (const reco::BasicCluster &cluster, const edm::Event &ev)
 
 EcalClusterLazyToolsBase (const edm::Event &ev, ESData const &esData, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2, std::optional< edm::EDGetTokenT< EcalRecHitCollection >> token3)
 
float eseffsirir (const reco::SuperCluster &cluster)
 
float eseffsixix (const reco::SuperCluster &cluster)
 
float eseffsiyiy (const reco::SuperCluster &cluster)
 
std::vector< float > getESHits (double X, double Y, double Z, const std::map< DetId, EcalRecHit > &rechits_map, const CaloGeometry *geometry, CaloSubdetectorTopology const *topology_p, int row=0, int plane=1)
 
float getESShape (const std::vector< float > &ESHits0)
 
float SuperClusterSeedTime (const reco::SuperCluster &cluster)
 
float SuperClusterTime (const reco::SuperCluster &cluster, const edm::Event &ev)
 

Additional Inherited Members

- Public Attributes inherited from EcalClusterLazyToolsBase
std::map< DetId, EcalRecHitrechits_map_
 
- Protected Member Functions inherited from EcalClusterLazyToolsBase
const EcalRecHitCollectiongetEcalRecHitCollection (const reco::BasicCluster &cluster) const
 
- Protected Attributes inherited from EcalClusterLazyToolsBase
const EcalADCToGeVConstantagc = nullptr
 
const EcalRecHitCollectionebRecHits_
 
std::unique_ptr< CaloSubdetectorTopology const > ecalPS_topology_ = nullptr
 
const EcalRecHitCollectioneeRecHits_
 
const EcalRecHitCollectionesRecHits_
 
const CaloGeometrygeometry_
 
const EcalIntercalibConstantsical = nullptr
 
const EcalIntercalibConstantMapicalMap = nullptr
 
const EcalLaserDbServicelaser = nullptr
 
const CaloTopologytopology_
 

Detailed Description

template<class ClusterTools>
class EcalClusterLazyToolsT< ClusterTools >

Definition at line 137 of file EcalClusterLazyTools.h.

Constructor & Destructor Documentation

◆ EcalClusterLazyToolsT() [1/2]

template<class ClusterTools >
EcalClusterLazyToolsT< ClusterTools >::EcalClusterLazyToolsT ( const edm::Event ev,
ESData const &  esData,
edm::EDGetTokenT< EcalRecHitCollection token1,
edm::EDGetTokenT< EcalRecHitCollection token2 
)
inline

Definition at line 139 of file EcalClusterLazyTools.h.

143  : EcalClusterLazyToolsBase(ev, esData, token1, token2, std::nullopt) {}

◆ EcalClusterLazyToolsT() [2/2]

template<class ClusterTools >
EcalClusterLazyToolsT< ClusterTools >::EcalClusterLazyToolsT ( const edm::Event ev,
ESData const &  esData,
edm::EDGetTokenT< EcalRecHitCollection token1,
edm::EDGetTokenT< EcalRecHitCollection token2,
edm::EDGetTokenT< EcalRecHitCollection token3 
)
inline

Definition at line 145 of file EcalClusterLazyTools.h.

150  : EcalClusterLazyToolsBase(ev, esData, token1, token2, token3) {}

Member Function Documentation

◆ covariances()

template<class ClusterTools >
std::array<float, 3> EcalClusterLazyToolsT< ClusterTools >::covariances ( const reco::BasicCluster cluster,
float  w0 = 4.7 
) const
inline

Definition at line 271 of file EcalClusterLazyTools.h.

271  {
272  return ClusterTools::covariances(cluster, getEcalRecHitCollection(cluster), topology_, geometry_, w0);
273  }

References EcalClusterLazyToolsBase::geometry_, EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e1x3()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e1x3 ( const reco::BasicCluster cluster) const
inline

Definition at line 177 of file EcalClusterLazyTools.h.

177  {
178  return ClusterTools::e1x3(cluster, getEcalRecHitCollection(cluster), topology_);
179  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e1x5()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e1x5 ( const reco::BasicCluster cluster) const
inline

◆ e2nd()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e2nd ( const reco::BasicCluster cluster) const
inline

Definition at line 250 of file EcalClusterLazyTools.h.

250  {
251  return ClusterTools::e2nd(cluster, getEcalRecHitCollection(cluster));
252  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ e2x2()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e2x2 ( const reco::BasicCluster cluster) const
inline

Definition at line 189 of file EcalClusterLazyTools.h.

189  {
190  return ClusterTools::e2x2(cluster, getEcalRecHitCollection(cluster), topology_);
191  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e2x5Bottom()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e2x5Bottom ( const reco::BasicCluster cluster) const
inline

Definition at line 223 of file EcalClusterLazyTools.h.

223  {
224  return ClusterTools::e2x5Bottom(cluster, getEcalRecHitCollection(cluster), topology_);
225  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e2x5Left()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e2x5Left ( const reco::BasicCluster cluster) const
inline

Definition at line 213 of file EcalClusterLazyTools.h.

213  {
214  return ClusterTools::e2x5Left(cluster, getEcalRecHitCollection(cluster), topology_);
215  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e2x5Max()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e2x5Max ( const reco::BasicCluster cluster) const
inline

Definition at line 229 of file EcalClusterLazyTools.h.

229  {
230  return ClusterTools::e2x5Max(cluster, getEcalRecHitCollection(cluster), topology_);
231  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e2x5Right()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e2x5Right ( const reco::BasicCluster cluster) const
inline

Definition at line 209 of file EcalClusterLazyTools.h.

209  {
210  return ClusterTools::e2x5Right(cluster, getEcalRecHitCollection(cluster), topology_);
211  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e2x5Top()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e2x5Top ( const reco::BasicCluster cluster) const
inline

Definition at line 218 of file EcalClusterLazyTools.h.

218  {
219  return ClusterTools::e2x5Top(cluster, getEcalRecHitCollection(cluster), topology_);
220  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e3x1()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e3x1 ( const reco::BasicCluster cluster) const
inline

Definition at line 180 of file EcalClusterLazyTools.h.

180  {
181  return ClusterTools::e3x1(cluster, getEcalRecHitCollection(cluster), topology_);
182  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e3x2()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e3x2 ( const reco::BasicCluster cluster) const
inline

Definition at line 192 of file EcalClusterLazyTools.h.

192  {
193  return ClusterTools::e3x2(cluster, getEcalRecHitCollection(cluster), topology_);
194  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e3x3()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e3x3 ( const reco::BasicCluster cluster) const
inline

Definition at line 195 of file EcalClusterLazyTools.h.

195  {
196  return ClusterTools::e3x3(cluster, getEcalRecHitCollection(cluster), topology_);
197  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

Referenced by EGammaMvaEleEstimatorCSA14::mvaValue(), and EgammaHLTR9IDProducer::produce().

◆ e4x4()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e4x4 ( const reco::BasicCluster cluster) const
inline

Definition at line 198 of file EcalClusterLazyTools.h.

198  {
199  return ClusterTools::e4x4(cluster, getEcalRecHitCollection(cluster), topology_);
200  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e5x1()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e5x1 ( const reco::BasicCluster cluster) const
inline

Definition at line 186 of file EcalClusterLazyTools.h.

186  {
187  return ClusterTools::e5x1(cluster, getEcalRecHitCollection(cluster), topology_);
188  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ e5x5()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::e5x5 ( const reco::BasicCluster cluster) const
inline

Definition at line 201 of file EcalClusterLazyTools.h.

201  {
202  return ClusterTools::e5x5(cluster, getEcalRecHitCollection(cluster), topology_);
203  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

Referenced by EGammaMvaEleEstimatorCSA14::mvaValue().

◆ eBottom()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::eBottom ( const reco::BasicCluster cluster) const
inline

Definition at line 242 of file EcalClusterLazyTools.h.

242  {
243  return ClusterTools::eBottom(cluster, getEcalRecHitCollection(cluster), topology_);
244  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ eLeft()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::eLeft ( const reco::BasicCluster cluster) const
inline

Definition at line 233 of file EcalClusterLazyTools.h.

233  {
234  return ClusterTools::eLeft(cluster, getEcalRecHitCollection(cluster), topology_);
235  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ eMax()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::eMax ( const reco::BasicCluster cluster) const
inline

Definition at line 246 of file EcalClusterLazyTools.h.

246  {
247  return ClusterTools::eMax(cluster, getEcalRecHitCollection(cluster));
248  }

References cosmicPhotonAnalyzer_cfi::eMax, and EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ energyBasketFractionEta()

template<class ClusterTools >
std::vector<float> EcalClusterLazyToolsT< ClusterTools >::energyBasketFractionEta ( const reco::BasicCluster cluster) const
inline

Definition at line 258 of file EcalClusterLazyTools.h.

258  {
259  return ClusterTools::energyBasketFractionEta(cluster, getEcalRecHitCollection(cluster));
260  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ energyBasketFractionPhi()

template<class ClusterTools >
std::vector<float> EcalClusterLazyToolsT< ClusterTools >::energyBasketFractionPhi ( const reco::BasicCluster cluster) const
inline

Definition at line 261 of file EcalClusterLazyTools.h.

261  {
262  return ClusterTools::energyBasketFractionPhi(cluster, getEcalRecHitCollection(cluster));
263  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ energyMatrix()

template<class ClusterTools >
std::vector<float> EcalClusterLazyToolsT< ClusterTools >::energyMatrix ( reco::BasicCluster const &  cluster,
int  size 
) const
inline

Definition at line 153 of file EcalClusterLazyTools.h.

153  {
154  auto recHits = getEcalRecHitCollection(cluster);
155  DetId maxId = ClusterTools::getMaximum(cluster, recHits).first;
156 
157  std::vector<float> energies;
158  for (auto const &detId : CaloRectangleRange(size, maxId, *topology_)) {
159  energies.push_back(ClusterTools::recHitEnergy(detId, recHits));
160  }
161 
162  return energies;
163  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), FastTrackerRecHitMaskProducer_cfi::recHits, findQualityFiles::size, and EcalClusterLazyToolsBase::topology_.

◆ eRight()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::eRight ( const reco::BasicCluster cluster) const
inline

Definition at line 236 of file EcalClusterLazyTools.h.

236  {
237  return ClusterTools::eRight(cluster, getEcalRecHitCollection(cluster), topology_);
238  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ eTop()

template<class ClusterTools >
float EcalClusterLazyToolsT< ClusterTools >::eTop ( const reco::BasicCluster cluster) const
inline

Definition at line 239 of file EcalClusterLazyTools.h.

239  {
240  return ClusterTools::eTop(cluster, getEcalRecHitCollection(cluster), topology_);
241  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ getMaximum()

template<class ClusterTools >
std::pair<DetId, float> EcalClusterLazyToolsT< ClusterTools >::getMaximum ( const reco::BasicCluster cluster) const
inline

Definition at line 255 of file EcalClusterLazyTools.h.

255  {
256  return ClusterTools::getMaximum(cluster, getEcalRecHitCollection(cluster));
257  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ lat()

template<class ClusterTools >
std::vector<float> EcalClusterLazyToolsT< ClusterTools >::lat ( const reco::BasicCluster cluster,
bool  logW = true,
float  w0 = 4.7 
) const
inline

Definition at line 266 of file EcalClusterLazyTools.h.

266  {
267  return ClusterTools::lat(cluster, getEcalRecHitCollection(cluster), geometry_, logW, w0);
268  }

References EcalClusterLazyToolsBase::geometry_, and EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ localCovariances()

template<class ClusterTools >
std::array<float, 3> EcalClusterLazyToolsT< ClusterTools >::localCovariances ( const reco::BasicCluster cluster,
float  w0 = EgammaLocalCovParamDefaults::kRelEnCut,
const EcalPFRecHitThresholds rhthresholds = nullptr,
float  multEB = 0.0,
float  multEE = 0.0 
) const
inline

Definition at line 284 of file EcalClusterLazyTools.h.

288  {
289  return ClusterTools::localCovariances(
290  cluster, getEcalRecHitCollection(cluster), topology_, w0, rhthresholds, multEB, multEE);
291  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

Referenced by EGammaMvaEleEstimatorCSA14::mvaValue(), and EgammaHLTClusterShapeProducer::produce().

◆ n5x5()

template<class ClusterTools >
int EcalClusterLazyToolsT< ClusterTools >::n5x5 ( const reco::BasicCluster cluster) const
inline

Definition at line 204 of file EcalClusterLazyTools.h.

204  {
205  return ClusterTools::n5x5(cluster, getEcalRecHitCollection(cluster), topology_);
206  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ scLocalCovariances()

template<class ClusterTools >
std::array<float, 3> EcalClusterLazyToolsT< ClusterTools >::scLocalCovariances ( const reco::SuperCluster cluster,
float  w0 = 4.7 
) const
inline

Definition at line 292 of file EcalClusterLazyTools.h.

292  {
293  return ClusterTools::scLocalCovariances(cluster, getEcalRecHitCollection(cluster), topology_, w0);
294  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection(), and EcalClusterLazyToolsBase::topology_.

◆ zernike20()

template<class ClusterTools >
double EcalClusterLazyToolsT< ClusterTools >::zernike20 ( const reco::BasicCluster cluster,
double  R0 = 6.6,
bool  logW = true,
float  w0 = 4.7 
) const
inline

Definition at line 295 of file EcalClusterLazyTools.h.

295  {
296  return ClusterTools::zernike20(cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0);
297  }

References EcalClusterLazyToolsBase::geometry_, EcalClusterLazyToolsBase::getEcalRecHitCollection(), and HLT_FULL_cff::R0.

◆ zernike42()

template<class ClusterTools >
double EcalClusterLazyToolsT< ClusterTools >::zernike42 ( const reco::BasicCluster cluster,
double  R0 = 6.6,
bool  logW = true,
float  w0 = 4.7 
) const
inline

Definition at line 298 of file EcalClusterLazyTools.h.

298  {
299  return ClusterTools::zernike42(cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0);
300  }

References EcalClusterLazyToolsBase::geometry_, EcalClusterLazyToolsBase::getEcalRecHitCollection(), and HLT_FULL_cff::R0.

EgHLTOffHistBins_cfi.e1x5
e1x5
Definition: EgHLTOffHistBins_cfi.py:22
EcalClusterLazyToolsBase::getEcalRecHitCollection
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster) const
Definition: EcalClusterLazyTools.cc:76
CaloRectangleRange
Definition: CaloRectangle.h:36
EcalClusterLazyToolsBase::topology_
const CaloTopology * topology_
Definition: EcalClusterLazyTools.h:119
DetId
Definition: DetId.h:17
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
cosmicPhotonAnalyzer_cfi.eMax
eMax
Definition: cosmicPhotonAnalyzer_cfi.py:10
EcalClusterLazyToolsBase::EcalClusterLazyToolsBase
EcalClusterLazyToolsBase(const edm::Event &ev, ESData const &esData, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2, std::optional< edm::EDGetTokenT< EcalRecHitCollection >> token3)
Definition: EcalClusterLazyTools.cc:18
ev
bool ev
Definition: Hydjet2Hadronizer.cc:97
EcalClusterLazyToolsBase::geometry_
const CaloGeometry * geometry_
Definition: EcalClusterLazyTools.h:118
HLT_FULL_cff.R0
R0
Definition: HLT_FULL_cff.py:8652
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443