|
|
|
void | ConstructAlgo (cms::DDParsingContext &ctxt, xml_h e) |
|
void | ConstructLayers (const dd4hep::Volume module, cms::DDParsingContext &ctxt, xml_h e) |
|
| HGCalEEAlgo ()=delete |
|
| HGCalEEAlgo (cms::DDParsingContext &ctxt, xml_h e) |
|
void | PositionSensitive (cms::DDParsingContext &ctxt, xml_h e, const dd4hep::Volume &glog, double rin, double rout, double zpos, int layertype, int layercenter) |
|
Definition at line 27 of file DDHGCalEEAlgo.cc.
◆ HGCalEEAlgo() [1/2]
HGCalEEAlgo::HGCalEEAlgo |
( |
| ) |
|
|
delete |
◆ HGCalEEAlgo() [2/2]
◆ ConstructAlgo()
◆ ConstructLayers()
Definition at line 198 of file DDHGCalEEAlgo.cc.
207 const double tol(0.01);
208 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
214 for (
int ly = laymin; ly < laymax; ++ly) {
224 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
225 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
232 std::vector<double> pgonZ, pgonRin, pgonRout;
235 pgonZ.emplace_back(-hthick);
236 pgonZ.emplace_back(hthick);
237 pgonRin.emplace_back(rinB);
238 pgonRin.emplace_back(rinB);
239 pgonRout.emplace_back(rmax);
240 pgonRout.emplace_back(rmax);
255 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: z " << (
zz - hthick) <<
":" << (
zz + hthick) <<
" with "
256 << pgonZ.size() <<
" palnes";
257 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec)
259 <<
"[" << isec <<
"] z " << pgonZ[isec] <<
" R " << pgonRin[isec] <<
":" << pgonRout[isec];
261 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
263 pgonRout[isec] = pgonRout[isec] *
cosAlpha_ - tol;
267 dd4hep::Solid solid =
269 ns.addSolidNS(ns.prepend(
name), solid);
271 ns.addVolumeNS(glog);
277 <<
" sections and filled with " << matName;
279 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
281 <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
285 ns.addSolidNS(ns.prepend(
name), solid);
287 ns.addVolumeNS(glog);
290 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << solid.name() <<
" Tubs made of " << matName
291 <<
" of dimensions " << rinB <<
", " << routF <<
", " << hthick
292 <<
", 0.0, 360.0 and position " << glog.name() <<
" number " <<
copy <<
":"
303 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << glog.name() <<
" number " <<
copy <<
" positioned in "
304 <<
module.name() <<
" at " <<
r1 <<
" with no rotation";
313 <<
": thickness of all its "
314 <<
"components **** ERROR ****";
317 << thickTot <<
" of the components";
References funct::abs(), cms::DDNamespace::addSolidNS(), cms::DDNamespace::addVolumeNS(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, MillePedeFileConverter_cfg::e, mps_fire::i, cuy::ii, dqmdumpme::k, cms::DDNamespace::material(), g4SimHits_cfi::Material, Skims_PA_cff::name, angle_units::piRadians(), HGCalGeometryMode::Polyhedra, PixelTestBeamValidation_cfi::Position, cms::DDNamespace::prepend(), diffTwoXMLs::r1, HGCalGeomTools::radius(), AlCaHLTBitMon_QueryRunRegistry::string, and geometryCSVtoXML::zz.
◆ PositionSensitive()
void HGCalEEAlgo::PositionSensitive |
( |
cms::DDParsingContext & |
ctxt, |
|
|
xml_h |
e, |
|
|
const dd4hep::Volume & |
glog, |
|
|
double |
rin, |
|
|
double |
rout, |
|
|
double |
zpos, |
|
|
int |
layertype, |
|
|
int |
layercenter |
|
) |
| |
|
inline |
Definition at line 323 of file DDHGCalEEAlgo.cc.
332 static const double sqrt3 =
std::sqrt(3.0);
334 double R = 2.0 *
r / sqrt3;
335 double dy = 0.75 *
R;
336 int N = (
int)(0.5 * rout /
r) + 2;
339 int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0),
nin(0);
340 std::vector<int> ntype(6, 0);
341 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << glog.name() <<
" rout " << rout <<
" N " <<
N
342 <<
" for maximum u, v; r " <<
r <<
" R " <<
R <<
" dy " <<
dy <<
" Shift "
346 for (
int u = -
N; u <=
N; ++u) {
348 for (
int v = -
N;
v <=
N; ++
v) {
352 double xpos = xyoff.first + nc *
r;
353 double ypos = xyoff.second +
nr *
dy;
358 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << glog.name() <<
" R " << rin <<
":" << rout <<
"\n Z "
359 << zpos <<
" LayerType " << layertype <<
" u " << u <<
" v " <<
v <<
" with "
360 <<
corner.first <<
" corners";
365 int copy =
type * 1000000 + iv * 100 + iu;
395 <<
" positioned in " << glog.name() <<
" at " << tran <<
" with no rotation";
403 edm::LogVerbatim(
"HGCalGeom") <<
" DDHGCalEEAlgo: Maximum # of u " << ium <<
":" << iumAll <<
" # of v " << ivm
404 <<
":" << ivmAll <<
" and " <<
nin <<
":" << kount <<
":" << ntot <<
" wafers ("
405 << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
":" << ntype[3] <<
":"
406 << ntype[4] <<
":" << ntype[5] <<
") for " << glog.name() <<
" R " << rin <<
":"
References funct::abs(), filterCSVwithJSON::copy, distTCMET_cfi::corner, PVValHelper::dy, MillePedeFileConverter_cfg::e, createfilelist::int, HGCalParameters::k_CornerSize, N, nin, EgHLTOffHistBins_cfi::nr, PixelTestBeamValidation_cfi::Position, dttmaxenums::R, alignCSCRings::r, HGCalGeomTools::shiftXY(), mathSSE::sqrt(), findQualityFiles::v, cms::DDNamespace::volume(), and HGCalGeomTools::waferCorner().
◆ absorbMode_
int HGCalEEAlgo::absorbMode_ |
◆ alpha_
double HGCalEEAlgo::alpha_ |
◆ choiceType_
int HGCalEEAlgo::choiceType_ |
◆ copies_
std::unordered_set<int> HGCalEEAlgo::copies_ |
◆ copyNumber_
std::vector<int> HGCalEEAlgo::copyNumber_ |
◆ cosAlpha_
double HGCalEEAlgo::cosAlpha_ |
◆ firstLayer_
int HGCalEEAlgo::firstLayer_ |
◆ fracAreaMin_
double HGCalEEAlgo::fracAreaMin_ |
◆ geomTools_
◆ layerCenter_
std::vector<int> HGCalEEAlgo::layerCenter_ |
◆ layers_
std::vector<int> HGCalEEAlgo::layers_ |
◆ layerSense_
std::vector<int> HGCalEEAlgo::layerSense_ |
◆ layerThick_
std::vector<double> HGCalEEAlgo::layerThick_ |
◆ layerType_
std::vector<int> HGCalEEAlgo::layerType_ |
◆ materials_
std::vector<std::string> HGCalEEAlgo::materials_ |
◆ mother_
dd4hep::Volume HGCalEEAlgo::mother_ |
◆ names_
std::vector<std::string> HGCalEEAlgo::names_ |
◆ nCutRadPar_
int HGCalEEAlgo::nCutRadPar_ |
◆ rad100to200_
std::vector<double> HGCalEEAlgo::rad100to200_ |
◆ rad200to300_
std::vector<double> HGCalEEAlgo::rad200to300_ |
◆ rMaxFront_
std::vector<double> HGCalEEAlgo::rMaxFront_ |
◆ rMinFront_
std::vector<double> HGCalEEAlgo::rMinFront_ |
◆ sectors_
int HGCalEEAlgo::sectors_ |
◆ slopeB_
std::vector<double> HGCalEEAlgo::slopeB_ |
◆ slopeT_
std::vector<double> HGCalEEAlgo::slopeT_ |
◆ thick_
std::vector<double> HGCalEEAlgo::thick_ |
◆ wafers_
std::vector<std::string> HGCalEEAlgo::wafers_ |
◆ waferSepar_
double HGCalEEAlgo::waferSepar_ |
◆ waferSize_
double HGCalEEAlgo::waferSize_ |
◆ waferType_
◆ zFrontB_
std::vector<double> HGCalEEAlgo::zFrontB_ |
◆ zFrontT_
std::vector<double> HGCalEEAlgo::zFrontT_ |
◆ zMinBlock_
double HGCalEEAlgo::zMinBlock_ |
◆ zMinRadPar_
double HGCalEEAlgo::zMinRadPar_ |
HGCalGeomTools geomTools_
std::vector< double > thick_
std::vector< int > layerSense_
std::vector< double > zFrontT_
std::vector< double > rad200to300_
constexpr NumType convertRadToDeg(NumType radians)
static constexpr uint32_t k_CornerSize
std::vector< double > layerThick_
std::vector< double > slopeT_
std::vector< double > rMinFront_
Cos< T >::type cos(const T &t)
std::vector< std::string > wafers_
std::vector< double > rad100to200_
std::unordered_set< int > copies_
constexpr long double piRadians(M_PIl)
std::vector< double > zFrontB_
std::vector< int > layerType_
std::vector< int > copyNumber_
std::vector< std::string > materials_
std::vector< std::pair< float, float > >::iterator itr
std::vector< std::string > names_
std::vector< double > slopeB_
void ConstructAlgo(cms::DDParsingContext &ctxt, xml_h e)
std::unique_ptr< HGCalWaferType > waferType_
std::vector< double > rMaxFront_
std::vector< int > layerCenter_
void ConstructLayers(const dd4hep::Volume module, cms::DDParsingContext &ctxt, xml_h e)
Abs< T >::type abs(const T &t)
std::vector< int > layers_
void PositionSensitive(cms::DDParsingContext &ctxt, xml_h e, const dd4hep::Volume &glog, double rin, double rout, double zpos, int layertype, int layercenter)