Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix to compute ES cluster shapes #6918

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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