6 #include "CLHEP/Units/GlobalPhysicalConstants.h" 7 #include "CLHEP/Units/GlobalSystemOfUnits.h" 18 edm::LogVerbatim(
"HcalGeom") <<
"HcalDDDRecConstants::HcalDDDRecConstants (const HcalParameters* hp) constructor";
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;
44 for (
unsigned int lay=0; lay < layers.size(); ++lay)
45 depths.emplace_back(layers[lay+1]);
51 const unsigned int&
eta)
const {
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());
90 getOneEtaBin(subdet,ieta,zside,phiUse,layers,
false,bins);
93 if (subdetSp == subdet) {
95 std::vector<std::pair<int,double> > phis =
getPhis(subdet,ieta);
96 for (
int iz=0; iz<2; ++iz) {
98 std::vector<std::pair<int,double> > phiUse;
100 for (
auto &
phi : phis) {
101 if (
i == zside*
phi.first) {
102 phiUse.emplace_back(
phi);
107 if (!phiUse.empty()) {
109 getOneEtaBin(subdet,ieta,zside,phiUse,layers,
true,bins);
116 <<
" eta bins for type " <<
type;
117 for (
unsigned int i=0;
i<bins.size(); ++
i) {
119 <<
":" << bins[
i].etaMin <<
":" 120 << bins[
i].etaMax <<
"), Zside = " 121 << bins[
i].zside <<
", phis = (" 122 << bins[
i].phis.size() <<
":" << bins[
i].dphi
123 <<
") and " << bins[
i].layer.size()
124 <<
" depths (start) " << bins[
i].depthStart;
125 for (
unsigned int k=0;
k<bins[
i].layer.size(); ++
k)
127 <<
":" << bins[
i].layer[
k].second;
129 for (
unsigned int k=0;
k<bins[
i].phis.size(); ++
k)
131 <<
":" <<bins[
i].phis[
k].second;
137 std::pair<double,double>
139 int ietaAbs = (ieta > 0) ? ieta : -ieta;
141 if ((subdet == static_cast<int>(
HcalBarrel)) ||
143 (subdet == static_cast<int>(
HcalOuter))) {
145 int kphi = (unit == 2) ? ((iphi-1)/2 + 1) : iphi;
148 phi = foff + (kphi-0.5)*
phibin[ietaAbs-1];
152 int kphi = (unit == 4) ? ((iphi-3)/4 + 1) : ((iphi-1)/2 + 1);
160 edm::LogVerbatim(
"HcalGeom") <<
"getEtaPhi: subdet|ieta|iphi " << subdet <<
"|" 161 << ieta <<
"|" << iphi <<
" eta|phi " <<
eta 164 return std::pair<double,double>(
eta,
phi);
171 int ieta = (keta > 0) ? keta : -keta;
172 int zside= (keta > 0) ? 1 : -1;
174 if ((subdet == static_cast<int>(
HcalOuter)) ||
178 }
else if (subdet == static_cast<int>(
HcalBarrel) ||
186 }
else if (unit == 4) {
205 kphi = (kphi-1)%4 + 1;
206 if (kphi == 2 || kphi == 3) depth =
layerGroup(
eta-1, lay-2);
214 <<
":" << iphi <<
":" << idepth <<
":" << lay
220 std::vector<HcalDDDRecConstants::HFCellParameters>
223 std::vector<HcalDDDRecConstants::HFCellParameters> cells;
226 for (
unsigned int k=0;
k<
nEta; ++
k) {
229 int iphi = (dphi == 4) ? 3 : 1;
234 cells.emplace_back(cell1);
236 cells.emplace_back(cell2);
249 cells.emplace_back(cell1);
252 for (
unsigned int k=0;
k<
nEta; ++
k) {
255 int iphi = (dphi == 4) ? 3 : 1;
260 cells.emplace_back(cell1);
262 cells.emplace_back(cell2);
267 edm::LogVerbatim(
"HcalGeom") <<
"HcalDDDRecConstants returns " << cells.size()
268 <<
" HF cell parameters";
269 for (
unsigned int k=0;
k<cells.size(); ++
k)
271 <<
", " << cells[
k].depth <<
", " 272 << cells[
k].firstPhi <<
", " << cells[
k].stepPhi
273 <<
", " << cells[
k].nPhi <<
", " <<cells[
k].rMin
274 <<
", " << cells[
k].rMax <<
")";
287 edm::LogVerbatim(
"HcalGeom") <<
"getLayerDepth::Input " << ieta <<
" Output " 288 << layers.size() <<
" entries";
289 for (std::map<int,int>::iterator itr=layers.begin(); itr != layers.end();
296 const int& iphi,
const int&
depth)
const{
297 int subdet = (idet == 1) ? 1 : 2;
298 int zside = (ieta > 0) ? 1 : -1;
299 int eta = zside*ieta;
302 if (layBack < 0 && eta <= hpar->
etaMax[1]) {
310 if (layBack < 0 || layBack > laymax) layBack = laymax;
312 edm::LogVerbatim(
"HcalGeom") <<
"getLayerBack::Input " << idet <<
":" << ieta
313 <<
":" << iphi <<
":" << depth <<
" Output " 320 const int& iphi,
const int&
depth)
const {
321 int subdet = (idet == 1) ? 1 : 2;
322 int zside = (ieta > 0) ? 1 : -1;
323 int eta = zside*ieta;
326 if ((layFront < 0) ||
327 ((subdet == static_cast<int>(
HcalEndcap)) && (eta == 16))) {
328 if ((subdet == static_cast<int>(
HcalEndcap)) && (eta == 16)) {
330 }
else if (eta <= hpar->
etaMax[1]) {
333 if ((
int)(
k) >= laymin) {
341 if (layFront < laymin) layFront = laymin;
344 edm::LogVerbatim(
"HcalGeom") <<
"getLayerFront::Input " << idet <<
":" << ieta
345 <<
":" << iphi <<
":" << depth <<
" Output " 352 const int& iphi,
const int&
zside)
const {
354 unsigned int type = (itype == 0) ? 0 : 1;
367 edm::LogVerbatim(
"HcalGeom") <<
"getMaxDepth::Input " << itype <<
":" << ieta
368 <<
":" << iphi <<
":" << zside <<
" Output " 375 const int& iphi,
const int&
zside)
const {
381 }
else if (itype == 3) {
384 unsigned int type = (itype == 0) ? 0 : 1;
386 if (type == 1 && ieta ==
iEtaMin[type])
396 std::vector<std::pair<int,double> >
399 std::vector<std::pair<int,double> > phis;
400 int ietaAbs = (ieta > 0) ? ieta : -ieta;
403 double fioff = ficons.first;
405 int nphi =
int((CLHEP::twopi+0.1*dphi)/dphi);
407 for (
int ifi = 0; ifi < nphi; ++ifi) {
408 double phi =-fioff + (ifi+0.5)*dphi;
410 phis.emplace_back(std::pair<int,double>(iphi,phi));
413 edm::LogVerbatim(
"HcalGeom") <<
"getEtaPhi: subdet|ieta|iphi " << subdet <<
"|" 414 << ieta <<
" with " << phis.size() <<
" phi bins";
415 for (
unsigned int k=0;
k<phis.size(); ++
k)
417 <<
" phi " << phis[
k].second/CLHEP::deg;
429 int zside = (
k > 0) ? 1 : -1;
430 int phi = (
k > 0) ?
k : -
k;
431 phiz.emplace_back(std::pair<int,int>(phi,zside));
436 <<
" with " << phiz.size() <<
" phi/z bins";
437 for (
unsigned int k=0;
k<phiz.size(); ++
k)
445 const int&
depth)
const {
447 return getRZ(subdet, ieta, 1, depth);
451 const int&
depth)
const {
453 double rz = (layf < 0) ? 0.0 :
458 <<
"|" << ieta <<
"|" << iphi <<
"|" << depth
459 <<
" lay|rz " << layf <<
"|" << rz;
472 << layer <<
" rz " << rz;
478 int subdet =
id.subdetId();
479 int ieta =
id.ieta();
480 int iphi =
id.iphi();
481 int depth =
id.depth();
484 double rzf = (layf < 0) ? 0.0 :
489 double rzb = (layb < 0) ? 0.0 :
495 <<
"|" << ieta <<
"|" << iphi <<
"|" << depth
496 <<
" lay|rz (front) " << layf <<
"|" << rzf
497 <<
" lay|rz (back) " << layb <<
"|" << rzb;
499 return std::pair<double,double>(rzf,rzb);
502 std::vector<HcalDDDRecConstants::HcalActiveLength>
505 std::vector<HcalDDDRecConstants::HcalActiveLength> actives;
506 std::vector<HcalDDDRecConstants::HcalEtaBin>
bins =
getEtaBins(type);
508 unsigned int kount(0);
510 for (
auto &
bin : bins) {
513 int stype = (
bin.phis.size() > 4) ? 0 : 1;
516 double eta = 0.5*(
bin.etaMin+
bin.etaMax);
518 double scale = 1.0/((type == 0) ?
sin(theta) :
cos(theta));
522 <<
" depth " << depth <<
" Layers " << layf
523 <<
":" << layl <<
":" <<
bin.layer.size();
524 for (
auto ll :
bin.layer)
528 <<
phi.second/CLHEP::deg;
530 for (
unsigned int i = 0;
i <
bin.layer.size(); ++
i) {
532 int lmin = (type == 1 && ieta ==
iEtaMin[1]) ? layf :
535 for (
int j = lmin; j <= lmax; ++j) {
537 if ((type == 1) && (ieta <= 18)) t =
gconsHE[j].second;
538 if (t > 0) thick +=
t;
542 << lmax <<
" T " << thick;
547 active.
iphis.emplace_back(
phi.first);
548 actives.emplace_back(active);
553 << active.
ieta <<
":" << active.
eta 554 <<
" zside " << active.
zside <<
" depth " 556 <<
" thick " << active.
thick;
563 std::vector<HcalCellType>
567 std::vector<HcalCellType> cells;
569 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
570 std::vector<int> missPhi;
571 for (
const auto& etabin : etabins) {
572 std::vector<HcalCellType>
temp;
573 std::vector<int>
count;
574 std::vector<double> dmin, dmax;
575 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
578 temp.emplace_back(cell);
579 count.emplace_back(0);
580 dmin.emplace_back(0);
581 dmax.emplace_back(0);
583 int ieta = etabin.ieta;
587 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
588 for (
auto & ic : cellsm) {
589 if (ic.depthSegment() >= etabin.layer[il].first &&
590 ic.depthSegment() <= etabin.layer[il].second &&
591 ic.etaBin() == temp[il].etaBin() &&
592 ic.zside() == temp[il].zside()) {
593 if (count[il] == 0) {
595 dmin[il] = ic.depthMin();
596 dmax[il] = ic.depthMax();
599 if (ic.depthMin() < dmin[il])
600 dmin[il] = ic.depthMin();
601 if (ic.depthMax() > dmax[il])
602 dmax[il] = ic.depthMax();
607 for (
unsigned int il=0; il<etabin.layer.size(); ++il) {
608 int depth = etabin.depthStart + (
int)(il);
609 temp[il].setEta(ieta,etabin.etaMin,etabin.etaMax);
610 temp[il].setDepth(depth,dmin[il],dmax[il]);
613 temp[il].setPhi(etabin.phis, missPhi, foff, etabin.dphi,
unit);
614 cells.emplace_back(temp[il]);
618 edm::LogVerbatim(
"HcalGeom") <<
"HcalDDDRecConstants: found " << cells.size()
619 <<
" cells for sub-detector type " << isub;
620 for (
unsigned int ic=0; ic<cells.size(); ++ic)
631 int zside = (ieta > 0) ? 1 : -1;
633 if ((eta >= etamin) && (eta <=
iEtaMax[1])) {
634 int depthMax =
getMaxDepth(1, etamin, iphi, zside);
636 if (depth >= depthMin && depth <= depthMax)
return true;
644 int zside = (ieta > 0) ? 1 : -1;
646 if ((eta >= etamin) && (eta <=
iEtaMax[1])) {
647 int depthMax =
getMaxDepth(1, etamin, iphi, zside);
649 depths.reserve(depthMax-depthMin+1);
651 depths.emplace_back(
depth);
660 unsigned int num = 0;
662 for (
auto & cellType : cellTypes) {
663 num += (
unsigned int)(cellType.nPhiBins());
666 edm::LogInfo (
"HCalGeom") <<
"HcalDDDRecConstants:numberOfCells " 667 << cellTypes.size() <<
" " << num
668 <<
" for subdetector " << subdet;
680 std::vector<HcalDDDRecConstants::HcalEtaBin> etabins =
getEtaBins(isub);
681 unsigned int ncell(0);
682 for (
auto & etabin : etabins) {
683 ncell += ((etabin.phis.size())*(etabin.layer.size()));
701 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
id);
702 if (itr ==
detIdSp_.end())
return id;
703 else return itr->second;
709 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
711 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second)[0].
depth());
718 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
720 hid =
HcalDetId(
id.subdet(),
id.ieta(),
id.iphi(),(itr->second).back().depth());
725 std::vector<HcalDetId>&
ids)
const {
728 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr =
detIdSpR_.find(
id);
730 ids.emplace_back(
id);
732 for (
auto k : itr->second) {
733 HcalDetId hid(
id.subdet(),
id.ieta(),
id.iphi(),
k.depth());
734 ids.emplace_back(hid);
740 std::vector<HcalDetId>& idsNew)
const {
741 for (
auto k : idsOld) {
742 std::map<HcalDetId,HcalDetId>::const_iterator itr =
detIdSp_.find(
k);
743 if (itr ==
detIdSp_.end()) idsNew.emplace_back(
k);
744 else idsNew.emplace_back(itr->second);
749 std::vector<HcalDetId>&
ids)
const {
751 std::map<HcalDetId,HcalDetId>::const_iterator itr;
753 ids.emplace_back(itr->first);
755 std::map<HcalDetId,std::vector<HcalDetId>>::const_iterator itr;
757 ids.emplace_back(itr->first);
759 return (!ids.empty());
763 std::vector<std::pair<int,double> >& phis,
764 std::map<int,int>&
layers,
bool planOne,
765 std::vector<HcalDDDRecConstants::HcalEtaBin>&
bins)
const {
769 double dphi =
phibin[ieta-1];
771 etabin.
phis.insert(etabin.
phis.end(),phis.begin(),phis.end());
776 int lmin(0), lmax(0);
778 std::map<int,int>::iterator itr=layers.begin();
779 if (!layers.empty()) {
780 int dep = itr->second;
783 unsigned lymx0 = (layers.size() > lymax) ? lymax : layers.size();
786 <<
" zside " << zside <<
" lymax " << lymx0
787 <<
":" << lymax <<
" Depth " << dep <<
":" 790 for (itr = layers.begin(); itr != layers.end(); ++itr,++
l)
792 <<
":" << itr->second;
794 for (
unsigned int l=0; l<phis.size(); ++
l)
796 << phis[
l].second/CLHEP::deg;
798 for (itr = layers.begin(); itr != layers.end(); ++itr) {
799 if (itr->first <= (
int)(lymx0)) {
800 if (itr->second == dep) {
801 if (lmin == 0) lmin = itr->first;
803 }
else if (itr->second > dep) {
804 if (dstart < 0) dstart = dep;
805 int lmax0 = (lmax >= lmin) ? lmax : lmin;
808 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
810 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax0));
823 if (itr->first == (
int)(lymx0)) lmax = lymx0;
828 etabin0.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
829 etabin0.
phis.insert(etabin0.
phis.end(),phis.begin(),phis.end());
830 bins.emplace_back(etabin0);
833 <<
" layers " << etabin0.
layer.size() <<
":" 834 << lmin <<
":" << lmax <<
" phis " 836 for (
unsigned int k=0;
k<etabin0.
layer.size(); ++
k)
838 << etabin0.
layer[
k].first <<
":" 839 << etabin0.
layer[
k].second;
843 etabin.
layer.emplace_back(std::pair<int,int>(lmin,lmax));
844 if (dstart < 0) dstart = dep;
849 bins.emplace_back(etabin);
852 <<
" layers " << etabin.
layer.size() <<
":" 853 << lmin <<
":" << lmax <<
" phis " 854 << etabin.
phis.size();
855 for (
unsigned int k=0;
k<etabin.
layer.size(); ++
k)
857 <<
":" << etabin.
layer[
k].second;
866 edm::LogError(
"HCalGeom") <<
"HcalDDDRecConstants: sizes of the vectors " 867 <<
" etaGroup (" << nEta <<
") and phiGroup (" 869 throw cms::Exception(
"DDException") <<
"HcalDDDRecConstants: inconsistent array sizes" << nEta <<
":" <<
hpar->
phigroup.size();
876 int ieta(0), ietaHB(0), ietaHE(0), ietaHEM(0);
882 edm::LogError(
"HCalGeom") <<
"Going beyond the array boundary " 884 <<
" of etaTable from SimConstant";
885 throw cms::Exception(
"DDException") <<
"Going beyond the array boundary " 888 <<
" of etaTable from SimConstant";
891 etaSimValu.emplace_back(std::pair<int,int>(ef,ieta));
894 if (ieta <= hpar->
etaMax[0]) ietaHB =
i+1;
895 if (ieta <= hpar->
etaMin[1]) ietaHE =
i+1;
896 if (ieta <= hpar->etaMax[1]) ietaHEM=
i+1;
904 for (
unsigned int k=0;
k<4; ++
k)
nPhiBins.emplace_back(0);
909 phibin.emplace_back(dphi);
910 int nphi = (
int)((CLHEP::twopi + 0.001)/dphi);
924 int nphi = (
int)((CLHEP::twopi + 0.001)/
i);
930 for (
int i=0; i<
nEta; ++
i)
935 <<
"] = " <<
phibin[
i]/CLHEP::deg;
937 for (
unsigned int i=0; i<
phiUnitS.size(); ++
i)
940 for (
unsigned int i=0; i<
nPhiBins.size(); ++
i)
953 for (
int i=0; i<
nEta; ++
i) {
955 int laymax = (imx > 0) ?
layerGroup(i,imx-1) : 0;
957 int laymax0 = (imx > 16) ?
layerGroup(i,16) : laymax;
973 for (
int i=0; i<4; ++
i)
982 for (
unsigned int i=0; i<
hpar->
rHB.size(); ++
i) {
983 gconsHB.emplace_back(std::pair<double,double>(
hpar->
rHB[i]/CLHEP::cm,
990 for (
unsigned int i=0; i<
gconsHB.size(); ++
i)
996 for (
unsigned int i=0; i<
hpar->
zHE.size(); ++
i) {
997 gconsHE.emplace_back(std::pair<double,double>(
hpar->
zHE[i]/CLHEP::cm,
1004 for (
unsigned int i=0; i<
gconsHE.size(); ++
i)
1021 edm::LogVerbatim(
"HcalGeom") <<
"Detector type and maximum depth for all RBX " 1028 std::vector<int> phis;
1032 int phi = (phis[0] > 0) ? phis[0] : -phis[0];
1033 int zside = (phis[0] > 0) ? 1 : -1;
1036 for (
int eta=etas.first;
eta<=etas.second; ++
eta) {
1037 std::map<int,std::pair<int,int> > oldDep;
1040 for (
int lay=0; lay<lymax; ++lay) {
1042 if (depth != depc) {
1043 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lay-1);
1048 if (depth != 0) oldDep[
depth] = std::pair<int,int>(lmin,lymax-1);
1051 <<
":" << zside <<
" with " << oldDep.size()
1054 for (
std::map<
int,std::pair<int,int> >::const_iterator itr=oldDep.begin(); itr != oldDep.end(); ++itr,++
kk)
1056 << itr->second.first <<
":" 1057 << itr->second.second;
1060 for (
int ndepth=depths.first; ndepth<=depths.second; ++ndepth) {
1066 std::vector<int>
count(oldDep.size(),0);
1069 for (
int lay=layFront; lay<=layBack; ++lay) {
1071 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
1072 itr != oldDep.end(); ++itr,++
l) {
1073 if (lay >= (itr->second).first && lay <= (itr->second).
second) {
1078 int odepth(0), maxlay(0);
1080 for (
std::map<
int,std::pair<int,int> >::iterator itr=oldDep.begin();
1081 itr != oldDep.end(); ++itr,++
l) {
1082 if (
count[l] > maxlay) {
1083 odepth = itr->first;
1089 << odepth <<
" max " << maxlay;
1091 for (
int k : phis) {
1092 zside = (
k > 0) ? 1 : -1;
1093 phi = (
k > 0) ?
k : -
k;
1096 HcalDetId newId(subdet,zside*eta,phi,ndepth);
1097 HcalDetId oldId(subdet,zside*eta,phi,odepth);
1099 std::vector<HcalDetId>
ids;
1100 std::map<HcalDetId,std::vector<HcalDetId>>::iterator itr =
detIdSpR_.find(oldId);
1101 if (itr !=
detIdSpR_.end()) ids = itr->second;
1102 ids.emplace_back(newId);
1109 edm::LogVerbatim(
"HcalGeom") <<
"Map for merging new channels to old channel" 1110 <<
" IDs with " <<
detIdSp_.size() <<
" entries";
1114 <<
" Standard " << itr.second;
1117 edm::LogVerbatim(
"HcalGeom") <<
"Reverse Map for mapping old to new IDs with " 1123 for (
auto itr1 : itr.second)
1135 if (it.layer == (
unsigned int)(eta + 1)) {
1136 return it.layerGroup.size();
1138 if (it.layer > (
unsigned int)(eta + 1))
break;
1139 k = it.layerGroup.size();
1147 if (it.layer == (
unsigned int)(eta + 1)) {
1148 return it.layerGroup.at(i);
1150 if (it.layer > (
unsigned int)(eta + 1))
break;
1151 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