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;
297 if ((layFront < 0) ||
298 ((subdet == static_cast<int>(
HcalEndcap)) && (eta == 16))) {
299 if ((subdet == static_cast<int>(
HcalEndcap)) && (eta == 16)) {
301 }
else if (eta <= hpar->
etaMax[1]) {
304 if ((
int)(
k) >= laymin) {
312 if (layFront < laymin) layFront = laymin;
315 std::cout <<
"getLayerFront::Input " << idet <<
":" << ieta <<
":" 316 << iphi <<
":" << depth <<
" Output " << layFront << std::endl;
322 const int& iphi,
const int&
zside)
const {
324 unsigned int type = (itype == 0) ? 0 : 1;
337 std::cout <<
"getMaxDepth::Input " << itype <<
":" << ieta <<
":" 338 << iphi <<
":" << zside <<
" Output " << lmax << std::endl;
344 const int& iphi,
const int&
zside)
const {
350 }
else if (itype == 3) {
353 unsigned int type = (itype == 0) ? 0 : 1;
355 if (type == 1 && ieta ==
iEtaMin[type])
365 std::vector<std::pair<int,double> >
368 std::vector<std::pair<int,double> > phis;
369 int ietaAbs = (ieta > 0) ? ieta : -ieta;
372 double fioff = ficons.first;
374 int nphi =
int((CLHEP::twopi+0.1*dphi)/dphi);
376 for (
int ifi = 0; ifi < nphi; ++ifi) {
377 double phi =-fioff + (ifi+0.5)*dphi;
379 phis.emplace_back(std::pair<int,double>(iphi,phi));
382 std::cout <<
"getEtaPhi: subdet|ieta|iphi " << subdet <<
"|" << ieta
383 <<
" with " << phis.size() <<
" phi bins" << std::endl;
384 for (
unsigned int k=0;
k<phis.size(); ++
k)
386 << phis[
k].
second/CLHEP::deg << std::endl;
398 int zside = (
k > 0) ? 1 : -1;
399 int phi = (
k > 0) ?
k : -
k;
400 phiz.emplace_back(std::pair<int,int>(phi,zside));
404 std::cout <<
"Special RBX for detector " << subdet <<
" with " << phiz.size()
406 for (
unsigned int k=0;
k<phiz.size(); ++
k)
414 const int&
depth)
const {
416 return getRZ(subdet, ieta, 1, depth);
420 const int&
depth)
const {
422 double rz = (layf < 0) ? 0.0 :
426 std::cout <<
"getRZ: subdet|ieta|ipho|depth " << subdet <<
"|" << ieta <<
"|" 427 << iphi <<
"|" << depth <<
" lay|rz " << layf <<
"|" << rz
440 std::cout <<
"getRZ: subdet|layer " << subdet <<
"|" << layer <<
" rz " 447 std::vector<HcalDDDRecConstants::HcalActiveLength>
450 std::vector<HcalDDDRecConstants::HcalActiveLength> actives;
451 std::vector<HcalDDDRecConstants::HcalEtaBin>
bins =
getEtaBins(type);
453 unsigned int kount(0);
455 for (
auto &
bin : bins) {
458 int stype = (
bin.phis.size() > 4) ? 0 : 1;
461 double eta = 0.5*(
bin.etaMin+
bin.etaMax);
463 double scale = 1.0/((type == 0) ?
sin(theta) :
cos(theta));
466 std::cout <<
"Eta " << ieta <<
" zside " << zside <<
" depth " << depth
467 <<
" Layers " << layf <<
":" << layl <<
":" <<
bin.layer.size();
468 for (
auto ll :
bin.layer)
std::cout <<
" " << ll.first <<
":" << ll.second;
473 for (
unsigned int i = 0;
i <
bin.layer.size(); ++
i) {
475 int lmin = (type == 1 && ieta ==
iEtaMin[1]) ? layf :
478 for (
int j = lmin; j <= lmax; ++j) {
480 if ((type == 1) && (ieta <= 18)) t =
gconsHE[j].second;
481 if (t > 0) thick +=
t;
484 std::cout <<
"Type " << type <<
" L " << lmin <<
":" << lmax <<
" T " 485 << thick << std::endl;
490 active.
iphis.emplace_back(
phi.first);
491 actives.emplace_back(active);
495 std::cout <<
"getThickActive: [" << kount <<
"] eta:" << active.
ieta 496 <<
":" << active.
eta <<
" zside " << active.
zside <<
" depth " 497 << active.
depth <<
" type " << active.
stype <<
" thick " 498 << active.
thick << std::endl;
505 std::vector<HcalCellType>
509 std::vector<HcalCellType> cells;
511 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
512 std::vector<int> missPhi;
513 for (
const auto& etabin : etabins) {
514 std::vector<HcalCellType>
temp;
515 std::vector<int>
count;
516 std::vector<double> dmin, dmax;
517 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
520 temp.emplace_back(cell);
521 count.emplace_back(0);
522 dmin.emplace_back(0);
523 dmax.emplace_back(0);
525 int ieta = etabin.ieta;
529 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
530 for (
auto & ic : cellsm) {
531 if (ic.depthSegment() >= etabin.layer[il].first &&
532 ic.depthSegment() <= etabin.layer[il].second &&
533 ic.etaBin() == temp[il].etaBin() &&
534 ic.zside() == temp[il].zside()) {
535 if (count[il] == 0) {
537 dmin[il] = ic.depthMin();
538 dmax[il] = ic.depthMax();
541 if (ic.depthMin() < dmin[il])
542 dmin[il] = ic.depthMin();
543 if (ic.depthMax() > dmax[il])
544 dmax[il] = ic.depthMax();
549 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
550 int depth = etabin.depthStart + (
int)(il);
551 temp[il].setEta(ieta,etabin.etaMin,etabin.etaMax);
552 temp[il].setDepth(depth,dmin[il],dmax[il]);
555 temp[il].setPhi(etabin.phis, missPhi, foff, etabin.dphi,
unit);
556 cells.emplace_back(temp[il]);
560 std::cout <<
"HcalDDDRecConstants: found " << cells.size()
561 <<
" cells for sub-detector type " << isub << std::endl;
562 for (
unsigned int ic=0; ic<cells.size(); ++ic)
563 std::cout <<
"Cell[" << ic <<
"] " << cells[ic] << std::endl;
574 unsigned int num = 0;
576 for (
auto & cellType : cellTypes) {
577 num += (
unsigned int)(cellType.nPhiBins());
580 edm::LogInfo (
"HCalGeom") <<
"HcalDDDRecConstants:numberOfCells " 581 << cellTypes.size() <<
" " << num
582 <<
" for subdetector " << subdet;
594 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
595 unsigned int ncell(0);
596 for (
auto & etabin : etabins) {
597 ncell += ((etabin.phis.size())*(etabin.layer.size()));
615 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
id);
616 if (itr ==
detIdSp_.end())
return id;
617 else return itr->second;
623 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
625 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second)[0].
depth());
632 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
634 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second).back().depth());
639 std::vector<HcalDetId>&
ids)
const {
642 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
644 ids.emplace_back(
id);
646 for (
auto k : itr->second) {
647 HcalDetId hid(
id.subdet(),
id.ieta(),
id.iphi(),
k.depth());
648 ids.emplace_back(hid);
654 std::vector<HcalDetId>& idsNew)
const {
655 for (
auto k : idsOld) {
656 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
k);
657 if (itr ==
detIdSp_.end()) idsNew.emplace_back(
k);
658 else idsNew.emplace_back(itr->second);
663 std::vector<HcalDetId>&
ids)
const {
665 std::map<HcalDetId,HcalDetId>::const_iterator itr;
667 ids.emplace_back(itr->first);
669 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr;
671 ids.emplace_back(itr->first);
673 return (!ids.empty());
677 std::vector<std::pair<int,double> >& phis,
678 std::map<int,int>&
layers,
bool planOne,
679 std::vector<HcalDDDRecConstants::HcalEtaBin>&
bins)
const {
683 double dphi =
phibin[ieta-1];
685 etabin.
phis.insert(etabin.
phis.end(),phis.begin(),phis.end());
690 int lmin(0), lmax(0);
691 std::map<int,int>::iterator itr=layers.begin();
692 if (!layers.empty()) {
693 int dep = itr->second;
696 unsigned lymx0 = (layers.size() > lymax) ? lymax : layers.size();
699 <<
" lymax " << lymx0 <<
":" << lymax <<
" Depth " << dep <<
":" 702 for (itr = layers.begin(); itr != layers.end(); ++itr,++
l)
703 std::cout <<
" [" << l <<
"] " << itr->first <<
":" << itr->second;
704 std::cout << std::endl <<
" with " << phis.size() <<
" phis";
705 for (
unsigned int l=0; l<phis.size(); ++
l)
709 for (itr = layers.begin(); itr != layers.end(); ++itr) {
710 if (itr->first <= (
int)(lymx0)) {
711 if (itr->second == dep) {
712 if (lmin == 0) lmin = itr->first;
714 }
else if (itr->second > dep) {
715 if (dstart < 0) dstart = dep;
716 int lmax0 = (lmax >= lmin) ? lmax : lmin;
719 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
721 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
734 if (itr->first == (
int)(lymx0)) lmax = lymx0;
739 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
740 etabin0.
phis.insert(etabin0.
phis.end(),phis.begin(),phis.end());
741 bins.emplace_back(etabin0);
744 << etabin0.
layer.size() <<
":" << lmin <<
":" << lmax
745 <<
" phis " << phis.size() << std::endl;
746 for (
unsigned int k=0;
k<etabin0.
layer.size(); ++
k)
748 << etabin0.
layer[
k].second;
753 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
754 if (dstart < 0) dstart = dep;
759 bins.emplace_back(etabin);
762 << etabin.
layer.size() <<
":" << lmin <<
":" << lmax
763 <<
" phis " << etabin.
phis.size() << std::endl;
764 for (
unsigned int k=0;
k<etabin.
layer.size(); ++
k)
766 << etabin.
layer[
k].second;
776 edm::LogError(
"HCalGeom") <<
"HcalDDDRecConstants: sizes of the vectors " 777 <<
" etaGroup (" << nEta <<
") and phiGroup (" 779 throw cms::Exception(
"DDException") <<
"HcalDDDRecConstants: inconsistent array sizes" << nEta <<
":" <<
hpar->
phigroup.size();
786 int ieta(0), ietaHB(0), ietaHE(0), ietaHEM(0);
792 edm::LogError(
"HCalGeom") <<
"Going beyond the array boundary " 794 <<
" of etaTable from SimConstant";
795 throw cms::Exception(
"DDException") <<
"Going beyond the array boundary " 798 <<
" of etaTable from SimConstant";
801 etaSimValu.emplace_back(std::pair<int,int>(ef,ieta));
804 if (ieta <= hpar->
etaMax[0]) ietaHB =
i+1;
805 if (ieta <= hpar->
etaMin[1]) ietaHE =
i+1;
806 if (ieta <= hpar->etaMax[1]) ietaHEM=
i+1;
814 for (
unsigned int k=0;
k<4; ++
k)
nPhiBins.emplace_back(0);
819 phibin.emplace_back(dphi);
820 int nphi = (
int)((CLHEP::twopi + 0.001)/dphi);
834 int nphi = (
int)((CLHEP::twopi + 0.001)/
i);
838 std::cout <<
"Modified eta/deltaphi table for " << nEta <<
" bins" << std::endl;
839 for (
int i=0; i<
nEta; ++
i)
842 <<
" PhiBin[" << i <<
"] = " <<
phibin[i]/CLHEP::deg <<std::endl;
844 for (
unsigned int i=0; i<
phiUnitS.size(); ++
i)
848 for (
unsigned int i=0; i<
nPhiBins.size(); ++
i)
864 for (
int i=0; i<
nEta; ++
i) {
866 int laymax = (imx > 0) ?
layerGroup(i,imx-1) : 0;
868 int laymax0 = (imx > 16) ?
layerGroup(i,16) : laymax;
871 std::cout <<
"HB " << i <<
" " << imx <<
" " << laymax <<
" " 872 << laymax0 << std::endl;
878 std::cout <<
"HE " << i <<
" " << imx <<
" " << laymax << std::endl;
884 for (
int i=0; i<4; ++
i)
892 for (
unsigned int i=0; i<
hpar->
rHB.size(); ++
i) {
893 gconsHB.emplace_back(std::pair<double,double>(
hpar->
rHB[i]/CLHEP::cm,
898 <<
" halves and " <<
gconsHB.size() <<
" layers" << std::endl;
899 for (
unsigned int i=0; i<
gconsHB.size(); ++
i)
905 for (
unsigned int i=0; i<
hpar->
zHE.size(); ++
i) {
906 gconsHE.emplace_back(std::pair<double,double>(
hpar->
zHE[i]/CLHEP::cm,
911 <<
" halves and " <<
gconsHE.size() <<
" layers" << std::endl;
912 for (
unsigned int i=0; i<
gconsHE.size(); ++
i)
929 std::cout <<
"Detector type and maximum depth for all RBX " 931 <<
" and for special RBX " <<
depthMaxSp_.first <<
":" 936 std::vector<int> phis;
940 int phi = (phis[0] > 0) ? phis[0] : -phis[0];
941 int zside = (phis[0] > 0) ? 1 : -1;
944 for (
int eta=etas.first;
eta<=etas.second; ++
eta) {
945 std::map<int,std::pair<int,int> > oldDep;
948 for (
int lay=0; lay<lymax; ++lay) {
951 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lay-1);
956 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lymax-1);
958 std::cout <<
"Eta|Phi|Zside " <<
eta <<
":" << phi <<
":" << zside
959 <<
" with " << oldDep.size() <<
" old Depths" << std::endl;
961 for (
std::map<
int,std::pair<int,int> >::const_iterator itr=oldDep.begin(); itr != oldDep.end(); ++itr,++
kk)
962 std::cout <<
"[" << kk <<
"] " << itr->first <<
" --> " 963 << itr->second.first <<
":" << itr->second.second <<
"\n";
966 for (
int ndepth=depths.first; ndepth<=depths.second; ++ndepth) {
972 std::vector<int>
count(oldDep.size(),0);
975 for (
int lay=layFront; lay<=layBack; ++lay) {
977 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
978 itr != oldDep.end(); ++itr,++
l) {
979 if (lay >= (itr->second).first && lay <= (itr->second).
second) {
984 int odepth(0), maxlay(0);
986 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
987 itr != oldDep.end(); ++itr,++
l) {
988 if (
count[l] > maxlay) {
994 std::cout <<
"New Depth " << ndepth <<
" old Depth " << odepth
995 <<
" max " << maxlay << std::endl;
998 zside = (
k > 0) ? 1 : -1;
999 phi = (
k > 0) ?
k : -
k;
1002 HcalDetId newId(subdet,zside*eta,phi,ndepth);
1003 HcalDetId oldId(subdet,zside*eta,phi,odepth);
1005 std::vector<HcalDetId>
ids;
1006 std::map<HcalDetId,std::vector<HcalDetId>>::iterator itr =
detIdSpR_.find(oldId);
1007 if (itr !=
detIdSpR_.end()) ids = itr->second;
1008 ids.emplace_back(newId);
1015 std::cout <<
"Map for merging new channels to old channel IDs with " 1016 <<
detIdSp_.size() <<
" entries" << std::endl;
1019 std::cout <<
"[" << l <<
"] Special " << itr.first <<
" Standard " 1020 << itr.second << std::endl;
1023 std::cout <<
"Reverse Map for mapping old to new IDs with " 1024 <<
detIdSpR_.size() <<
" entries" << std::endl;
1027 std::cout <<
"[" << l <<
"] Standard " << itr.first <<
" Special";
1028 for (
auto itr1 : itr.second)
1041 if (it.layer == (
unsigned int)(eta + 1)) {
1042 return it.layerGroup.size();
1044 if (it.layer > (
unsigned int)(eta + 1))
break;
1045 k = it.layerGroup.size();
1053 if (it.layer == (
unsigned int)(eta + 1)) {
1054 return it.layerGroup.at(i);
1056 if (it.layer > (
unsigned int)(eta + 1))
break;
1057 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