|
|
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];
214 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: " << solid.
name() <<
" Tubs made of " << matName
215 <<
" of dimensions " << rinB <<
", " << routF <<
", " << 0.5 *
thick_[
ii]
226 <<
" positioned in " << module.
name() <<
" at " <<
r1 <<
" with " <<
rot;
235 << thickTot <<
" of all its components **** ERROR ****\n";
238 << thickTot <<
" of the components\n";
References DDSolidFactory::box(), filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), dqmdumpme::first, mps_fire::i, cuy::ii, Skims_PA_cff::name, DDBase< N, C >::name(), angle_units::piRadians(), 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 262 of file DDHGCalTBModule.cc.
264 double dx = 0.5 * ww;
265 double dy = 3.0 *
dx *
tan(30._deg);
266 double rr = 2.0 *
dx *
tan(30._deg);
267 int ncol = (
int)(2.0 * rout / ww) + 1;
268 int nrow = (
int)(rout / (ww *
tan(30._deg))) + 1;
269 int incm(0), inrm(0), kount(0);
272 edm::LogVerbatim(
"HGCalGeom") << glog.
ddname() <<
" rout " << rout <<
" Row " << nrow <<
" Column " << ncol;
274 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
275 int inr = (
nr >= 0) ?
nr : -
nr;
276 for (
int nc = -ncol; nc <= ncol; ++nc) {
277 int inc = (nc >= 0) ? nc : -nc;
278 if (inr % 2 == inc % 2) {
279 double xpos = nc *
dx;
280 double ypos =
nr *
dy;
282 yc[0] = ypos - 0.5 *
rr;
284 yc[1] = ypos + 0.5 *
rr;
288 yc[3] = ypos + 0.5 *
rr;
290 yc[4] = ypos - 0.5 *
rr;
293 bool cornerAll(
true);
294 for (
int k = 0;
k < 6; ++
k) {
296 if (rpos < rin || rpos > rout)
300 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
328 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: # of columns " << incm <<
" # of rows " << inrm <<
" and " << kount
329 <<
" wafers for " << glog.
ddname();
References filterCSVwithJSON::copy, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dx, PVValHelper::dy, dqmdumpme::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_
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
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)
constexpr long double piRadians(M_PIl)
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.
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)