|
|
Definition at line 27 of file DDHGCalEEFileAlgo.cc.
◆ HGCalEEFileAlgo() [1/2]
HGCalEEFileAlgo::HGCalEEFileAlgo |
( |
| ) |
|
|
inline |
◆ HGCalEEFileAlgo() [2/2]
Definition at line 29 of file DDHGCalEEFileAlgo.cc.
36 static constexpr
double tol1 = 0.01 * dd4hep::mm;
37 static constexpr
double tol2 = 0.00001 * dd4hep::mm;
40 wafers_ =
args.value<std::vector<std::string>>(
"WaferNames");
43 for (
unsigned int i = 0;
i <
wafers_.size(); ++
i)
46 materials_ =
args.value<std::vector<std::string>>(
"MaterialNames");
47 names_ =
args.value<std::vector<std::string>>(
"VolumeNames");
48 thick_ =
args.value<std::vector<double>>(
"Thickness");
52 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
61 for (
unsigned int i = 0;
i <
layers_.size(); ++
i)
63 <<
" with " <<
layers_[
i] <<
" layers";
85 edm::LogVerbatim(
"HGCalGeom") <<
"First copy number for layer type " <<
i <<
":" <<
ii <<
" with "
124 slopeB_ =
args.value<std::vector<double>>(
"SlopeBottom");
125 zFrontB_ =
args.value<std::vector<double>>(
"ZFrontBottom");
127 slopeT_ =
args.value<std::vector<double>>(
"SlopeTop");
128 zFrontT_ =
args.value<std::vector<double>>(
"ZFrontTop");
131 for (
unsigned int i = 0;
i <
slopeB_.size(); ++
i)
134 for (
unsigned int i = 0;
i <
slopeT_.size(); ++
i)
137 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: NameSpace " << ns.name();
147 for (
unsigned int i = 0;
i <
layers_.size(); ++
i) {
153 for (
int ly = laymin; ly < laymax; ++ly) {
163 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: Layer " << ly <<
":" <<
ii <<
" Front "
173 std::vector<double> pgonZ, pgonRin, pgonRout;
187 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
190 pgonRout[isec] = rmax;
192 pgonRout[isec] = pgonRout[isec] *
cosAlpha_ - tol1;
195 ns.addSolidNS(ns.prepend(
name), solid);
197 ns.addVolumeNS(glog);
202 <<
" sections and filled with " << matter.name();
203 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
212 dd4hep::Solid solid = dd4hep::Tube(rins, routs, hthick, 0.0, 2._pi);
213 ns.addSolidNS(ns.prepend(
name), solid);
215 ns.addVolumeNS(glog);
218 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: " << solid.name() <<
" Tubs made of " << matter.name()
221 <<
cms::convert2mm(hthick) <<
", 0.0, 360.0 and position " << glog.name()
228 mother.placeVolume(glog,
copy,
r1);
231 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: " << glog.name() <<
" number " <<
copy <<
" positioned in "
243 <<
": thickness of all its components **** ERROR ****";
246 <<
" does not match with " <<
cms::convert2mm(thickTot) <<
" of the components";
254 for (std::unordered_set<int>::const_iterator itr =
copies_.begin(); itr !=
copies_.end(); ++itr, ++
k) {
258 edm::LogVerbatim(
"HGCalGeom") <<
"<<== End of DDHGCalEEFileAlgo construction...";
References funct::abs(), cms::DDNamespace::addSolidNS(), cms::DDNamespace::addVolumeNS(), writedatasetfile::args, cms::convert2mm(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, funct::cos(), MillePedeFileConverter_cfg::e, mps_fire::i, cuy::ii, dqmdumpme::k, cms::DDNamespace::material(), g4SimHits_cfi::Material, Skims_PA_cff::name, cms::DDNamespace::name(), HGCalGeometryMode::Polyhedra, PixelTestBeamValidation_cfi::Position, cms::DDNamespace::prepend(), diffTwoXMLs::r1, HGCalGeomTools::radius(), AlCaHLTBitMon_QueryRunRegistry::string, cms::DDNamespace::volume(), HGCalWaferIndex::waferLayer(), HGCalProperty::waferOrient(), HGCalProperty::waferPartial(), HGCalProperty::waferThick(), HGCalWaferIndex::waferU(), HGCalWaferIndex::waferV(), and geometryCSVtoXML::zz.
◆ positionSensitive()
void HGCalEEFileAlgo::positionSensitive |
( |
cms::DDParsingContext & |
ctxt, |
|
|
xml_h |
e, |
|
|
const dd4hep::Volume & |
glog, |
|
|
double |
rin, |
|
|
double |
rout, |
|
|
double |
zpos, |
|
|
int |
layertype, |
|
|
int |
layer |
|
) |
| |
|
inline |
Definition at line 262 of file DDHGCalEEFileAlgo.cc.
271 static const double sqrt3 =
std::sqrt(3.0);
274 double R = 2.0 *
r / sqrt3;
275 double dy = 0.75 *
R;
276 int N = (
int)(0.5 * rout /
r) + 2;
279 int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0),
ntot(0),
nin(0);
280 std::vector<int> ntype(6, 0);
288 for (
int u = -
N; u <=
N; ++u) {
289 for (
int v = -
N;
v <=
N; ++
v) {
296 double xpos = xyoff.first + nc *
r;
297 double ypos = xyoff.second +
nr *
dy;
304 << layertype <<
" u " << u <<
" v " <<
v <<
" with " <<
corner.first
339 <<
" DDHGCalEEFileAlgo: " <<
wafers_[
type] <<
" number " <<
copy <<
" type " << layertype <<
":" <<
type
341 <<
", 0) with no rotation";
349 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: Maximum # of u " << ium <<
":" << iumAll <<
" # of v " << ivm
350 <<
":" << ivmAll <<
" and " <<
nin <<
":" << kount <<
":" <<
ntot <<
" wafers ("
351 << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
":" << ntype[3] <<
":"
352 << ntype[4] <<
":" << ntype[5] <<
") for " << glog.name() <<
" R "
References funct::abs(), cms::convert2mm(), filterCSVwithJSON::copy, TCMET_cfi::corner, PVValHelper::dy, MillePedeFileConverter_cfg::e, HGCalWaferType::getType(), createfilelist::int, gpuVertexFinder::iv, HGCalParameters::k_CornerSize, phase1PixelTopology::layer, N, nin, EgHLTOffHistBins_cfi::nr, gpuPixelDoublets::ntot, HGCalTypes::packTypeUV(), PixelTestBeamValidation_cfi::Position, dttmaxenums::R, alignCSCRings::r, mathSSE::sqrt(), findQualityFiles::v, cms::DDNamespace::volume(), HGCalGeomTools::waferCorner(), and HGCalWaferIndex::waferIndex().
◆ absorbMode_
int HGCalEEFileAlgo::absorbMode_ |
◆ alpha_
double HGCalEEFileAlgo::alpha_ |
◆ copies_
std::unordered_set<int> HGCalEEFileAlgo::copies_ |
◆ copyNumber_
std::vector<int> HGCalEEFileAlgo::copyNumber_ |
◆ cosAlpha_
double HGCalEEFileAlgo::cosAlpha_ |
◆ firstLayer_
int HGCalEEFileAlgo::firstLayer_ |
◆ geomTools_
◆ layerCenter_
std::vector<int> HGCalEEFileAlgo::layerCenter_ |
◆ layers_
std::vector<int> HGCalEEFileAlgo::layers_ |
◆ layerSense_
std::vector<int> HGCalEEFileAlgo::layerSense_ |
◆ layerThick_
std::vector<double> HGCalEEFileAlgo::layerThick_ |
◆ layerType_
std::vector<int> HGCalEEFileAlgo::layerType_ |
◆ materials_
std::vector<std::string> HGCalEEFileAlgo::materials_ |
◆ names_
std::vector<std::string> HGCalEEFileAlgo::names_ |
◆ rMaxFront_
std::vector<double> HGCalEEFileAlgo::rMaxFront_ |
◆ rMinFront_
std::vector<double> HGCalEEFileAlgo::rMinFront_ |
◆ sectors_
int HGCalEEFileAlgo::sectors_ |
◆ sensitiveMode_
int HGCalEEFileAlgo::sensitiveMode_ |
◆ slopeB_
std::vector<double> HGCalEEFileAlgo::slopeB_ |
◆ slopeT_
std::vector<double> HGCalEEFileAlgo::slopeT_ |
◆ thick_
std::vector<double> HGCalEEFileAlgo::thick_ |
◆ waferIndex_
std::vector<int> HGCalEEFileAlgo::waferIndex_ |
◆ waferProperty_
std::vector<int> HGCalEEFileAlgo::waferProperty_ |
◆ wafers_
std::vector<std::string> HGCalEEFileAlgo::wafers_ |
◆ waferSepar_
double HGCalEEFileAlgo::waferSepar_ |
◆ waferSize_
double HGCalEEFileAlgo::waferSize_ |
◆ zFrontB_
std::vector<double> HGCalEEFileAlgo::zFrontB_ |
◆ zFrontT_
std::vector<double> HGCalEEFileAlgo::zFrontT_ |
◆ zMinBlock_
double HGCalEEFileAlgo::zMinBlock_ |
HGCalGeomTools geomTools_
std::vector< double > rMaxFront_
std::vector< double > zFrontB_
constexpr NumType convertRadToDeg(NumType radians)
std::vector< int > waferIndex_
static constexpr uint32_t k_CornerSize
int32_t waferU(const int32_t index)
int32_t waferOrient(const int32_t property)
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
std::vector< double > thick_
std::vector< double > layerThick_
std::vector< int > layerCenter_
Log< level::Warning, false > LogWarning
Cos< T >::type cos(const T &t)
std::vector< double > slopeT_
std::vector< int > waferProperty_
void positionSensitive(cms::DDParsingContext &ctxt, xml_h e, const dd4hep::Volume &glog, double rin, double rout, double zpos, int layertype, int layer)
int32_t waferV(const int32_t index)
int getType(double xpos, double ypos, double zpos)
std::vector< double > slopeB_
static int32_t packTypeUV(int type, int u, int v)
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< int > layerType_
std::vector< int > layerSense_
int32_t waferThick(const int32_t property)
constexpr NumType convert2mm(NumType length)
std::vector< std::string > names_
std::unordered_set< int > copies_
Log< level::Error, false > LogError
int32_t waferPartial(const int32_t property)
std::vector< std::string > wafers_
int32_t waferLayer(const int32_t index)
Log< level::Info, true > LogVerbatim
std::vector< int > layers_
std::vector< int > copyNumber_
Abs< T >::type abs(const T &t)
std::vector< double > zFrontT_
std::vector< double > rMinFront_
std::vector< std::string > materials_