6 #include "CLHEP/Units/GlobalPhysicalConstants.h" 7 #include "CLHEP/Units/GlobalSystemOfUnits.h" 18 std::cout <<
"HcalDDDRecConstants::HcalDDDRecConstants (const HcalParameters* hp) constructor" << std::endl;
25 std::cout <<
"HcalDDDRecConstants::destructed!!!" << std::endl;
30 const bool& extra)
const {
35 if (it->layer == eta + 1)
return it->layerGroup;
36 if (it->layer > eta + 1 )
return last->layerGroup;
39 return last->layerGroup;
43 std::vector<int> depths;
44 for (
unsigned int lay=0; lay < layers.size(); ++lay)
45 depths.emplace_back(layers[lay+1]);
51 const unsigned int&
eta)
const {
57 std::vector<int> depths;
58 for (
unsigned int lay=0; lay < layers.size(); ++lay)
59 depths.emplace_back(layers[lay+1]);
64 std::vector<HcalDDDRecConstants::HcalEtaBin>
67 std::vector<HcalDDDRecConstants::HcalEtaBin>
bins;
68 unsigned int type = (itype == 0) ? 0 : 1;
70 std::vector<int> phiSp;
73 for (
int iz=0; iz<2; ++iz) {
76 std::vector<std::pair<int,double> > phis =
getPhis(subdet,ieta);
77 std::vector<std::pair<int,double> > phiUse;
79 if (subdet == subdetSp) {
80 for (
auto &
phi : phis) {
81 if (
std::find(phiSp.begin(),phiSp.end(),(zside*
phi.first)) ==
83 phiUse.emplace_back(
phi);
87 phiUse.insert(phiUse.end(),phis.begin(),phis.end());
89 getOneEtaBin(subdet,ieta,zside,phiUse,layers,
false,bins);
92 if (subdetSp == subdet) {
94 std::vector<std::pair<int,double> > phis =
getPhis(subdet,ieta);
95 for (
int iz=0; iz<2; ++iz) {
97 std::vector<std::pair<int,double> > phiUse;
99 for (
auto &
phi : phis) {
100 if (
i == zside*
phi.first) {
101 phiUse.emplace_back(
phi);
106 if (!phiUse.empty()) {
108 getOneEtaBin(subdet,ieta,zside,phiUse,layers,
true,bins);
114 std::cout <<
"Prepares " << bins.size() <<
" eta bins for type " << type
116 for (
unsigned int i=0;
i<bins.size(); ++
i) {
117 std::cout <<
"Bin[" <<
i <<
"]: Eta = (" << bins[
i].ieta <<
":" 118 << bins[
i].etaMin <<
":" << bins[
i].etaMax <<
"), Zside = " 119 << bins[
i].zside <<
", phis = (" << bins[
i].phis.size() <<
":" 120 << bins[
i].dphi <<
") and " << bins[
i].layer.size()
121 <<
" depths (start) " << bins[
i].depthStart <<
" :";
122 for (
unsigned int k=0;
k<bins[
i].layer.size(); ++
k)
125 std::cout << std::endl <<
" and Phi sets";
126 for (
unsigned int k=0;
k<bins[
i].phis.size(); ++
k)
134 std::pair<double,double>
136 int ietaAbs = (ieta > 0) ? ieta : -ieta;
138 if ((subdet == static_cast<int>(
HcalBarrel)) ||
140 (subdet == static_cast<int>(
HcalOuter))) {
142 int kphi = (unit == 2) ? ((iphi-1)/2 + 1) : iphi;
145 phi = foff + (kphi-0.5)*
phibin[ietaAbs-1];
149 int kphi = (unit == 4) ? ((iphi-3)/4 + 1) : ((iphi-1)/2 + 1);
157 std::cout <<
"getEtaPhi: subdet|ieta|iphi " << subdet <<
"|" << ieta <<
"|" 158 << iphi <<
" eta|phi " <<
eta <<
"|" << phi << std::endl;
160 return std::pair<double,double>(
eta,
phi);
167 int ieta = (keta > 0) ? keta : -keta;
168 int zside= (keta > 0) ? 1 : -1;
170 if ((subdet == static_cast<int>(
HcalOuter)) ||
174 }
else if (subdet == static_cast<int>(
HcalBarrel) ||
182 }
else if (unit == 4) {
201 kphi = (kphi-1)%4 + 1;
202 if (kphi == 2 || kphi == 3) depth =
layerGroup(
eta-1, lay-2);
209 std::cout <<
"getHCID: input " << subdet <<
":" << ieta <<
":" << iphi
210 <<
":" << idepth <<
":" << lay <<
" output " <<
eta <<
":" <<
phi 211 <<
":" << depth << std::endl;
216 std::vector<HcalDDDRecConstants::HFCellParameters>
219 std::vector<HcalDDDRecConstants::HFCellParameters> cells;
222 for (
unsigned int k=0;
k<
nEta; ++
k) {
225 int iphi = (dphi == 4) ? 3 : 1;
230 cells.emplace_back(cell1);
232 cells.emplace_back(cell2);
245 cells.emplace_back(cell1);
248 for (
unsigned int k=0;
k<
nEta; ++
k) {
251 int iphi = (dphi == 4) ? 3 : 1;
256 cells.emplace_back(cell1);
258 cells.emplace_back(cell2);
263 std::cout <<
"HcalDDDRecConstants returns " << cells.size()
264 <<
" HF cell parameters" << std::endl;
265 for (
unsigned int k=0;
k<cells.size(); ++
k)
267 <<
", " << cells[
k].firstPhi <<
", " << cells[
k].stepPhi <<
", " 268 << cells[
k].
nPhi <<
", " << cells[
k].
rMin <<
", " 269 << cells[
k].
rMax <<
")" << std::endl;
282 std::cout <<
"getLayerDepth::Input " << ieta <<
" Output " 283 << layers.size() <<
" entries" << std::endl;
284 for (std::map<int,int>::iterator itr=layers.begin(); itr != layers.end();
285 ++itr)
std::cout <<
" [" << itr->first <<
"] " << itr->second;
291 const int& iphi,
const int&
depth)
const {
292 int subdet = (idet == 1) ? 1 : 2;
293 int zside = (ieta > 0) ? 1 : -1;
294 int eta = zside*ieta;
298 if (eta == 16 && subdet == 2) {
300 }
else if (eta <= hpar->
etaMax[1]) {
303 if ((
int)(
k) >= laymin) {
312 std::cout <<
"getLayerFront::Input " << idet <<
":" << ieta <<
":" 313 << iphi <<
":" << depth <<
" Output " << layFront << std::endl;
319 const int& iphi,
const int&
zside)
const {
321 unsigned int type = (itype == 0) ? 0 : 1;
334 std::cout <<
"getMaxDepth::Input " << itype <<
":" << ieta <<
":" 335 << iphi <<
":" << zside <<
" Output " << lmax << std::endl;
341 const int& iphi,
const int&
zside)
const {
347 }
else if (itype == 3) {
350 unsigned int type = (itype == 0) ? 0 : 1;
352 if (type == 1 && ieta ==
iEtaMin[type])
362 std::vector<std::pair<int,double> >
365 std::vector<std::pair<int,double> > phis;
366 int ietaAbs = (ieta > 0) ? ieta : -ieta;
369 double fioff = ficons.first;
371 int nphi =
int((CLHEP::twopi+0.1*dphi)/dphi);
373 for (
int ifi = 0; ifi < nphi; ++ifi) {
374 double phi =-fioff + (ifi+0.5)*dphi;
376 phis.emplace_back(std::pair<int,double>(iphi,phi));
379 std::cout <<
"getEtaPhi: subdet|ieta|iphi " << subdet <<
"|" << ieta
380 <<
" with " << phis.size() <<
" phi bins" << std::endl;
381 for (
unsigned int k=0;
k<phis.size(); ++
k)
383 << phis[
k].
second/CLHEP::deg << std::endl;
395 int zside = (
k > 0) ? 1 : -1;
396 int phi = (
k > 0) ?
k : -
k;
397 phiz.emplace_back(std::pair<int,int>(phi,zside));
401 std::cout <<
"Special RBX for detector " << subdet <<
" with " << phiz.size()
403 for (
unsigned int k=0;
k<phiz.size(); ++
k)
411 const int&
depth)
const {
413 return getRZ(subdet, ieta, 1, depth);
417 const int&
depth)
const {
419 double rz = (layf < 0) ? 0.0 :
423 std::cout <<
"getRZ: subdet|ieta|ipho|depth " << subdet <<
"|" << ieta <<
"|" 424 << iphi <<
"|" << depth <<
" lay|rz " << layf <<
"|" << rz
437 std::cout <<
"getRZ: subdet|layer " << subdet <<
"|" << layer <<
" rz " 444 std::vector<HcalDDDRecConstants::HcalActiveLength>
447 std::vector<HcalDDDRecConstants::HcalActiveLength> actives;
448 std::vector<HcalDDDRecConstants::HcalEtaBin>
bins =
getEtaBins(type);
450 unsigned int kount(0);
452 for (
auto &
bin : bins) {
455 int stype = (
bin.phis.size() > 4) ? 0 : 1;
458 double eta = 0.5*(
bin.etaMin+
bin.etaMax);
460 double scale = 1.0/((type == 0) ?
sin(theta) :
cos(theta));
463 std::cout <<
"Eta " << ieta <<
" zside " << zside <<
" depth " << depth
464 <<
" Layers " << layf <<
":" << layl <<
":" <<
bin.layer.size();
465 for (
auto ll :
bin.layer)
std::cout <<
" " << ll.first <<
":" << ll.second;
470 for (
unsigned int i = 0;
i <
bin.layer.size(); ++
i) {
472 int lmin = (type == 1 && ieta ==
iEtaMin[1]) ? layf :
475 for (
int j = lmin; j <= lmax; ++j) {
476 if (type == 0 || j > 1) {
478 if (t > 0) thick +=
t;
484 active.
iphis.emplace_back(
phi.first);
485 actives.emplace_back(active);
489 std::cout <<
"getThickActive: [" << kount <<
"] eta:" << active.
ieta 490 <<
":" << active.
eta <<
" zside " << active.
zside <<
" depth " 491 << active.
depth <<
" type " << active.
stype <<
" thick " 492 << active.
thick << std::endl;
499 std::vector<HcalCellType>
503 std::vector<HcalCellType> cells;
505 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
506 std::vector<int> missPhi;
507 for (
const auto& etabin : etabins) {
508 std::vector<HcalCellType>
temp;
509 std::vector<int>
count;
510 std::vector<double> dmin, dmax;
511 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
514 temp.emplace_back(cell);
515 count.emplace_back(0);
516 dmin.emplace_back(0);
517 dmax.emplace_back(0);
519 int ieta = etabin.ieta;
523 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
524 for (
auto & ic : cellsm) {
525 if (ic.depthSegment() >= etabin.layer[il].first &&
526 ic.depthSegment() <= etabin.layer[il].second &&
527 ic.etaBin() == temp[il].etaBin() &&
528 ic.zside() == temp[il].zside()) {
529 if (count[il] == 0) {
531 dmin[il] = ic.depthMin();
532 dmax[il] = ic.depthMax();
535 if (ic.depthMin() < dmin[il])
536 dmin[il] = ic.depthMin();
537 if (ic.depthMax() > dmax[il])
538 dmax[il] = ic.depthMax();
543 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
544 int depth = etabin.depthStart + (
int)(il);
545 temp[il].setEta(ieta,etabin.etaMin,etabin.etaMax);
546 temp[il].setDepth(depth,dmin[il],dmax[il]);
549 temp[il].setPhi(etabin.phis, missPhi, foff, etabin.dphi,
unit);
550 cells.emplace_back(temp[il]);
554 std::cout <<
"HcalDDDRecConstants: found " << cells.size()
555 <<
" cells for sub-detector type " << isub << std::endl;
556 for (
unsigned int ic=0; ic<cells.size(); ++ic)
557 std::cout <<
"Cell[" << ic <<
"] " << cells[ic] << std::endl;
568 unsigned int num = 0;
570 for (
auto & cellType : cellTypes) {
571 num += (
unsigned int)(cellType.nPhiBins());
574 edm::LogInfo (
"HCalGeom") <<
"HcalDDDRecConstants:numberOfCells " 575 << cellTypes.size() <<
" " << num
576 <<
" for subdetector " << subdet;
588 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
589 unsigned int ncell(0);
590 for (
auto & etabin : etabins) {
591 ncell += ((etabin.phis.size())*(etabin.layer.size()));
609 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
id);
610 if (itr ==
detIdSp_.end())
return id;
611 else return itr->second;
617 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
619 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second)[0].
depth());
626 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
628 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second).back().depth());
633 std::vector<HcalDetId>& ids)
const {
636 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
638 ids.emplace_back(
id);
640 for (
auto k : itr->second) {
641 HcalDetId hid(
id.subdet(),
id.ieta(),
id.iphi(),
k.depth());
642 ids.emplace_back(hid);
648 std::vector<HcalDetId>& idsNew)
const {
649 for (
auto k : idsOld) {
650 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
k);
651 if (itr ==
detIdSp_.end()) idsNew.emplace_back(
k);
652 else idsNew.emplace_back(itr->second);
657 std::vector<HcalDetId>& ids)
const {
659 std::map<HcalDetId,HcalDetId>::const_iterator itr;
661 ids.emplace_back(itr->first);
663 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr;
665 ids.emplace_back(itr->first);
667 return (!ids.empty());
671 std::vector<std::pair<int,double> >& phis,
672 std::map<int,int>&
layers,
bool planOne,
673 std::vector<HcalDDDRecConstants::HcalEtaBin>&
bins)
const {
677 double dphi =
phibin[ieta-1];
679 etabin.
phis.insert(etabin.
phis.end(),phis.begin(),phis.end());
684 int lmin(0), lmax(0);
685 std::map<int,int>::iterator itr=layers.begin();
686 if (!layers.empty()) {
687 int dep = itr->second;
690 unsigned lymx0 = (layers.size() > lymax) ? lymax : layers.size();
693 <<
" lymax " << lymx0 <<
":" << lymax <<
" Depth " << dep <<
":" 696 for (itr = layers.begin(); itr != layers.end(); ++itr,++
l)
697 std::cout <<
" [" << l <<
"] " << itr->first <<
":" << itr->second;
698 std::cout << std::endl <<
" with " << phis.size() <<
" phis";
699 for (
unsigned int l=0; l<phis.size(); ++
l)
703 for (itr = layers.begin(); itr != layers.end(); ++itr) {
704 if (itr->first <= (
int)(lymx0)) {
705 if (itr->second == dep) {
706 if (lmin == 0) lmin = itr->first;
708 }
else if (itr->second > dep) {
709 if (dstart < 0) dstart = dep;
710 int lmax0 = (lmax >= lmin) ? lmax : lmin;
713 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
715 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
728 if (itr->first == (
int)(lymx0)) lmax = lymx0;
733 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
734 etabin0.
phis.insert(etabin0.
phis.end(),phis.begin(),phis.end());
735 bins.emplace_back(etabin0);
738 << etabin0.
layer.size() <<
":" << lmin <<
":" << lmax
739 <<
" phis " << phis.size() << std::endl;
740 for (
unsigned int k=0;
k<etabin0.
layer.size(); ++
k)
742 << etabin0.
layer[
k].second;
747 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
748 if (dstart < 0) dstart = dep;
753 bins.emplace_back(etabin);
756 << etabin.
layer.size() <<
":" << lmin <<
":" << lmax
757 <<
" phis " << etabin.
phis.size() << std::endl;
758 for (
unsigned int k=0;
k<etabin.
layer.size(); ++
k)
760 << etabin.
layer[
k].second;
770 edm::LogError(
"HCalGeom") <<
"HcalDDDRecConstants: sizes of the vectors " 771 <<
" etaGroup (" << nEta <<
") and phiGroup (" 773 throw cms::Exception(
"DDException") <<
"HcalDDDRecConstants: inconsistent array sizes" << nEta <<
":" <<
hpar->
phigroup.size();
780 int ieta(0), ietaHB(0), ietaHE(0), ietaHEM(0);
786 edm::LogError(
"HCalGeom") <<
"Going beyond the array boundary " 788 <<
" of etaTable from SimConstant";
789 throw cms::Exception(
"DDException") <<
"Going beyond the array boundary " 792 <<
" of etaTable from SimConstant";
795 etaSimValu.emplace_back(std::pair<int,int>(ef,ieta));
798 if (ieta <= hpar->
etaMax[0]) ietaHB =
i+1;
799 if (ieta <= hpar->
etaMin[1]) ietaHE =
i+1;
800 if (ieta <= hpar->etaMax[1]) ietaHEM=
i+1;
808 for (
unsigned int k=0;
k<4; ++
k)
nPhiBins.emplace_back(0);
813 phibin.emplace_back(dphi);
814 int nphi = (
int)((CLHEP::twopi + 0.001)/dphi);
828 int nphi = (
int)((CLHEP::twopi + 0.001)/
i);
832 std::cout <<
"Modified eta/deltaphi table for " << nEta <<
" bins" << std::endl;
833 for (
int i=0; i<
nEta; ++
i)
836 <<
" PhiBin[" << i <<
"] = " <<
phibin[i]/CLHEP::deg <<std::endl;
838 for (
unsigned int i=0; i<
phiUnitS.size(); ++
i)
842 for (
unsigned int i=0; i<
nPhiBins.size(); ++
i)
858 for (
int i=0; i<
nEta; ++
i) {
860 int laymax = (imx > 0) ?
layerGroup(i,imx-1) : 0;
862 int laymax0 = (imx > 16) ?
layerGroup(i,16) : laymax;
865 std::cout <<
"HB " << i <<
" " << imx <<
" " << laymax <<
" " 866 << laymax0 << std::endl;
872 std::cout <<
"HE " << i <<
" " << imx <<
" " << laymax << std::endl;
878 for (
int i=0; i<4; ++
i)
886 for (
unsigned int i=0; i<
hpar->
rHB.size(); ++
i) {
887 gconsHB.emplace_back(std::pair<double,double>(
hpar->
rHB[i]/CLHEP::cm,
892 <<
" halves and " <<
gconsHB.size() <<
" layers" << std::endl;
893 for (
unsigned int i=0; i<
gconsHB.size(); ++
i)
899 for (
unsigned int i=0; i<
hpar->
zHE.size(); ++
i) {
900 gconsHE.emplace_back(std::pair<double,double>(
hpar->
zHE[i]/CLHEP::cm,
905 <<
" halves and " <<
gconsHE.size() <<
" layers" << std::endl;
906 for (
unsigned int i=0; i<
gconsHE.size(); ++
i)
923 std::cout <<
"Detector type and maximum depth for all RBX " 925 <<
" and for special RBX " <<
depthMaxSp_.first <<
":" 930 std::vector<int> phis;
934 int phi = (phis[0] > 0) ? phis[0] : -phis[0];
935 int zside = (phis[0] > 0) ? 1 : -1;
938 for (
int eta=etas.first;
eta<=etas.second; ++
eta) {
939 std::map<int,std::pair<int,int> > oldDep;
942 for (
int lay=0; lay<lymax; ++lay) {
945 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lay-1);
950 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lymax-1);
952 std::cout <<
"Eta|Phi|Zside " <<
eta <<
":" << phi <<
":" << zside
953 <<
" with " << oldDep.size() <<
" old Depths" << std::endl;
955 for (
std::map<
int,std::pair<int,int> >::const_iterator itr=oldDep.begin(); itr != oldDep.end(); ++itr,++
kk)
956 std::cout <<
"[" << kk <<
"] " << itr->first <<
" --> " 957 << itr->second.first <<
":" << itr->second.second <<
"\n";
960 for (
int ndepth=depths.first; ndepth<=depths.second; ++ndepth) {
966 std::vector<int>
count(oldDep.size(),0);
969 for (
int lay=layFront; lay<=layBack; ++lay) {
971 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
972 itr != oldDep.end(); ++itr,++
l) {
973 if (lay >= (itr->second).first && lay <= (itr->second).
second) {
978 int odepth(0), maxlay(0);
980 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
981 itr != oldDep.end(); ++itr,++
l) {
982 if (
count[l] > maxlay) {
988 std::cout <<
"New Depth " << ndepth <<
" old Depth " << odepth
989 <<
" max " << maxlay << std::endl;
992 zside = (
k > 0) ? 1 : -1;
993 phi = (
k > 0) ?
k : -
k;
996 HcalDetId newId(subdet,zside*eta,phi,ndepth);
997 HcalDetId oldId(subdet,zside*eta,phi,odepth);
999 std::vector<HcalDetId> ids;
1000 std::map<HcalDetId,std::vector<HcalDetId>>::iterator itr =
detIdSpR_.find(oldId);
1001 if (itr !=
detIdSpR_.end()) ids = itr->second;
1002 ids.emplace_back(newId);
1009 std::cout <<
"Map for merging new channels to old channel IDs with " 1010 <<
detIdSp_.size() <<
" entries" << std::endl;
1013 std::cout <<
"[" << l <<
"] Special " << itr.first <<
" Standard " 1014 << itr.second << std::endl;
1017 std::cout <<
"Reverse Map for mapping old to new IDs with " 1018 <<
detIdSpR_.size() <<
" entries" << std::endl;
1021 std::cout <<
"[" << l <<
"] Standard " << itr.first <<
" Special";
1022 for (
auto itr1 : itr.second)
1035 if (it.layer == (
unsigned int)(eta + 1)) {
1036 return it.layerGroup.size();
1038 if (it.layer > (
unsigned int)(eta + 1))
break;
1039 k = it.layerGroup.size();
1047 if (it.layer == (
unsigned int)(eta + 1)) {
1048 return it.layerGroup.at(i);
1050 if (it.layer > (
unsigned int)(eta + 1))
break;
1051 k = it.layerGroup.at(i);
std::vector< int > getDepth(const int &det, const int &phi, const int &zside, const unsigned int &eta) const
std::vector< double > etaTable
std::vector< int > iEtaMin
std::vector< int > etagroup
std::pair< int, int > depthMaxSp_
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
std::map< HcalDetId, std::vector< HcalDetId > > detIdSpR_
std::pair< double, double > getEtaPhi(const int &subdet, const int &ieta, const int &iphi) const
int findDepth(const int &det, const int &eta, const int &phi, const int &zside, const int &lay) const
void getLayerDepth(const int subdet, const int ieta, const int iphi, const int zside, std::map< int, int > &layers) const
std::vector< double > rHB
std::vector< std::pair< int, int > > etaSimValu
HcalDetId mergedDepthDetId(const HcalDetId &id) const
int getFrontLayer(const int &det, const int &eta) const
Sin< T >::type sin(const T &t)
int getMinDepth(const int &det, const int &eta, const int &phi, const int &zside, const bool &partialOnly) const
Geom::Theta< T > theta() const
unsigned int layerGroup(int eta, int i) const
void getOneEtaBin(HcalSubdetector subdet, int ieta, int zside, std::vector< std::pair< int, double >> &phis, std::map< int, int > &layers, bool planOne, std::vector< HcalDDDRecConstants::HcalEtaBin > &bins) const
int phiNumber(const int &phi, const int &unit) const
static const int maxLayer_
std::vector< int > maxDepth
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< double > etaTableHF
int getLayerBack(const int subdet, const int ieta, const int iphi, const int zside, const int depth) const
std::vector< int > etaMax
std::vector< int > phiUnitS
int getLayerFront(const int subdet, const int ieta, const int iphi, const int zside, const int depth) const
U second(std::pair< T, U > const &p)
const HcalParameters * hpar
std::pair< int, int > getDepths(const int eta) const
int validDet(std::vector< int > &phis) const
std::vector< std::pair< double, double > > gconsHE
std::vector< double > zHE
std::vector< HcalEtaBin > getEtaBins(const int &itype) const
std::vector< double > phibin
int getMaxDepth(const int &type) const
const std::vector< double > & getRTableHF() const
void specialRBXHBHE(const std::vector< HcalDetId > &, std::vector< HcalDetId > &) const
int getDepthEta29(const int &phi, const int &zside, const int &i) const
unsigned int numberOfCells(HcalSubdetector) const
HcalDetId idFront(const HcalDetId &id) const
int unitPhi(const int &det, const int &etaR) const
HcalID getHCID(int subdet, int ieta, int iphi, int lay, int idepth) const
std::vector< double > dzHE
int getMinDepth(const int &itype, const int &ieta, const int &iphi, const int &zside) const
double getRZ(const int &subdet, const int &ieta, const int &depth) const
Cos< T >::type cos(const T &t)
const std::vector< double > & getPhiTableHF() const
std::vector< HFCellParameters > getHFCellParameters() const
const std::vector< int > & getPhis() const
std::vector< int > iEtaMax
Abs< T >::type abs(const T &t)
std::vector< HcalCellType > HcalCellTypes() const
std::map< HcalDetId, HcalDetId > detIdSp_
std::vector< int > ietaMap
std::vector< int > nPhiBins
std::vector< std::pair< int, int > > layer
std::pair< int, int > validEta() const
void getLayerDepth(const int &ieta, std::map< int, int > &layers) const
int getLastLayer(const int &det, const int &eta) const
std::vector< HcalCellType > HcalCellTypes(HcalSubdetector) const
unsigned int numberOfCells(const HcalSubdetector &) const
int getLayerFront(const int &det, const int &eta, const int &phi, const int &depth) const
std::vector< std::pair< int, double > > getPhis(const int &subdet, const int &ieta) const
HcalDetId idBack(const HcalDetId &id) const
int getDepthEta16M(const int &det) const
int getDepthEta29M(const int &i, const bool &planOne) const
bin
set the eta bin as selection string.
std::vector< double > phioff
unsigned int layerGroupSize(int eta) const
std::vector< double > etaTable
HcalDDDRecConstants(const HcalParameters *hp, const HcalDDDSimConstants &hc)
int getMaxDepth(const int &type) const
void unmergeDepthDetId(const HcalDetId &id, std::vector< HcalDetId > &ids) const
std::vector< double > phitable
TString units(TString variable, Char_t axis)
std::vector< double > phibin
std::vector< LayerItem > layerGroupEtaRec
std::vector< double > drHB
const HcalDDDSimConstants & hcons
std::pair< int, int > depthMaxDf_
std::vector< HcalActiveLength > getThickActive(const int &type) const
std::pair< int, int > getMaxDepthDet(const int &i) const
const std::vector< HcalDetId > & getIdHF2QIE() const
std::vector< std::pair< double, double > > gconsHB
std::vector< int > maxDepth
std::vector< int > phigroup
static const int maxLayerHB_
std::pair< double, double > getPhiCons(const int &det, const int &ieta) const
std::vector< std::pair< int, double > > phis
std::vector< int > etaMin
unsigned int nCells() const
int getPhiZOne(std::vector< std::pair< int, int > > &phiz) const
int getDepthEta16(const int &det, const int &phi, const int &zside) const
const HcalLayerDepthMap * ldMap() const