|
|
|
static constexpr double | tol_ = 0.00001 |
|
Definition at line 32 of file DDHGCalModuleAlgo.cc.
◆ DDHGCalModuleAlgo()
DDHGCalModuleAlgo::DDHGCalModuleAlgo |
( |
| ) |
|
◆ constructLayers()
Definition at line 163 of file DDHGCalModuleAlgo.cc.
169 const double tol(0.01);
170 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
172 double routF =
rMax(zi);
176 for (
int ly = laymin; ly < laymax; ++ly) {
185 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModuleAlgo: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", "
186 << routF <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness "
194 double rmax = routF *
cos(
alpha) - tol;
195 std::vector<double> pgonZ, pgonRin, pgonRout;
196 pgonZ.emplace_back(-0.5 *
thick_[
ii]);
197 pgonZ.emplace_back(0.5 *
thick_[
ii]);
198 pgonRin.emplace_back(rinB);
199 pgonRin.emplace_back(rinB);
200 pgonRout.emplace_back(rmax);
201 pgonRout.emplace_back(rmax);
209 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
210 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
216 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModuleAlgo: " << solid.
name() <<
" Tubs made of " << matName
217 <<
" of dimensions " << rinB <<
", " << routF <<
", " << 0.5 *
thick_[
ii]
228 <<
module.name() <<
" at " <<
r1 <<
" with " <<
rot;
237 << thickTot <<
" of all its components **** ERROR ****\n";
240 << thickTot <<
" of the components\n";
References alpha, angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, funct::cos(), 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, photonAnalyzer_cfi::rMax, makeMuonMisalignmentScenario::rot, edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, DDSolidFactory::tubs(), and geometryCSVtoXML::zz.
◆ execute()
◆ initialize()
◆ positionSensitive()
Definition at line 265 of file DDHGCalModuleAlgo.cc.
267 double dx = 0.5 * ww;
268 double dy = 3.0 *
dx *
tan(30._deg);
269 double rr = 2.0 *
dx *
tan(30._deg);
270 int ncol = (
int)(2.0 * rout / ww) + 1;
271 int nrow = (
int)(rout / (ww *
tan(30._deg))) + 1;
272 int incm(0), inrm(0), kount(0);
274 edm::LogVerbatim(
"HGCalGeom") << glog.
ddname() <<
" rout " << rout <<
" Row " << nrow <<
" Column " << ncol;
276 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
277 int inr = (
nr >= 0) ?
nr : -
nr;
278 for (
int nc = -ncol; nc <= ncol; ++nc) {
279 int inc = (nc >= 0) ? nc : -nc;
280 if (inr % 2 == inc % 2) {
281 double xpos = nc *
dx;
282 double ypos =
nr *
dy;
285 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
308 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModuleAlgo: # of columns " << incm <<
" # of rows " << inrm <<
" and "
309 << kount <<
" wafers for " << glog.
ddname();
References filterCSVwithJSON::copy, TCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dx, PVValHelper::dy, createfilelist::int, HGCalParameters::k_CornerSize, Skims_PA_cff::name, EgHLTOffHistBins_cfi::nr, HGCalTypes::packTypeUV(), DDCompactView::position(), idealTransformation::rotation, findQualityFiles::rr, mathSSE::sqrt(), funct::tan(), and HGCalGeomTools::waferCorner().
◆ rMax()
double DDHGCalModuleAlgo::rMax |
( |
double |
z | ) |
|
|
protected |
◆ copies_
std::unordered_set<int> DDHGCalModuleAlgo::copies_ |
|
private |
◆ copyNumber_
std::vector<int> DDHGCalModuleAlgo::copyNumber_ |
|
private |
◆ idNameSpace_
std::string DDHGCalModuleAlgo::idNameSpace_ |
|
private |
◆ layers_
std::vector<int> DDHGCalModuleAlgo::layers_ |
|
private |
◆ layerSense_
std::vector<int> DDHGCalModuleAlgo::layerSense_ |
|
private |
◆ layerThick_
std::vector<double> DDHGCalModuleAlgo::layerThick_ |
|
private |
◆ layerType_
std::vector<int> DDHGCalModuleAlgo::layerType_ |
|
private |
◆ materials_
std::vector<std::string> DDHGCalModuleAlgo::materials_ |
|
private |
◆ names_
std::vector<std::string> DDHGCalModuleAlgo::names_ |
|
private |
◆ rMaxFine_
double DDHGCalModuleAlgo::rMaxFine_ |
|
private |
◆ rMaxFront_
std::vector<double> DDHGCalModuleAlgo::rMaxFront_ |
|
private |
◆ sectors_
int DDHGCalModuleAlgo::sectors_ |
|
private |
◆ slopeB_
std::vector<double> DDHGCalModuleAlgo::slopeB_ |
|
private |
◆ slopeT_
std::vector<double> DDHGCalModuleAlgo::slopeT_ |
|
private |
◆ thick_
std::vector<double> DDHGCalModuleAlgo::thick_ |
|
private |
◆ tol_
constexpr double DDHGCalModuleAlgo::tol_ = 0.00001 |
|
staticconstexprprivate |
◆ wafer_
std::vector<std::string> DDHGCalModuleAlgo::wafer_ |
|
private |
◆ waferGap_
double DDHGCalModuleAlgo::waferGap_ |
|
private |
◆ waferW_
double DDHGCalModuleAlgo::waferW_ |
|
private |
◆ zFront_
std::vector<double> DDHGCalModuleAlgo::zFront_ |
|
private |
◆ zMinBlock_
double DDHGCalModuleAlgo::zMinBlock_ |
|
private |
std::vector< int > layers_
std::vector< std::string > materials_
std::vector< std::string > wafer_
DDName is used to identify DDD entities uniquely.
constexpr NumType convertRadToDeg(NumType radians)
static constexpr uint32_t k_CornerSize
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
std::unordered_set< int > copies_
std::vector< int > layerType_
U second(std::pair< T, U > const &p)
std::vector< int > copyNumber_
std::vector< double > slopeB_
Log< level::Warning, false > LogWarning
void positionSensitive(DDLogicalPart &glog, double rin, double rout, DDCompactView &cpv)
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< double > rMaxFront_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< double > layerThick_
static int32_t packTypeUV(int type, int u, int v)
std::vector< int > layerSense_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Tan< T >::type tan(const T &t)
std::vector< double > zFront_
Log< level::Error, false > LogError
static constexpr double tol_
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< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::vector< double > slopeT_
std::vector< double > thick_
std::vector< std::string > names_
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)