|
|
|
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 29 of file DDHGCalEEAlgo.cc.
◆ HGCalEEAlgo() [1/2]
HGCalEEAlgo::HGCalEEAlgo |
( |
| ) |
|
|
delete |
◆ HGCalEEAlgo() [2/2]
◆ ConstructAlgo()
◆ ConstructLayers()
Definition at line 208 of file DDHGCalEEAlgo.cc.
209 static constexpr
double tol1 = 0.01 * dd4hep::mm;
210 static constexpr
double tol2 = 0.00001 * dd4hep::mm;
219 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
225 for (
int ly = laymin; ly < laymax; ++ly) {
245 std::vector<double> pgonZ, pgonRin, pgonRout;
248 pgonZ.emplace_back(-hthick);
249 pgonZ.emplace_back(hthick);
250 pgonRin.emplace_back(rinB);
251 pgonRin.emplace_back(rinB);
252 pgonRout.emplace_back(rmax);
253 pgonRout.emplace_back(rmax);
270 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec)
274 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
276 pgonRout[isec] = pgonRout[isec] *
cosAlpha_ - tol1;
281 ns.addSolidNS(ns.prepend(
name), solid);
283 ns.addVolumeNS(glog);
289 <<
" sections and filled with " << matName;
291 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
300 dd4hep::Solid solid = dd4hep::Tube(rins, routs, hthick, 0.0, 2._pi);
301 ns.addSolidNS(ns.prepend(
name), solid);
303 ns.addVolumeNS(glog);
306 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: " << solid.name() <<
" Tubs made of " << matter.name()
309 <<
cms::convert2mm(hthick) <<
", 0.0, 360.0 and position " << glog.name()
321 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEAlgo: " << glog.name() <<
" number " <<
copy <<
" positioned in "
332 <<
": thickness of all its components **** ERROR ****";
335 <<
" does not match with " <<
cms::convert2mm(thickTot) <<
" of the components";
References funct::abs(), cms::DDNamespace::addSolidNS(), cms::DDNamespace::addVolumeNS(), cms::convert2mm(), 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, 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 342 of file DDHGCalEEAlgo.cc.
351 static const double sqrt3 =
std::sqrt(3.0);
353 double R = 2.0 *
r / sqrt3;
354 double dy = 0.75 *
R;
355 int N = (
int)(0.5 * rout /
r) + 2;
358 int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0),
ntot(0),
nin(0);
359 std::vector<int> ntype(6, 0);
367 for (
int u = -
N; u <=
N; ++u) {
368 for (
int v = -
N;
v <=
N; ++
v) {
371 double xpos = xyoff.first + nc *
r;
372 double ypos = xyoff.second +
nr *
dy;
381 << layertype <<
" u " << u <<
" v " <<
v <<
" with " <<
corner.first
413 <<
" DDHGCalEEAlgo: " <<
wafers_[
type] <<
" number " <<
copy <<
" positioned in " << glog.name()
422 edm::LogVerbatim(
"HGCalGeom") <<
" DDHGCalEEAlgo: Maximum # of u " << ium <<
":" << iumAll <<
" # of v " << ivm
423 <<
":" << ivmAll <<
" and " <<
nin <<
":" << kount <<
":" <<
ntot <<
" wafers ("
424 << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
":" << ntype[3] <<
":"
425 << ntype[4] <<
":" << ntype[5] <<
") for " << glog.name() <<
" R "
References funct::abs(), cms::convert2mm(), filterCSVwithJSON::copy, TCMET_cfi::corner, PVValHelper::dy, MillePedeFileConverter_cfg::e, createfilelist::int, gpuVertexFinder::iv, HGCalParameters::k_CornerSize, N, nin, EgHLTOffHistBins_cfi::nr, gpuPixelDoublets::ntot, 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_
std::vector< double > zFrontB_
std::vector< int > layerType_
constexpr NumType convert2mm(NumType length)
std::vector< int > copyNumber_
std::vector< std::string > materials_
Log< level::Error, false > LogError
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)