|
|
|
static constexpr double | tol1_ = 0.01 |
|
static constexpr double | tol2_ = 0.00001 |
|
Definition at line 35 of file DDHGCalEEFileAlgo.cc.
◆ DDHGCalEEFileAlgo()
DDHGCalEEFileAlgo::DDHGCalEEFileAlgo |
( |
| ) |
|
◆ constructLayers()
Definition at line 222 of file DDHGCalEEFileAlgo.cc.
225 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
231 for (
int ly = laymin; ly < laymax; ++ly) {
241 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", "
242 << routF <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness "
249 std::vector<double> pgonZ, pgonRin, pgonRout;
263 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
266 pgonRout[isec] = rmax;
277 <<
" sections and filled with " << matName;
278 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
279 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
289 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: " << solid.
name() <<
" Tubs made of " << matName
290 <<
" of dimensions " << rinB <<
":" << rins <<
", " << routF <<
":" << routs
291 <<
", " << hthick <<
", 0.0, 360.0 and position " << glog.
name() <<
" number "
302 << module.
name() <<
" at " <<
r1 <<
" with no rotation";
312 <<
": thickness of all its components **** ERROR ****";
315 << 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, Skims_PA_cff::name, DDBase< N, C >::name(), DDSolidFactory::polyhedra(), DDCompactView::position(), diffTwoXMLs::r1, HGCalGeomTools::radius(), makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, DDSolidFactory::tubs(), and geometryCSVtoXML::zz.
◆ execute()
◆ initialize()
Definition at line 93 of file DDHGCalEEFileAlgo.cc.
101 for (
unsigned int i = 0;
i <
wafers_.size(); ++
i)
105 names_ = vsArgs[
"VolumeNames"];
106 thick_ = vArgs[
"Thickness"];
110 for (
unsigned int i = 0;
i <
names_.size(); ++
i)
118 for (
unsigned int i = 0;
i <
layers_.size(); ++
i)
142 edm::LogVerbatim(
"HGCalGeom") <<
"First copy number for layer type " <<
i <<
":" <<
ii <<
" with "
181 slopeB_ = vArgs[
"SlopeBottom"];
188 for (
unsigned int i = 0;
i <
slopeB_.size(); ++
i)
191 for (
unsigned int i = 0;
i <
slopeT_.size(); ++
i)
References angle_units::operators::convertRadToDeg(), funct::cos(), dbl_to_int(), mps_fire::i, cuy::ii, createfilelist::int, dqmdumpme::k, DDCurrentNamespace::ns(), HGCalWaferIndex::waferLayer(), HGCalProperty::waferOrient(), HGCalProperty::waferPartial(), HGCalProperty::waferThick(), HGCalWaferIndex::waferU(), and HGCalWaferIndex::waferV().
◆ positionSensitive()
void DDHGCalEEFileAlgo::positionSensitive |
( |
const DDLogicalPart & |
glog, |
|
|
double |
rin, |
|
|
double |
rout, |
|
|
double |
zpos, |
|
|
int |
layertype, |
|
|
int |
layer, |
|
|
DDCompactView & |
cpv |
|
) |
| |
|
protected |
Definition at line 321 of file DDHGCalEEFileAlgo.cc.
323 static const double sqrt3 =
std::sqrt(3.0);
326 double R = 2.0 *
r / sqrt3;
327 double dy = 0.75 *
R;
328 int N = (
int)(0.5 * rout /
r) + 2;
331 int ium(0), ivm(0), iumAll(0), ivmAll(0), kount(0),
ntot(0),
nin(0);
332 std::vector<int> ntype(6, 0);
333 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: " << glog.
ddname() <<
" rin:rout " << rin <<
":" << rout
334 <<
" zpos " << zpos <<
" N " <<
N <<
" for maximum u, v; r " <<
r <<
" R " <<
R
335 <<
" dy " <<
dy <<
" Shift " << xyoff.first <<
":" << xyoff.second <<
" WaferSize "
338 for (
int u = -
N; u <=
N; ++u) {
339 for (
int v = -
N;
v <=
N; ++
v) {
346 double xpos = xyoff.first + nc *
r;
347 double ypos = xyoff.second +
nr *
dy;
353 <<
"\n Z " << zpos <<
" LayerType " << layertype <<
" u " << u <<
" v " <<
v
354 <<
" with " <<
corner.first <<
" corners";
390 <<
":" <<
type <<
" positioned in " << glog.
ddname() <<
" at " << tran
391 <<
" with no rotation";
398 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalEEFileAlgo: Maximum # of u " << ium <<
":" << iumAll <<
" # of v " << ivm
399 <<
":" << ivmAll <<
" and " <<
nin <<
":" << kount <<
":" <<
ntot <<
" wafers ("
400 << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
":" << ntype[3] <<
":" << ntype[4]
401 <<
":" << ntype[5] <<
") for " << glog.
ddname() <<
" R " << rin <<
":" << rout;
References funct::abs(), filterCSVwithJSON::copy, TCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dy, first, HGCalWaferType::getType(), createfilelist::int, gpuVertexFinder::iv, HGCalParameters::k_CornerSize, phase1PixelTopology::layer, N, Skims_PA_cff::name, nin, EgHLTOffHistBins_cfi::nr, gpuPixelDoublets::ntot, HGCalTypes::packTypeUV(), DDCompactView::position(), dttmaxenums::R, alignCSCRings::r, idealTransformation::rotation, edm::second(), mathSSE::sqrt(), findQualityFiles::v, HGCalGeomTools::waferCorner(), and HGCalWaferIndex::waferIndex().
◆ absorbMode_
int DDHGCalEEFileAlgo::absorbMode_ |
|
private |
◆ alpha_
double DDHGCalEEFileAlgo::alpha_ |
|
private |
◆ copies_
std::unordered_set<int> DDHGCalEEFileAlgo::copies_ |
|
private |
◆ copyNumber_
std::vector<int> DDHGCalEEFileAlgo::copyNumber_ |
|
private |
◆ cosAlpha_
double DDHGCalEEFileAlgo::cosAlpha_ |
|
private |
◆ firstLayer_
int DDHGCalEEFileAlgo::firstLayer_ |
|
private |
◆ geomTools_
◆ layerCenter_
std::vector<int> DDHGCalEEFileAlgo::layerCenter_ |
|
private |
◆ layers_
std::vector<int> DDHGCalEEFileAlgo::layers_ |
|
private |
◆ layerSense_
std::vector<int> DDHGCalEEFileAlgo::layerSense_ |
|
private |
◆ layerThick_
std::vector<double> DDHGCalEEFileAlgo::layerThick_ |
|
private |
◆ layerType_
std::vector<int> DDHGCalEEFileAlgo::layerType_ |
|
private |
◆ materials_
std::vector<std::string> DDHGCalEEFileAlgo::materials_ |
|
private |
◆ names_
std::vector<std::string> DDHGCalEEFileAlgo::names_ |
|
private |
◆ nameSpace_
std::string DDHGCalEEFileAlgo::nameSpace_ |
|
private |
◆ rMaxFront_
std::vector<double> DDHGCalEEFileAlgo::rMaxFront_ |
|
private |
◆ rMinFront_
std::vector<double> DDHGCalEEFileAlgo::rMinFront_ |
|
private |
◆ sectors_
int DDHGCalEEFileAlgo::sectors_ |
|
private |
◆ sensitiveMode_
int DDHGCalEEFileAlgo::sensitiveMode_ |
|
private |
◆ slopeB_
std::vector<double> DDHGCalEEFileAlgo::slopeB_ |
|
private |
◆ slopeT_
std::vector<double> DDHGCalEEFileAlgo::slopeT_ |
|
private |
◆ thick_
std::vector<double> DDHGCalEEFileAlgo::thick_ |
|
private |
◆ tol1_
constexpr double DDHGCalEEFileAlgo::tol1_ = 0.01 |
|
staticconstexprprivate |
◆ tol2_
constexpr double DDHGCalEEFileAlgo::tol2_ = 0.00001 |
|
staticconstexprprivate |
◆ waferIndex_
std::vector<int> DDHGCalEEFileAlgo::waferIndex_ |
|
private |
◆ waferProperty_
std::vector<int> DDHGCalEEFileAlgo::waferProperty_ |
|
private |
◆ wafers_
std::vector<std::string> DDHGCalEEFileAlgo::wafers_ |
|
private |
◆ waferSepar_
double DDHGCalEEFileAlgo::waferSepar_ |
|
private |
◆ waferSize_
double DDHGCalEEFileAlgo::waferSize_ |
|
private |
◆ zFrontB_
std::vector<double> DDHGCalEEFileAlgo::zFrontB_ |
|
private |
◆ zFrontT_
std::vector<double> DDHGCalEEFileAlgo::zFrontT_ |
|
private |
◆ zMinBlock_
double DDHGCalEEFileAlgo::zMinBlock_ |
|
private |
std::vector< double > zFrontT_
std::vector< int > layerType_
std::vector< int > waferProperty_
DDName is used to identify DDD entities uniquely.
std::vector< std::string > wafers_
constexpr NumType convertRadToDeg(NumType radians)
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
static constexpr uint32_t k_CornerSize
std::vector< double > zFrontB_
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)
U second(std::pair< T, U > const &p)
std::vector< int > layerSense_
std::unordered_set< int > copies_
Log< level::Warning, false > LogWarning
std::vector< int > waferIndex_
std::vector< std::string > materials_
DDMaterial is used to define and access material information.
std::vector< int > copyNumber_
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)
HGCalGeomTools geomTools_
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< int > layerCenter_
int getType(double xpos, double ypos, double zpos)
std::vector< double > slopeT_
static int32_t packTypeUV(int type, int u, int v)
constexpr std::array< uint8_t, layerIndexSize > layer
static constexpr double tol2_
std::vector< double > rMinFront_
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, int layer, DDCompactView &cpv)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
static constexpr double tol1_
int32_t waferThick(const int32_t property)
std::vector< std::string > names_
std::vector< double > thick_
Log< level::Error, false > LogError
std::vector< double > rMaxFront_
int32_t waferPartial(const int32_t property)
int32_t waferLayer(const int32_t index)
std::vector< int > layers_
std::vector< double > slopeB_
Log< level::Info, true > LogVerbatim
static std::string & ns()
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
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::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)