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::vector< float > 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::vector< float > localCovariances (const reco::BasicCluster &cluster, float w0=4.7) const
 
int n5x5 (const reco::BasicCluster &cluster) const
 
std::vector< float > 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 135 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 137 of file EcalClusterLazyTools.h.

141  : 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 143 of file EcalClusterLazyTools.h.

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

Member Function Documentation

◆ covariances()

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

Definition at line 269 of file EcalClusterLazyTools.h.

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

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 175 of file EcalClusterLazyTools.h.

175  {
176  return ClusterTools::e1x3(cluster, getEcalRecHitCollection(cluster), topology_);
177  }

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 248 of file EcalClusterLazyTools.h.

248  {
249  return ClusterTools::e2nd(cluster, getEcalRecHitCollection(cluster));
250  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ e2x2()

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

Definition at line 187 of file EcalClusterLazyTools.h.

187  {
188  return ClusterTools::e2x2(cluster, getEcalRecHitCollection(cluster), topology_);
189  }

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

◆ e2x5Bottom()

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

Definition at line 221 of file EcalClusterLazyTools.h.

221  {
222  return ClusterTools::e2x5Bottom(cluster, getEcalRecHitCollection(cluster), topology_);
223  }

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

◆ e2x5Left()

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

Definition at line 211 of file EcalClusterLazyTools.h.

211  {
212  return ClusterTools::e2x5Left(cluster, getEcalRecHitCollection(cluster), topology_);
213  }

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

◆ e2x5Max()

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

Definition at line 227 of file EcalClusterLazyTools.h.

227  {
228  return ClusterTools::e2x5Max(cluster, getEcalRecHitCollection(cluster), topology_);
229  }

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

◆ e2x5Right()

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

Definition at line 207 of file EcalClusterLazyTools.h.

207  {
208  return ClusterTools::e2x5Right(cluster, getEcalRecHitCollection(cluster), topology_);
209  }

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

◆ e2x5Top()

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

Definition at line 216 of file EcalClusterLazyTools.h.

216  {
217  return ClusterTools::e2x5Top(cluster, getEcalRecHitCollection(cluster), topology_);
218  }

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

◆ e3x1()

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

Definition at line 178 of file EcalClusterLazyTools.h.

178  {
179  return ClusterTools::e3x1(cluster, getEcalRecHitCollection(cluster), topology_);
180  }

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

◆ e3x2()

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

Definition at line 190 of file EcalClusterLazyTools.h.

190  {
191  return ClusterTools::e3x2(cluster, getEcalRecHitCollection(cluster), topology_);
192  }

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

◆ e3x3()

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

Definition at line 193 of file EcalClusterLazyTools.h.

193  {
194  return ClusterTools::e3x3(cluster, getEcalRecHitCollection(cluster), topology_);
195  }

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 196 of file EcalClusterLazyTools.h.

196  {
197  return ClusterTools::e4x4(cluster, getEcalRecHitCollection(cluster), topology_);
198  }

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

◆ e5x1()

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

Definition at line 184 of file EcalClusterLazyTools.h.

184  {
185  return ClusterTools::e5x1(cluster, getEcalRecHitCollection(cluster), topology_);
186  }

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

◆ e5x5()

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

Definition at line 199 of file EcalClusterLazyTools.h.

199  {
200  return ClusterTools::e5x5(cluster, getEcalRecHitCollection(cluster), topology_);
201  }

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 240 of file EcalClusterLazyTools.h.

240  {
241  return ClusterTools::eBottom(cluster, getEcalRecHitCollection(cluster), topology_);
242  }

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

◆ eLeft()

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

Definition at line 231 of file EcalClusterLazyTools.h.

231  {
232  return ClusterTools::eLeft(cluster, getEcalRecHitCollection(cluster), topology_);
233  }

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

◆ eMax()

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

Definition at line 244 of file EcalClusterLazyTools.h.

244  {
245  return ClusterTools::eMax(cluster, getEcalRecHitCollection(cluster));
246  }

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 256 of file EcalClusterLazyTools.h.

256  {
257  return ClusterTools::energyBasketFractionEta(cluster, getEcalRecHitCollection(cluster));
258  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ energyBasketFractionPhi()

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

Definition at line 259 of file EcalClusterLazyTools.h.

259  {
260  return ClusterTools::energyBasketFractionPhi(cluster, getEcalRecHitCollection(cluster));
261  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ energyMatrix()

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

Definition at line 151 of file EcalClusterLazyTools.h.

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

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 234 of file EcalClusterLazyTools.h.

234  {
235  return ClusterTools::eRight(cluster, getEcalRecHitCollection(cluster), topology_);
236  }

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

◆ eTop()

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

Definition at line 237 of file EcalClusterLazyTools.h.

237  {
238  return ClusterTools::eTop(cluster, getEcalRecHitCollection(cluster), topology_);
239  }

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 253 of file EcalClusterLazyTools.h.

253  {
254  return ClusterTools::getMaximum(cluster, getEcalRecHitCollection(cluster));
255  }

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 264 of file EcalClusterLazyTools.h.

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

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

◆ localCovariances()

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

Definition at line 282 of file EcalClusterLazyTools.h.

282  {
283  return ClusterTools::localCovariances(cluster, getEcalRecHitCollection(cluster), topology_, w0);
284  }

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 202 of file EcalClusterLazyTools.h.

202  {
203  return ClusterTools::n5x5(cluster, getEcalRecHitCollection(cluster), topology_);
204  }

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

◆ scLocalCovariances()

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

Definition at line 285 of file EcalClusterLazyTools.h.

285  {
286  return ClusterTools::scLocalCovariances(cluster, getEcalRecHitCollection(cluster), topology_, w0);
287  }

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 288 of file EcalClusterLazyTools.h.

288  {
289  return ClusterTools::zernike20(cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0);
290  }

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 291 of file EcalClusterLazyTools.h.

291  {
292  return ClusterTools::zernike42(cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0);
293  }

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:117
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:95
EcalClusterLazyToolsBase::geometry_
const CaloGeometry * geometry_
Definition: EcalClusterLazyTools.h:116
HLT_FULL_cff.R0
R0
Definition: HLT_FULL_cff.py:8629
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443