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)
 
float e1x3 (const reco::BasicCluster &cluster)
 
float e1x5 (const reco::BasicCluster &cluster)
 
float e2nd (const reco::BasicCluster &cluster)
 
float e2x2 (const reco::BasicCluster &cluster)
 
float e2x5Bottom (const reco::BasicCluster &cluster)
 
float e2x5Left (const reco::BasicCluster &cluster)
 
float e2x5Max (const reco::BasicCluster &cluster)
 
float e2x5Right (const reco::BasicCluster &cluster)
 
float e2x5Top (const reco::BasicCluster &cluster)
 
float e3x1 (const reco::BasicCluster &cluster)
 
float e3x2 (const reco::BasicCluster &cluster)
 
float e3x3 (const reco::BasicCluster &cluster)
 
float e4x4 (const reco::BasicCluster &cluster)
 
float e5x1 (const reco::BasicCluster &cluster)
 
float e5x5 (const reco::BasicCluster &cluster)
 
float eBottom (const reco::BasicCluster &cluster)
 
 EcalClusterLazyToolsT (const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2)
 
 EcalClusterLazyToolsT (const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2, edm::EDGetTokenT< EcalRecHitCollection > token3)
 
float eLeft (const reco::BasicCluster &cluster)
 
float eMax (const reco::BasicCluster &cluster)
 
std::vector< float > energyBasketFractionEta (const reco::BasicCluster &cluster)
 
std::vector< float > energyBasketFractionPhi (const reco::BasicCluster &cluster)
 
std::vector< float > energyMatrix (reco::BasicCluster const &cluster, int size) const
 
float eRight (const reco::BasicCluster &cluster)
 
float eTop (const reco::BasicCluster &cluster)
 
std::pair< DetId, float > getMaximum (const reco::BasicCluster &cluster)
 
std::vector< float > lat (const reco::BasicCluster &cluster, bool logW=true, float w0=4.7)
 
std::vector< float > localCovariances (const reco::BasicCluster &cluster, float w0=4.7)
 
int n5x5 (const reco::BasicCluster &cluster)
 
std::vector< float > scLocalCovariances (const reco::SuperCluster &cluster, float w0=4.7)
 
double zernike20 (const reco::BasicCluster &cluster, double R0=6.6, bool logW=true, float w0=4.7)
 
double zernike42 (const reco::BasicCluster &cluster, double R0=6.6, bool logW=true, float w0=4.7)
 
- 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, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2)
 
 EcalClusterLazyToolsBase (const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2, edm::EDGetTokenT< EcalRecHitCollection > token3)
 
float eseffsirir (const reco::SuperCluster &cluster)
 
float eseffsixix (const reco::SuperCluster &cluster)
 
float eseffsiyiy (const reco::SuperCluster &cluster)
 
const EcalRecHitCollectiongetEcalEBRecHitCollection () const
 
const EcalRecHitCollectiongetEcalEERecHitCollection () const
 
const EcalRecHitCollectiongetEcalESRecHitCollection () const
 
const EcalIntercalibConstantsgetEcalIntercalibConstants () const
 
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)
 
const edm::ESHandle< EcalLaserDbService > & getLaserHandle () const
 
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
void getADCToGeV (const edm::EventSetup &es)
 
const EcalRecHitCollectiongetEcalRecHitCollection (const reco::BasicCluster &cluster) const
 
void getIntercalibConstants (const edm::EventSetup &es)
 
void getLaserDbService (const edm::EventSetup &es)
 
- Protected Attributes inherited from EcalClusterLazyToolsBase
edm::ESHandle< EcalADCToGeVConstantagc
 
const EcalRecHitCollectionebRecHits_
 
std::shared_ptr< CaloSubdetectorTopology const > ecalPS_topology_
 
const EcalRecHitCollectioneeRecHits_
 
const EcalRecHitCollectionesRecHits_
 
edm::EDGetTokenT< EcalRecHitCollectionesRHToken_
 
const CaloGeometrygeometry_
 
edm::ESHandle< EcalIntercalibConstantsical
 
const EcalIntercalibConstantMapicalMap
 
