|
|
|
static constexpr double | tol1_ = 0.01 |
|
static constexpr double | tol2_ = 0.00001 |
|
Definition at line 36 of file DDHGCalSiliconModule.cc.
◆ DDHGCalSiliconModule()
DDHGCalSiliconModule::DDHGCalSiliconModule |
( |
| ) |
|
◆ constructLayers()
Definition at line 258 of file DDHGCalSiliconModule.cc.
264 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
270 for (
int ly = laymin; ly < laymax; ++ly) {
280 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconModule: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", "
281 << routF <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness "
288 std::vector<double> pgonZ, pgonRin, pgonRout;
302 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
305 pgonRout[isec] = rmax;
316 <<
" sections and filled with " << matName;
317 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
318 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
328 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconModule: " << solid.
name() <<
" Tubs made of " << matName
329 <<
" of dimensions " << rinB <<
":" << rins <<
", " << routF <<
":" << routs
330 <<
", " << hthick <<
", 0.0, 360.0 and position " << glog.
name() <<
" number "
351 <<
" positioned in " <<
module.name() <<
" at " <<
r1 <<
" with " <<
rotName
362 <<
": thickness of all its components **** ERROR ****";
365 << thickTot <<
" of the components";
References funct::abs(), angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), first, mps_fire::i, cuy::ii, dqmdumpme::k, callgraph::module, Skims_PA_cff::name, DDBase< N, C >::name(), DDSolidFactory::polyhedra(), DDCompactView::position(), diffTwoXMLs::r1, HGCalGeomTools::radius(), makeMuonMisalignmentScenario::rot, cms::rotation_utils::rotName(), edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, DDSolidFactory::tubs(), HGCalTypes::WaferCenteredRotated, and geometryCSVtoXML::zz.
◆ execute()
◆ initialize()
Definition at line 100 of file DDHGCalSiliconModule.cc.
105 waferTypes_ = static_cast<int>(nArgs[
"WaferTypes"]);
113 firstLayer_ = static_cast<int>(nArgs[
"FirstLayer"]);
114 absorbMode_ = static_cast<int>(nArgs[
"AbsorberMode"]);
126 rotstr_ = sArgs[
"LayerRotation"];
136 <<
" partial modules\nDDHGCalSiliconModule:Full Modules:";
137 unsigned int i1max = static_cast<unsigned int>(
waferFull_.size());
138 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
139 std::ostringstream st1;
141 for (
unsigned int i =
i1;
i <
i2; ++
i)
146 i1max = static_cast<unsigned int>(
waferPart_.size());
147 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
148 std::ostringstream st1;
150 for (
unsigned int i =
i1;
i <
i2; ++
i)
156 names_ = vsArgs[
"VolumeNames"];
157 thick_ = vArgs[
"Thickness"];
161 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
169 for (
unsigned int i = 0;
i <
layers_.size(); ++
i)
186 edm::LogVerbatim(
"HGCalGeom") <<
"First copy number for layer type " <<
i <<
":" <<
ii <<
" with "
200 slopeB_ = vArgs[
"SlopeBottom"];
207 for (
unsigned int i = 0;
i <
slopeB_.size(); ++
i)
210 for (
unsigned int i = 0;
i <
slopeT_.size(); ++
i)
References angle_units::operators::convertRadToDeg(), funct::cos(), dbl_to_int(), mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, cuy::ii, createfilelist::int, dqmdumpme::k, min(), DDCurrentNamespace::ns(), HGCalWaferIndex::waferLayer(), HGCalProperty::waferOrient(), HGCalProperty::waferPartial(), HGCalProperty::waferThick(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
◆ positionSensitive()
Definition at line 371 of file DDHGCalSiliconModule.cc.
372 static const double sqrt3 =
std::sqrt(3.0);
381 double R = 2.0 *
r / sqrt3;
382 double dy = 0.75 *
R;
385 int ium(0), ivm(0), kount(0);
386 std::vector<int> ntype(3, 0);
388 <<
dy <<
" Shift " << xyoff.first <<
":" << xyoff.second <<
" WaferSize "
391 for (
int k = firstWafer;
k < lastWafer; ++
k) {
400 double xpos = xyoff.first + nc *
r;
401 double ypos = xyoff.second +
nr *
dy;
415 <<
":" << orien <<
":" <<
i <<
":" <<
waferPart_.size();
422 <<
" Wafer " << wafer <<
" number " <<
copy <<
" type:part:orien:ind " <<
type <<
":"
424 <<
":" << u <<
":" <<
v;
440 <<
":" <<
type <<
" positioned in " << glog.
ddname() <<
" at " << tran
441 <<
" with no rotation";
445 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconModule: Maximum # of u " << ium <<
" # of v " << ivm <<
" and "
446 << kount <<
" wafers (" << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
") for "
References funct::abs(), filterCSVwithJSON::copy, HGCalTypes::CornerCenteredLambda, HGCalTypes::CornerCenteredY, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dy, first, mps_fire::i, gpuVertexFinder::iv, dqmdumpme::k, phase1PixelTopology::layer, Skims_PA_cff::name, EgHLTOffHistBins_cfi::nr, HGCalTypes::packTypeUV(), DDCompactView::position(), dttmaxenums::R, alignCSCRings::r, idealTransformation::rotation, edm::second(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, findQualityFiles::v, HGCalTypes::WaferCenteredBack, HGCalTypes::WaferFull, HGCalWaferIndex::waferLayer(), HGCalProperty::waferOrient(), HGCalProperty::waferPartial(), HGCalProperty::waferThick(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
◆ absorbMode_
int DDHGCalSiliconModule::absorbMode_ |
|
private |
◆ alpha_
double DDHGCalSiliconModule::alpha_ |
|
private |
◆ copies_
std::unordered_set<int> DDHGCalSiliconModule::copies_ |
|
private |
◆ copyNumber_
std::vector<int> DDHGCalSiliconModule::copyNumber_ |
|
private |
◆ cosAlpha_
double DDHGCalSiliconModule::cosAlpha_ |
|
private |
◆ facingTypes_
int DDHGCalSiliconModule::facingTypes_ |
|
private |
◆ firstLayer_
int DDHGCalSiliconModule::firstLayer_ |
|
private |
◆ geomTools_
◆ layers_
std::vector<int> DDHGCalSiliconModule::layers_ |
|
private |
◆ layerSense_
std::vector<int> DDHGCalSiliconModule::layerSense_ |
|
private |
◆ layerThick_
std::vector<double> DDHGCalSiliconModule::layerThick_ |
|
private |
◆ layerType_
std::vector<int> DDHGCalSiliconModule::layerType_ |
|
private |
◆ layerTypes_
std::vector<int> DDHGCalSiliconModule::layerTypes_ |
|
private |
◆ materials_
std::vector<std::string> DDHGCalSiliconModule::materials_ |
|
private |
◆ names_
std::vector<std::string> DDHGCalSiliconModule::names_ |
|
private |
◆ nameSpace_
std::string DDHGCalSiliconModule::nameSpace_ |
|
private |
◆ orientationTypes_
int DDHGCalSiliconModule::orientationTypes_ |
|
private |
◆ partialTypes_
int DDHGCalSiliconModule::partialTypes_ |
|
private |
◆ rMaxFront_
std::vector<double> DDHGCalSiliconModule::rMaxFront_ |
|
private |
◆ rMinFront_
std::vector<double> DDHGCalSiliconModule::rMinFront_ |
|
private |
◆ rotstr_
std::string DDHGCalSiliconModule::rotstr_ |
|
private |
◆ sectors_
int DDHGCalSiliconModule::sectors_ |
|
private |
◆ sensitiveMode_
int DDHGCalSiliconModule::sensitiveMode_ |
|
private |
◆ slopeB_
std::vector<double> DDHGCalSiliconModule::slopeB_ |
|
private |
◆ slopeT_
std::vector<double> DDHGCalSiliconModule::slopeT_ |
|
private |
◆ thick_
std::vector<double> DDHGCalSiliconModule::thick_ |
|
private |
◆ tol1_
constexpr double DDHGCalSiliconModule::tol1_ = 0.01 |
|
staticconstexprprivate |
◆ tol2_
constexpr double DDHGCalSiliconModule::tol2_ = 0.00001 |
|
staticconstexprprivate |
◆ waferFull_
std::vector<std::string> DDHGCalSiliconModule::waferFull_ |
|
private |
◆ waferIndex_
std::vector<int> DDHGCalSiliconModule::waferIndex_ |
|
private |
◆ waferLayerStart_
std::vector<int> DDHGCalSiliconModule::waferLayerStart_ |
|
private |
◆ waferPart_
std::vector<std::string> DDHGCalSiliconModule::waferPart_ |
|
private |
◆ waferProperty_
std::vector<int> DDHGCalSiliconModule::waferProperty_ |
|
private |
◆ waferSepar_
double DDHGCalSiliconModule::waferSepar_ |
|
private |
◆ waferSize_
double DDHGCalSiliconModule::waferSize_ |
|
private |
◆ waferTypes_
int DDHGCalSiliconModule::waferTypes_ |
|
private |
◆ zFrontB_
std::vector<double> DDHGCalSiliconModule::zFrontB_ |
|
private |
◆ zFrontT_
std::vector<double> DDHGCalSiliconModule::zFrontT_ |
|
private |
◆ zMinBlock_
double DDHGCalSiliconModule::zMinBlock_ |
|
private |
std::unordered_set< int > copies_
std::vector< std::string > materials_
std::vector< double > slopeT_
DDName is used to identify DDD entities uniquely.
std::vector< double > rMaxFront_
std::vector< double > zFrontB_
void positionSensitive(const DDLogicalPart &glog, int layer, DDCompactView &cpv)
constexpr NumType convertRadToDeg(NumType radians)
std::vector< std::string > waferFull_
int32_t waferU(const int32_t index)
int32_t waferOrient(const int32_t property)
U second(std::pair< T, U > const &p)
std::vector< int > copyNumber_
std::vector< double > thick_
Log< level::Warning, false > LogWarning
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
std::vector< int > layerSense_
std::vector< int > waferProperty_
DDMaterial is used to define and access material information.
Cos< T >::type cos(const T &t)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
static DDSolid polyhedra(const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polyhedra (refere to Geant3 or Geant4 documentation)
std::vector< std::string > waferPart_
int32_t waferV(const int32_t index)
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< double > rMinFront_
static int32_t packTypeUV(int type, int u, int v)
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< int > waferLayerStart_
std::vector< int > waferIndex_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
int32_t waferThick(const int32_t property)
static constexpr double tol2_
std::vector< double > zFrontT_
static constexpr double tol1_
Log< level::Error, false > LogError
int32_t waferPartial(const int32_t property)
HGCalGeomTools geomTools_
std::vector< int > layerTypes_
int32_t waferLayer(const int32_t index)
static const std::string & rotName(const T &rot, const cms::DDParsingContext &context)
Log< level::Info, true > LogVerbatim
static std::string & ns()
std::vector< std::string > names_
std::vector< int > layers_
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
std::vector< double > slopeB_
std::vector< double > layerThick_
Abs< T >::type abs(const T &t)
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::vector< int > layerType_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)