Skip to content

Commit

Permalink
Merge pull request #6918 from matteosan1/topic_FixESClusterShapes73X
Browse files Browse the repository at this point in the history
bug fix to compute ES cluster shapes
  • Loading branch information
cmsbuild committed Jan 6, 2015
2 parents 9131685 + 45f94e3 commit eee1495
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
9 changes: 7 additions & 2 deletions RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h
Expand Up @@ -34,6 +34,7 @@ class CaloSubdetectorTopology;
class EcalClusterLazyToolsBase {
public:
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);
~EcalClusterLazyToolsBase();


Expand Down Expand Up @@ -94,8 +95,12 @@ class EcalClusterLazyToolsBase {
template<class EcalClusterToolsImpl>
class EcalClusterLazyToolsT : public EcalClusterLazyToolsBase {
public:
EcalClusterLazyToolsT( const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT<EcalRecHitCollection> token1, edm::EDGetTokenT<EcalRecHitCollection> token2):
EcalClusterLazyToolsBase(ev,es,token1,token2) {}

EcalClusterLazyToolsT( const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT<EcalRecHitCollection> token1, edm::EDGetTokenT<EcalRecHitCollection> token2):
EcalClusterLazyToolsBase(ev,es,token1,token2) {}

EcalClusterLazyToolsT( const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT<EcalRecHitCollection> token1, edm::EDGetTokenT<EcalRecHitCollection> token2, edm::EDGetTokenT<EcalRecHitCollection> token3):
EcalClusterLazyToolsBase(ev,es,token1,token2,token3) {}
~EcalClusterLazyToolsT() {}

// various energies in the matrix nxn surrounding the maximum energy crystal of the input cluster
Expand Down
16 changes: 16 additions & 0 deletions RecoEcal/EgammaCoreTools/src/EcalClusterLazyTools.cc
Expand Up @@ -26,11 +26,27 @@ EcalClusterLazyToolsBase::EcalClusterLazyToolsBase( const edm::Event &ev, const

ebRHToken_ = token1;
eeRHToken_ = token2;

getGeometry( es );
getTopology( es );
getEBRecHits( ev );
getEERecHits( ev );
getIntercalibConstants( es );
getADCToGeV ( es );
getLaserDbService ( es );
}

EcalClusterLazyToolsBase::EcalClusterLazyToolsBase( const edm::Event &ev, const edm::EventSetup &es, edm::EDGetTokenT<EcalRecHitCollection> token1, edm::EDGetTokenT<EcalRecHitCollection> token2, edm::EDGetTokenT<EcalRecHitCollection> token3) {

ebRHToken_ = token1;
eeRHToken_ = token2;
esRHToken_ = token3;

getGeometry( es );
getTopology( es );
getEBRecHits( ev );
getEERecHits( ev );
getESRecHits( ev );
getIntercalibConstants( es );
getADCToGeV ( es );
getLaserDbService ( es );
Expand Down

0 comments on commit eee1495

Please sign in to comment.