6 #include "CLHEP/Units/GlobalPhysicalConstants.h" 7 #include "CLHEP/Units/GlobalSystemOfUnits.h" 19 edm::LogVerbatim(
"HcalGeom") <<
"HcalDDDRecConstants::HcalDDDRecConstants (const HcalParameters* hp) constructor";
31 const bool& extra)
const {
36 if (it->layer == eta + 1)
return it->layerGroup;
37 if (it->layer > eta + 1 )
return last->layerGroup;
40 return last->layerGroup;
45 for (
unsigned int lay=0; lay < layers.size(); ++lay)
46 depths.emplace_back(layers[lay+1]);
52 const unsigned int&
eta)
const {
59 for (
unsigned int lay=0; lay < layers.size(); ++lay)
60 depths.emplace_back(layers[lay+1]);
65 std::vector<HcalDDDRecConstants::HcalEtaBin>
68 std::vector<HcalDDDRecConstants::HcalEtaBin>
bins;
69 unsigned int type = (itype == 0) ? 0 : 1;
71 std::vector<int> phiSp;
74 for (
int iz=0; iz<2; ++iz) {
77 std::vector<std::pair<int,double> > phis =
getPhis(subdet,ieta);
78 std::vector<std::pair<int,double> > phiUse;
80 if (subdet == subdetSp) {
81 for (
auto &
phi : phis) {
82 if (
std::find(phiSp.begin(),phiSp.end(),(zside*
phi.first)) ==
84 phiUse.emplace_back(
phi);
88 phiUse.insert(phiUse.end(),phis.begin(),phis.end());
91 getOneEtaBin(subdet,ieta,zside,phiUse,layers,
false,bins);
94 if (subdetSp == subdet) {
96 std::vector<std::pair<int,double> > phis =
getPhis(subdet,ieta);
97 for (
int iz=0; iz<2; ++iz) {
99 std::vector<std::pair<int,double> > phiUse;
100 for (
int i : phiSp) {
101 for (
auto &
phi : phis) {
102 if (
i == zside*
phi.first) {
103 phiUse.emplace_back(
phi);
108 if (!phiUse.empty()) {
110 getOneEtaBin(subdet,ieta,zside,phiUse,layers,
true,bins);
117 <<
" eta bins for type " <<
type;
118 for (
unsigned int i=0;
i<bins.size(); ++
i) {
120 <<
":" << bins[
i].etaMin <<
":" 121 << bins[
i].etaMax <<
"), Zside = " 122 << bins[
i].zside <<
", phis = (" 123 << bins[
i].phis.size() <<
":" << bins[
i].dphi
124 <<
") and " << bins[
i].layer.size()
125 <<
" depths (start) " << bins[
i].depthStart;
126 for (
unsigned int k=0;
k<bins[
i].layer.size(); ++
k)
128 <<
":" << bins[
i].layer[
k].second;
130 for (
unsigned int k=0;
k<bins[
i].phis.size(); ++
k)
132 <<
":" <<bins[
i].phis[
k].second;
138 std::pair<double,double>
140 int ietaAbs = (ieta > 0) ? ieta : -ieta;
142 if ((subdet == static_cast<int>(
HcalBarrel)) ||
144 (subdet == static_cast<int>(
HcalOuter))) {
146 int kphi = (unit == 2) ? ((iphi-1)/2 + 1) : iphi;
149 phi = foff + (kphi-0.5)*
phibin[ietaAbs-1];
153 int kphi = (unit == 4) ? ((iphi-3)/4 + 1) : ((iphi-1)/2 + 1);
161 edm::LogVerbatim(
"HcalGeom") <<
"getEtaPhi: subdet|ieta|iphi " << subdet <<
"|" 162 << ieta <<
"|" << iphi <<
" eta|phi " <<
eta 165 return std::pair<double,double>(
eta,
phi);
172 int ieta = (keta > 0) ? keta : -keta;
173 int zside= (keta > 0) ? 1 : -1;
175 if ((subdet == static_cast<int>(
HcalOuter)) ||
179 }
else if (subdet == static_cast<int>(
HcalBarrel) ||
187 }
else if (unit == 4) {
206 kphi = (kphi-1)%4 + 1;
207 if (kphi == 2 || kphi == 3) depth =
layerGroup(
eta-1, lay-2);
215 <<
":" << iphi <<
":" << idepth <<
":" << lay
221 std::vector<HcalDDDRecConstants::HFCellParameters>
224 std::vector<HcalDDDRecConstants::HFCellParameters> cells;
227 for (
unsigned int k=0;
k<
nEta; ++
k) {
230 int iphi = (dphi == 4) ? 3 : 1;
235 cells.emplace_back(cell1);
237 cells.emplace_back(cell2);
250 cells.emplace_back(cell1);
253 for (
unsigned int k=0;
k<
nEta; ++
k) {
256 int iphi = (dphi == 4) ? 3 : 1;
261 cells.emplace_back(cell1);
263 cells.emplace_back(cell2);
268 edm::LogVerbatim(
"HcalGeom") <<
"HcalDDDRecConstants returns " << cells.size()
269 <<
" HF cell parameters";
270 for (
unsigned int k=0;
k<cells.size(); ++
k)
272 <<
", " << cells[
k].depth <<
", " 273 << cells[
k].firstPhi <<
", " << cells[
k].stepPhi
274 <<
", " << cells[
k].nPhi <<
", " <<cells[
k].rMin
275 <<
", " << cells[
k].rMax <<
")";
288 edm::LogVerbatim(
"HcalGeom") <<
"getLayerDepth::Input " << ieta <<
" Output " 289 << layers.size() <<
" entries";
290 for (std::map<int,int>::iterator itr=layers.begin(); itr != layers.end();
297 const int& iphi,
const int&
depth)
const{
298 int subdet = (idet == 1) ? 1 : 2;
299 int zside = (ieta > 0) ? 1 : -1;
300 int eta = zside*ieta;
303 if (layBack < 0 && eta <= hpar->
etaMax[1]) {
311 if (layBack < 0 || layBack > laymax) layBack = laymax;
313 edm::LogVerbatim(
"HcalGeom") <<
"getLayerBack::Input " << idet <<
":" << ieta
314 <<
":" << iphi <<
":" << depth <<
" Output " 321 const int& iphi,
const int&
depth)
const {
322 int subdet = (idet == 1) ? 1 : 2;
323 int zside = (ieta > 0) ? 1 : -1;
324 int eta = zside*ieta;
327 if ((layFront < 0) ||
328 ((subdet == static_cast<int>(
HcalEndcap)) && (eta == 16))) {
329 if ((subdet == static_cast<int>(
HcalEndcap)) && (eta == 16)) {
331 }
else if (eta <= hpar->
etaMax[1]) {
334 if ((
int)(
k) >= laymin) {
342 if (layFront < laymin) layFront = laymin;
345 edm::LogVerbatim(
"HcalGeom") <<
"getLayerFront::Input " << idet <<
":" << ieta
346 <<
":" << iphi <<
":" << depth <<
" Output " 353 const int& iphi,
const int&
zside)
const {
355 unsigned int type = (itype == 0) ? 0 : 1;
368 edm::LogVerbatim(
"HcalGeom") <<
"getMaxDepth::Input " << itype <<
":" << ieta
369 <<
":" << iphi <<
":" << zside <<
" Output " 376 const int& iphi,
const int&
zside)
const {
382 }
else if (itype == 3) {
385 unsigned int type = (itype == 0) ? 0 : 1;
387 if (type == 1 && ieta ==
iEtaMin[type])
397 std::vector<std::pair<int,double> >
400 std::vector<std::pair<int,double> > phis;
401 int ietaAbs = (ieta > 0) ? ieta : -ieta;
404 double fioff = ficons.first;
406 int nphi =
int((CLHEP::twopi+0.1*dphi)/dphi);
408 for (
int ifi = 0; ifi < nphi; ++ifi) {
409 double phi =-fioff + (ifi+0.5)*dphi;
411 phis.emplace_back(std::pair<int,double>(iphi,phi));
414 edm::LogVerbatim(
"HcalGeom") <<
"getEtaPhi: subdet|ieta|iphi " << subdet <<
"|" 415 << ieta <<
" with " << phis.size() <<
" phi bins";
416 for (
unsigned int k=0;
k<phis.size(); ++
k)
418 <<
" phi " << phis[
k].second/CLHEP::deg;
430 int zside = (
k > 0) ? 1 : -1;
431 int phi = (
k > 0) ?
k : -
k;
432 phiz.emplace_back(std::pair<int,int>(phi,zside));
437 <<
" with " << phiz.size() <<
" phi/z bins";
438 for (
unsigned int k=0;
k<phiz.size(); ++
k)
446 const int&
depth)
const {
448 return getRZ(subdet, ieta, 1, depth);
452 const int&
depth)
const {
454 double rz = (layf < 0) ? 0.0 :
459 <<
"|" << ieta <<
"|" << iphi <<
"|" << depth
460 <<
" lay|rz " << layf <<
"|" << rz;
473 << layer <<
" rz " << rz;
479 int subdet =
id.subdetId();
480 int ieta =
id.ieta();
481 int iphi =
id.iphi();
482 int depth =
id.depth();
485 double rzf = (layf < 0) ? 0.0 :
490 double rzb = (layb < 0) ? 0.0 :
496 <<
"|" << ieta <<
"|" << iphi <<
"|" << depth
497 <<
" lay|rz (front) " << layf <<
"|" << rzf
498 <<
" lay|rz (back) " << layb <<
"|" << rzb;
500 return std::pair<double,double>(rzf,rzb);
503 std::vector<HcalDDDRecConstants::HcalActiveLength>
506 std::vector<HcalDDDRecConstants::HcalActiveLength> actives;
507 std::vector<HcalDDDRecConstants::HcalEtaBin>
bins =
getEtaBins(type);
509 unsigned int kount(0);
511 for (
auto &
bin : bins) {
514 int stype = (
bin.phis.size() > 4) ? 0 : 1;
517 double eta = 0.5*(
bin.etaMin+
bin.etaMax);
519 double scale = 1.0/((type == 0) ?
sin(theta) :
cos(theta));
523 <<
" depth " << depth <<
" Layers " << layf
524 <<
":" << layl <<
":" <<
bin.layer.size();
525 for (
auto ll :
bin.layer)
529 <<
phi.second/CLHEP::deg;
531 for (
unsigned int i = 0;
i <
bin.layer.size(); ++
i) {
533 int lmin = (type == 1 && ieta ==
iEtaMin[1]) ? layf :
536 for (
int j = lmin; j <= lmax; ++j) {
538 if ((type == 1) && (ieta <= 18)) t =
gconsHE[j].second;
539 if (t > 0) thick +=
t;
543 << lmax <<
" T " << thick;
548 active.
iphis.emplace_back(
phi.first);
549 actives.emplace_back(active);
554 << active.
ieta <<
":" << active.
eta 555 <<
" zside " << active.
zside <<
" depth " 557 <<
" thick " << active.
thick;
564 std::vector<HcalCellType>
568 std::vector<HcalCellType> cells;
570 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
571 std::vector<int> missPhi;
572 for (
const auto& etabin : etabins) {
573 std::vector<HcalCellType>
temp;
574 std::vector<int>
count;
575 std::vector<double> dmin, dmax;
576 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
579 temp.emplace_back(cell);
580 count.emplace_back(0);
581 dmin.emplace_back(0);
582 dmax.emplace_back(0);
584 int ieta = etabin.ieta;
588 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
589 for (
auto & ic : cellsm) {
590 if (ic.depthSegment() >= etabin.layer[il].first &&
591 ic.depthSegment() <= etabin.layer[il].second &&
592 ic.etaBin() == temp[il].etaBin() &&
593 ic.zside() == temp[il].zside()) {
594 if (count[il] == 0) {
596 dmin[il] = ic.depthMin();
597 dmax[il] = ic.depthMax();
600 if (ic.depthMin() < dmin[il])
601 dmin[il] = ic.depthMin();
602 if (ic.depthMax() > dmax[il])
603 dmax[il] = ic.depthMax();
608 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
609 int depth = etabin.depthStart + (
int)(il);
610 temp[il].setEta(ieta,etabin.etaMin,etabin.etaMax);
611 temp[il].setDepth(depth,dmin[il],dmax[il]);
614 temp[il].setPhi(etabin.phis, missPhi, foff, etabin.dphi,
unit);
615 cells.emplace_back(temp[il]);
619 edm::LogVerbatim(
"HcalGeom") <<
"HcalDDDRecConstants: found " << cells.size()
620 <<
" cells for sub-detector type " << isub;
621 for (
unsigned int ic=0; ic<cells.size(); ++ic)
632 int zside = (ieta > 0) ? 1 : -1;
634 if ((eta >= etamin) && (eta <=
iEtaMax[1])) {
635 int depthMax =
getMaxDepth(1, etamin, iphi, zside);
637 if (depth >= depthMin && depth <= depthMax)
return true;
645 int zside = (ieta > 0) ? 1 : -1;
647 if ((eta >= etamin) && (eta <=
iEtaMax[1])) {
648 int depthMax =
getMaxDepth(1, etamin, iphi, zside);
650 depths.reserve(depthMax-depthMin+1);
652 depths.emplace_back(
depth);
661 unsigned int num = 0;
663 for (
auto & cellType : cellTypes) {
664 num += (
unsigned int)(cellType.nPhiBins());
667 edm::LogInfo (
"HCalGeom") <<
"HcalDDDRecConstants:numberOfCells " 668 << cellTypes.size() <<
" " << num
669 <<
" for subdetector " << subdet;
681 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
682 unsigned int ncell(0);
683 for (
auto & etabin : etabins) {
684 ncell += ((etabin.phis.size())*(etabin.layer.size()));
702 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
id);
703 if (itr ==
detIdSp_.end())
return id;
704 else return itr->second;
710 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
712 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second)[0].
depth());
719 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
721 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second).back().depth());
726 std::vector<HcalDetId>&
ids)
const {
729 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
731 ids.emplace_back(
id);
733 for (
auto k : itr->second) {
734 HcalDetId hid(
id.subdet(),
id.ieta(),
id.iphi(),
k.depth());
735 ids.emplace_back(hid);
741 std::vector<HcalDetId>& idsNew)
const {
742 for (
auto k : idsOld) {
743 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
k);
744 if (itr ==
detIdSp_.end()) idsNew.emplace_back(
k);
745 else idsNew.emplace_back(itr->second);
750 std::vector<HcalDetId>&
ids)
const {
752 std::map<HcalDetId,HcalDetId>::const_iterator itr;
754 ids.emplace_back(itr->first);
756 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr;
758 ids.emplace_back(itr->first);
760 return (!ids.empty());
764 std::vector<std::pair<int,double> >& phis,
765 std::map<int,int>&
layers,
bool planOne,
766 std::vector<HcalDDDRecConstants::HcalEtaBin>&
bins)
const {
770 double dphi =
phibin[ieta-1];
772 etabin.
phis.insert(etabin.
phis.end(),phis.begin(),phis.end());
777 int lmin(0), lmax(0);
779 std::map<int,int>::iterator itr=layers.begin();
780 if (!layers.empty()) {
781 int dep = itr->second;
784 unsigned lymx0 = (layers.size() > lymax) ? lymax : layers.size();
787 <<
" zside " << zside <<
" lymax " << lymx0
788 <<
":" << lymax <<
" Depth " << dep <<
":" 791 for (itr = layers.begin(); itr != layers.end(); ++itr,++
l)
793 <<
":" << itr->second;
795 for (
unsigned int l=0; l<phis.size(); ++
l)
797 << phis[
l].second/CLHEP::deg;
799 for (itr = layers.begin(); itr != layers.end(); ++itr) {
800 if (itr->first <= (
int)(lymx0)) {
801 if (itr->second == dep) {
802 if (lmin == 0) lmin = itr->first;
804 }
else if (itr->second > dep) {
805 if (dstart < 0) dstart = dep;
806 int lmax0 = (lmax >= lmin) ? lmax : lmin;
809 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
811 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
824 if (itr->first == (
int)(lymx0)) lmax = lymx0;
829 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
830 etabin0.
phis.insert(etabin0.
phis.end(),phis.begin(),phis.end());
831 bins.emplace_back(etabin0);
834 <<
" layers " << etabin0.
layer.size() <<
":" 835 << lmin <<
":" << lmax <<
" phis " 837 for (
unsigned int k=0;
k<etabin0.
layer.size(); ++
k)
839 << etabin0.
layer[
k].first <<
":" 840 << etabin0.
layer[
k].second;
844 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
845 if (dstart < 0) dstart = dep;
850 bins.emplace_back(etabin);
853 <<
" layers " << etabin.
layer.size() <<
":" 854 << lmin <<
":" << lmax <<
" phis " 855 << etabin.
phis.size();
856 for (
unsigned int k=0;
k<etabin.
layer.size(); ++
k)
858 <<
":" << etabin.
layer[
k].second;
867 edm::LogError(
"HCalGeom") <<
"HcalDDDRecConstants: sizes of the vectors " 868 <<
" etaGroup (" << nEta <<
") and phiGroup (" 870 throw cms::Exception(
"DDException") <<
"HcalDDDRecConstants: inconsistent array sizes" << nEta <<
":" <<
hpar->
phigroup.size();
877 int ieta(0), ietaHB(0), ietaHE(0), ietaHEM(0);
883 edm::LogError(
"HCalGeom") <<
"Going beyond the array boundary " 885 <<
" of etaTable from SimConstant";
886 throw cms::Exception(
"DDException") <<
"Going beyond the array boundary " 889 <<
" of etaTable from SimConstant";
892 etaSimValu.emplace_back(std::pair<int,int>(ef,ieta));
895 if (ieta <= hpar->
etaMax[0]) ietaHB =
i+1;
896 if (ieta <= hpar->
etaMin[1]) ietaHE =
i+1;
897 if (ieta <= hpar->etaMax[1]) ietaHEM=
i+1;
905 for (
unsigned int k=0;
k<4; ++
k)
nPhiBins.emplace_back(0);
910 phibin.emplace_back(dphi);
911 int nphi = (
int)((CLHEP::twopi + 0.001)/dphi);
925 int nphi = (
int)((CLHEP::twopi + 0.001)/
i);
931 for (
int i=0; i<
nEta; ++
i)
936 <<
"] = " <<
phibin[
i]/CLHEP::deg;
938 for (
unsigned int i=0; i<
phiUnitS.size(); ++
i)
941 for (
unsigned int i=0; i<
nPhiBins.size(); ++
i)
954 for (
int i=0; i<
nEta; ++
i) {
956 int laymax = (imx > 0) ?
layerGroup(i,imx-1) : 0;
958 int laymax0 = (imx > 16) ?
layerGroup(i,16) : laymax;
974 for (
int i=0; i<4; ++
i)
983 for (
unsigned int i=0; i<
hpar->
rHB.size(); ++
i) {
984 gconsHB.emplace_back(std::pair<double,double>(
hpar->
rHB[i]/CLHEP::cm,
991 for (
unsigned int i=0; i<
gconsHB.size(); ++
i)
997 for (
unsigned int i=0; i<
hpar->
zHE.size(); ++
i) {
998 gconsHE.emplace_back(std::pair<double,double>(
hpar->
zHE[i]/CLHEP::cm,
1005 for (
unsigned int i=0; i<
gconsHE.size(); ++
i)
1022 edm::LogVerbatim(
"HcalGeom") <<
"Detector type and maximum depth for all RBX " 1029 std::vector<int> phis;
1033 int phi = (phis[0] > 0) ? phis[0] : -phis[0];
1034 int zside = (phis[0] > 0) ? 1 : -1;
1037 for (
int eta=etas.first;
eta<=etas.second; ++
eta) {
1038 std::map<int,std::pair<int,int> > oldDep;
1041 for (
int lay=0; lay<lymax; ++lay) {
1043 if (depth != depc) {
1044 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lay-1);
1049 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lymax-1);
1052 <<
":" << zside <<
" with " << oldDep.size()
1055 for (
std::map<
int,std::pair<int,int> >::const_iterator itr=oldDep.begin(); itr != oldDep.end(); ++itr,++
kk)
1057 << itr->second.first <<
":" 1058 << itr->second.second;
1061 for (
int ndepth=depths.first; ndepth<=depths.second; ++ndepth) {
1067 std::vector<int>
count(oldDep.size(),0);
1070 for (
int lay=layFront; lay<=layBack; ++lay) {
1072 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
1073 itr != oldDep.end(); ++itr,++
l) {
1074 if (lay >= (itr->second).first && lay <= (itr->second).
second) {
1079 int odepth(0), maxlay(0);
1081 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
1082 itr != oldDep.end(); ++itr,++
l) {
1083 if (
count[l] > maxlay) {
1084 odepth = itr->first;
1090 << odepth <<
" max " << maxlay;
1092 for (
int k : phis) {
1093 zside = (
k > 0) ? 1 : -1;
1094 phi = (
k > 0) ?
k : -
k;
1097 HcalDetId newId(subdet,zside*eta,phi,ndepth);
1098 HcalDetId oldId(subdet,zside*eta,phi,odepth);
1100 std::vector<HcalDetId>
ids;
1101 std::map<HcalDetId,std::vector<HcalDetId>>::iterator itr =
detIdSpR_.find(oldId);
1102 if (itr !=
detIdSpR_.end()) ids = itr->second;
1103 ids.emplace_back(newId);
1110 edm::LogVerbatim(
"HcalGeom") <<
"Map for merging new channels to old channel" 1111 <<
" IDs with " <<
detIdSp_.size() <<
" entries";
1115 <<
" Standard " << itr.second;
1118 edm::LogVerbatim(
"HcalGeom") <<
"Reverse Map for mapping old to new IDs with " 1124 for (
auto itr1 : itr.second)
1136 if (it.layer == (
unsigned int)(eta + 1)) {
1137 return it.layerGroup.size();
1139 if (it.layer > (
unsigned int)(eta + 1))
break;
1140 k = it.layerGroup.size();
1148 if (it.layer == (
unsigned int)(eta + 1)) {
1149 return it.layerGroup.at(i);
1151 if (it.layer > (
unsigned int)(eta + 1))
break;
1152 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)
bool mergedDepthList29(int ieta, int iphi, int depth) const
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
int getLayerBack(const int &det, const int &eta, const int &phi, const int &depth) const
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