Skip to content

Commit

Permalink
Bug fix for HcalTopology
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Oct 14, 2015
1 parent 2757e40 commit d8a0235
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Geometry/CaloTopology/src/HcalTopology.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "CLHEP/Units/GlobalPhysicalConstants.h"

static const int IPHI_MAX=72;
//#define DebugLog

HcalTopology::HcalTopology(const HcalDDDRecConstants* hcons, HcalTopologyMode::TriggerMode tmode) :
hcons_(hcons),
Expand Down Expand Up @@ -57,11 +58,15 @@ HcalTopology::HcalTopology(const HcalDDDRecConstants* hcons, HcalTopologyMode::T
HBSize_ = nEtaHB_*72*maxDepthHB_*2;
HESize_ = nEtaHE_*72*maxDepthHE_*2;
HOSize_ = (lastHORing_-firstHORing_+1)*72*2; // ieta * iphi * 2
HFSize_ = (lastHFRing_-firstHFRing_+1)*72*2*2; // ieta * iphi * depth * 2
HFSize_ = (lastHFRing_-firstHFRing_+1)*72*maxDepthHF_*2; // ieta * iphi * depth * 2
HTSize_ = kHTSizePreLS1; //no clue!
numberOfShapes_ = 500;
}
maxEta_ = (lastHERing_ > lastHFRing_) ? lastHERing_ : lastHFRing_;
#ifdef DebugLog
std::cout << "Topo sizes " << HBSize_ << ":" << HESize_ << ":" << HOSize_
<< ":" << HFSize_ << " for mode " << mode_ << std::endl;
#endif

//The transition between HE/HF in eta
etaTableHF = hcons_->getEtaTableHF();
Expand Down Expand Up @@ -152,7 +157,7 @@ HcalTopology::HcalTopology(HcalTopologyMode::Mode mode, int maxDepthHB, int maxD
HBSize_= maxDepthHB*16*72*2;
HESize_= maxDepthHE*(29-16+1)*72*2;
HOSize_= 15*72*2; // ieta * iphi * 2
HFSize_= 72*13*2*2; // phi * eta * depth * pm
HFSize_= 72*13*maxDepthHF_*2; // phi * eta * depth * pm
HTSize_= kHTSizePreLS1; //no clue!
topoVersion_=10;
}
Expand Down

0 comments on commit d8a0235

Please sign in to comment.