|
|
Definition at line 25 of file DDHGCalTBModule.cc.
◆ DDHGCalTBModule()
DDHGCalTBModule::DDHGCalTBModule |
( |
| ) |
|
◆ ~DDHGCalTBModule()
DDHGCalTBModule::~DDHGCalTBModule |
( |
| ) |
|
|
override |
◆ constructLayers()
Definition at line 175 of file DDHGCalTBModule.cc.
181 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
183 double routF =
rMax(zi);
187 for (
int ly = laymin; ly < laymax; ++ly) {
196 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
197 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
213 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: " << solid.
name() <<
" Tubs made of " << matName
214 <<
" of dimensions " << rinB <<
", " << routF <<
", " << 0.5 *
thick_[
ii]
225 <<
" positioned in " <<
module.name() <<
" at " <<
r1 <<
" with " <<
rot;
234 << thickTot <<
" of all its components **** ERROR ****\n";
237 << thickTot <<
" of the components\n";
References DDSolidFactory::box(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), first, mps_fire::i, cuy::ii, callgraph::module, Skims_PA_cff::name, DDBase< N, C >::name(), 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 261 of file DDHGCalTBModule.cc.
263 double dx = 0.5 * ww;
264 double dy = 3.0 *
dx *
tan(30._deg);
265 double rr = 2.0 *
dx *
tan(30._deg);
266 int ncol = (
int)(2.0 * rout / ww) + 1;
267 int nrow = (
int)(rout / (ww *
tan(30._deg))) + 1;
268 int incm(0), inrm(0), kount(0);
271 edm::LogVerbatim(
"HGCalGeom") << glog.
ddname() <<
" rout " << rout <<
" Row " << nrow <<
" Column " << ncol;
273 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
274 int inr = (
nr >= 0) ?
nr : -
nr;
275 for (
int nc = -ncol; nc <= ncol; ++nc) {
276 int inc = (nc >= 0) ? nc : -nc;
277 if (inr % 2 == inc % 2) {
278 double xpos = nc *
dx;
279 double ypos =
nr *
dy;
281 yc[0] = ypos - 0.5 *
rr;
283 yc[1] = ypos + 0.5 *
rr;
287 yc[3] = ypos + 0.5 *
rr;
289 yc[4] = ypos - 0.5 *
rr;
292 bool cornerAll(
true);
293 for (
int k = 0;
k < 6; ++
k) {
295 if (rpos < rin || rpos > rout)
299 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
327 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: # of columns " << incm <<
" # of rows " << inrm <<
" and " << kount
328 <<
" wafers for " << glog.
ddname();
References filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dx, PVValHelper::dy, first, createfilelist::int, dqmdumpme::k, Skims_PA_cff::name, EgHLTOffHistBins_cfi::nr, HGCalTypes::packTypeUV(), DDCompactView::position(), idealTransformation::rotation, findQualityFiles::rr, edm::second(), mathSSE::sqrt(), and funct::tan().
◆ rMax()
double DDHGCalTBModule::rMax |
( |
double |
z | ) |
|
|
protected |
◆ absorbH_
double DDHGCalTBModule::absorbH_ |
|
private |
◆ absorbW_
double DDHGCalTBModule::absorbW_ |
|
private |
◆ copies_
std::unordered_set<int> DDHGCalTBModule::copies_ |
|
private |
◆ copyNumber_
std::vector<int> DDHGCalTBModule::copyNumber_ |
|
private |
◆ covers_
std::vector<std::string> DDHGCalTBModule::covers_ |
|
private |
◆ idName_
std::string DDHGCalTBModule::idName_ |
|
private |
◆ idNameSpace_
std::string DDHGCalTBModule::idNameSpace_ |
|
private |
◆ layers_
std::vector<int> DDHGCalTBModule::layers_ |
|
private |
◆ layerSense_
std::vector<int> DDHGCalTBModule::layerSense_ |
|
private |
◆ layerThick_
std::vector<double> DDHGCalTBModule::layerThick_ |
|
private |
◆ layerType_
std::vector<int> DDHGCalTBModule::layerType_ |
|
private |
◆ materials_
std::vector<std::string> DDHGCalTBModule::materials_ |
|
private |
◆ names_
std::vector<std::string> DDHGCalTBModule::names_ |
|
private |
◆ rMaxFine_
double DDHGCalTBModule::rMaxFine_ |
|
private |
◆ rMaxFront_
std::vector<double> DDHGCalTBModule::rMaxFront_ |
|
private |
◆ sectors_
int DDHGCalTBModule::sectors_ |
|
private |
◆ slopeB_
std::vector<double> DDHGCalTBModule::slopeB_ |
|
private |
◆ slopeT_
std::vector<double> DDHGCalTBModule::slopeT_ |
|
private |
◆ thick_
std::vector<double> DDHGCalTBModule::thick_ |
|
private |
◆ wafer_
std::vector<std::string> DDHGCalTBModule::wafer_ |
|
private |
◆ waferGap_
double DDHGCalTBModule::waferGap_ |
|
private |
◆ waferW_
double DDHGCalTBModule::waferW_ |
|
private |
◆ zFront_
std::vector<double> DDHGCalTBModule::zFront_ |
|
private |
◆ zMinBlock_
double DDHGCalTBModule::zMinBlock_ |
|
private |
std::unordered_set< int > copies_
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
void positionSensitive(DDLogicalPart &glog, int type, double rin, double rout, DDCompactView &cpv)
DDName is used to identify DDD entities uniquely.
std::vector< std::string > wafer_
std::vector< std::string > materials_
std::vector< int > layers_
U second(std::pair< T, U > const &p)
std::vector< double > layerThick_
Log< level::Warning, false > LogWarning
DDMaterial is used to define and access material information.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
std::vector< int > layerSense_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< double > slopeT_
static int32_t packTypeUV(int type, int u, int v)
std::vector< double > slopeB_
std::vector< double > thick_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Tan< T >::type tan(const T &t)
std::vector< double > rMaxFront_
std::vector< int > copyNumber_
Log< level::Error, false > LogError
std::vector< std::string > names_
Log< level::Info, true > LogVerbatim
static std::string & ns()
std::vector< std::string > covers_
std::vector< int > layerType_
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.
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
std::vector< double > zFront_
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)