edm::ESHandle< EcalLaserDbServicelaser
 
const CaloTopologytopology_
 

Detailed Description

template<class ClusterTools>
class EcalClusterLazyToolsT< ClusterTools >

Definition at line 105 of file EcalClusterLazyTools.h.

Constructor & Destructor Documentation

◆ EcalClusterLazyToolsT() [1/2]

template<class ClusterTools >
EcalClusterLazyToolsT< ClusterTools >::EcalClusterLazyToolsT ( const edm::Event ev,
const edm::EventSetup es,
edm::EDGetTokenT< EcalRecHitCollection token1,
edm::EDGetTokenT< EcalRecHitCollection token2 
)
inline

Definition at line 107 of file EcalClusterLazyTools.h.

111  : EcalClusterLazyToolsBase(ev, es, token1, token2) {}

◆ EcalClusterLazyToolsT() [2/2]

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

Definition at line 113 of file EcalClusterLazyTools.h.

118  : EcalClusterLazyToolsBase(ev, es, token1, token2, token3) {}

Member Function Documentation

◆ covariances()

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

Definition at line 239 of file EcalClusterLazyTools.h.

239  {
240  return ClusterTools::covariances(cluster, getEcalRecHitCollection(cluster), topology_, geometry_, w0);
241  }

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

◆ e1x3()

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

Definition at line 145 of file EcalClusterLazyTools.h.

145  {
146  return ClusterTools::e1x3(cluster, getEcalRecHitCollection(cluster), topology_);
147  }

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

◆ e1x5()

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

◆ e2nd()

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

Definition at line 218 of file EcalClusterLazyTools.h.

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

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ e2x2()

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

Definition at line 157 of file EcalClusterLazyTools.h.

157  {
158  return ClusterTools::e2x2(cluster, getEcalRecHitCollection(cluster), topology_);
159  }

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

◆ e2x5Bottom()

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

Definition at line 191 of file EcalClusterLazyTools.h.

191  {
192  return ClusterTools::e2x5Bottom(cluster, getEcalRecHitCollection(cluster), topology_);
193  }

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

◆ e2x5Left()

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

Definition at line 181 of file EcalClusterLazyTools.h.

181  {
182  return ClusterTools::e2x5Left(cluster, getEcalRecHitCollection(cluster), topology_);
183  }

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

◆ e2x5Max()

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

Definition at line 197 of file EcalClusterLazyTools.h.

197  {
198  return ClusterTools::e2x5Max(cluster, getEcalRecHitCollection(cluster), topology_);
199  }

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

◆ e2x5Right()

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

Definition at line 177 of file EcalClusterLazyTools.h.

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

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

◆ e2x5Top()

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

Definition at line 186 of file EcalClusterLazyTools.h.

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

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

◆ e3x1()

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

Definition at line 148 of file EcalClusterLazyTools.h.

148  {
149  return ClusterTools::e3x1(cluster, getEcalRecHitCollection(cluster), topology_);
150  }

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

◆ e3x2()

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

Definition at line 160 of file EcalClusterLazyTools.h.

160  {
161  return ClusterTools::e3x2(cluster, getEcalRecHitCollection(cluster), topology_);
162  }

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

◆ e3x3()

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

◆ e4x4()

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

Definition at line 166 of file EcalClusterLazyTools.h.

166  {
167  return ClusterTools::e4x4(cluster, getEcalRecHitCollection(cluster), topology_);
168  }

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

◆ e5x1()

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

Definition at line 154 of file EcalClusterLazyTools.h.

154  {
155  return ClusterTools::e5x1(cluster, getEcalRecHitCollection(cluster), topology_);
156  }

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

◆ e5x5()

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

Definition at line 169 of file EcalClusterLazyTools.h.

169  {
170  return ClusterTools::e5x5(cluster, getEcalRecHitCollection(cluster), topology_);
171  }

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

Referenced by EGammaMvaEleEstimatorCSA14::mvaValue(), and pat::PATPhotonSlimmer::produce().

◆ eBottom()

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

Definition at line 210 of file EcalClusterLazyTools.h.

