|
|
|
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 28 of file DDHGCalEEAlgo.cc.
◆ HGCalEEAlgo() [1/2]
HGCalEEAlgo::HGCalEEAlgo |
( |
| ) |
|
|
delete |
◆ HGCalEEAlgo() [2/2]
◆ ConstructAlgo()
◆ ConstructLayers()
Definition at line 200 of file DDHGCalEEAlgo.cc.
201 static constexpr
double tol1 = 0.01;
202 static constexpr
double tol2 = 0.00001;
211 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
217 for (
int ly = laymin; ly < laymax; ++ly) {
227 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
228 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
235 std::vector<double> pgonZ, pgonRin, pgonRout;
238 pgonZ.emplace_back(-hthick);
239 pgonZ.emplace_back(hthick);
240 pgonRin.emplace_back(rinB);
241 pgonRin.emplace_back(rinB);
242 pgonRout.emplace_back(rmax);
243 pgonRout.emplace_back(rmax);
258 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: z " << (
zz - hthick) <<
":" << (
zz + hthick) <<
" with "
259 << pgonZ.size() <<
" palnes";
260 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec)
262 <<
"[" << isec <<
"] z " << pgonZ[isec] <<
" R " << pgonRin[isec] <<
":" << pgonRout[isec];
264 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
266 pgonRout[isec] = pgonRout[isec] *
cosAlpha_ - tol1;
270 dd4hep::Solid solid =
272 ns.addSolidNS(ns.prepend(
name), solid);
274 ns.addVolumeNS(glog);
280 <<
" sections and filled with " << matName;
282 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
284 <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
291 dd4hep::Solid solid = dd4hep::Tube(rins, routs, hthick, 0.0, 2._pi);
292 ns.addSolidNS(ns.prepend(
name), solid);
294 ns.addVolumeNS(glog);
297 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: " << solid.name() <<
" Tubs made of " << matter.name()
298 <<
" of dimensions " << rinB <<
":" << rins <<
", " << routF <<
":" << routs
299 <<
", " << hthick <<
", 0.0, 360.0 and position " << glog.name() <<
" number "
311 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << glog.name() <<
" number " <<
copy <<
" positioned in "
312 << module.name() <<
" at " <<
r1 <<
" with no rotation";
321 << thickTot <<
": thickness of all its components **** ERROR ****";
324 << 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 331 of file DDHGCalEEAlgo.cc.
340 static const double sqrt3 =
std::sqrt(3.0);
342 double R = 2.0 *
r / sqrt3;
343 double dy = 0.75 *
R;
344 int N = (
int)(0.5 * rout /
r) + 2;
347 int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0), ntot(0),
nin(0);
348 std::vector<int> ntype(6, 0);
349 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << glog.name() <<
" rout " << rout <<
" N " <<
N
350 <<
" for maximum u, v; r " <<
r <<
" R " <<
R <<
" dy " <<
dy <<
" Shift "
354 for (
int u = -
N; u <=
N; ++u) {
355 for (
int v = -
N;
v <=
N; ++
v) {
358 double xpos = xyoff.first + nc *
r;
359 double ypos = xyoff.second +
nr *
dy;
366 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << glog.name() <<
" R " << rin <<
":" << rout <<
"\n Z "
367 << zpos <<
" LayerType " << layertype <<
" u " << u <<
" v " <<
v <<
" with "
368 <<
corner.first <<
" corners";
399 <<
" positioned in " << glog.name() <<
" at " << tran <<
" with no rotation";
407 edm::LogVerbatim(
"HGCalGeom") <<
" DDHGCalEEAlgo: Maximum # of u " << ium <<
":" << iumAll <<
" # of v " << ivm
408 <<
":" << ivmAll <<
" and " <<
nin <<
":" << kount <<
":" << ntot <<
" wafers ("
409 << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
":" << ntype[3] <<
":"
410 << 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, HGCalTypes::packTypeUV(), 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_ |
◆ sensitiveMode_
int HGCalEEAlgo::sensitiveMode_ |
◆ 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_
Log< level::Warning, false > LogWarning
std::vector< double > rMinFront_
Cos< T >::type cos(const T &t)
std::vector< std::string > wafers_
std::vector< double > rad100to200_
static int32_t packTypeUV(int type, int u, int v)
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_
Log< level::Error, false > LogError
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_
Log< level::Info, true > LogVerbatim
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)