210  {
211  return ClusterTools::eBottom(cluster, getEcalRecHitCollection(cluster), topology_);
212  }

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

◆ eLeft()

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

Definition at line 201 of file EcalClusterLazyTools.h.

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

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

◆ eMax()

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

Definition at line 214 of file EcalClusterLazyTools.h.

214  {
215  return ClusterTools::eMax(cluster, getEcalRecHitCollection(cluster));
216  }

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

◆ energyBasketFractionEta()

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

Definition at line 226 of file EcalClusterLazyTools.h.

226  {
227  return ClusterTools::energyBasketFractionEta(cluster, getEcalRecHitCollection(cluster));
228  }

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ energyBasketFractionPhi()

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

Definition at line 229 of file EcalClusterLazyTools.h.

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

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ energyMatrix()

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

Definition at line 121 of file EcalClusterLazyTools.h.

121  {
122  auto recHits = getEcalRecHitCollection(cluster);
123  DetId maxId = ClusterTools::getMaximum(cluster, recHits).first;
124 
125  std::vector<float> energies;
126  for (auto const &detId : CaloRectangleRange(size, maxId, *topology_)) {
127  energies.push_back(ClusterTools::recHitEnergy(detId, recHits));
128  }
129 
130  return energies;
131  }

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

◆ eRight()

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

Definition at line 204 of file EcalClusterLazyTools.h.

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

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

◆ eTop()

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

Definition at line 207 of file EcalClusterLazyTools.h.

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

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

◆ getMaximum()

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

Definition at line 223 of file EcalClusterLazyTools.h.

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

References EcalClusterLazyToolsBase::getEcalRecHitCollection().

◆ lat()

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

Definition at line 234 of file EcalClusterLazyTools.h.

234  {
235  return ClusterTools::lat(cluster, getEcalRecHitCollection(cluster), geometry_, logW, w0);
236  }

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

◆ localCovariances()

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

◆ n5x5()

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

Definition at line 172 of file EcalClusterLazyTools.h.

172  {
173  return ClusterTools::n5x5(cluster, getEcalRecHitCollection(cluster), topology_);
174  }

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

◆ scLocalCovariances()

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

Definition at line 255 of file EcalClusterLazyTools.h.

255  {
256  return ClusterTools::scLocalCovariances(cluster, getEcalRecHitCollection(cluster), topology_, w0);
257  }

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 
)
inline

Definition at line 258 of file EcalClusterLazyTools.h.

258  {
259  return ClusterTools::zernike20(cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0);
260  }

References EcalClusterLazyToolsBase::geometry_, EcalClusterLazyToolsBase::getEcalRecHitCollection(), and HLT_2018_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 
)
inline

Definition at line 261 of file EcalClusterLazyTools.h.

261  {
262  return ClusterTools::zernike42(cluster, getEcalRecHitCollection(cluster), geometry_, R0, logW, w0);
263  }

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

EgHLTOffHistBins_cfi.e1x5
e1x5
Definition: EgHLTOffHistBins_cfi.py:22
EcalClusterLazyToolsBase::getEcalRecHitCollection
const EcalRecHitCollection * getEcalRecHitCollection(const reco::BasicCluster &cluster) const
Definition: EcalClusterLazyTools.cc:109
CaloRectangleRange
Definition: CaloRectangle.h:36
EcalClusterLazyToolsBase::topology_
const CaloTopology * topology_
Definition: EcalClusterLazyTools.h:82
DetId
Definition: DetId.h:17
EcalClusterLazyToolsBase::EcalClusterLazyToolsBase
EcalClusterLazyToolsBase(const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT< EcalRecHitCollection > token1, edm::EDGetTokenT< EcalRecHitCollection > token2)
Definition: EcalClusterLazyTools.cc:25
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
cosmicPhotonAnalyzer_cfi.eMax
eMax
Definition: cosmicPhotonAnalyzer_cfi.py:10
HLT_2018_cff.R0
R0
Definition: HLT_2018_cff.py:7317
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
EcalClusterLazyToolsBase::geometry_
const CaloGeometry * geometry_
Definition: EcalClusterLazyTools.h:81
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443