|
|
Definition at line 31 of file DDHGCalModule.cc.
◆ DDHGCalModule()
DDHGCalModule::DDHGCalModule |
( |
| ) |
|
◆ ~DDHGCalModule()
DDHGCalModule::~DDHGCalModule |
( |
| ) |
|
|
override |
◆ constructLayers()
Definition at line 166 of file DDHGCalModule.cc.
172 const double tol(0.01);
173 for (
unsigned int i = 0;
i <
layers.size();
i++) {
175 double routF =
rMax(zi);
176 int laymax = laymin +
layers[
i];
179 for (
int ly = laymin; ly < laymax; ++ly) {
188 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModule: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
189 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick[
i];
196 double rmax = routF *
cos(
alpha) - tol;
197 std::vector<double> pgonZ, pgonRin, pgonRout;
198 pgonZ.emplace_back(-0.5 *
thick[
ii]);
199 pgonZ.emplace_back(0.5 *
thick[
ii]);
200 pgonRin.emplace_back(rinB);
201 pgonRin.emplace_back(rinB);
202 pgonRout.emplace_back(rmax);
203 pgonRout.emplace_back(rmax);
211 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
212 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
219 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModule: " << solid.
name() <<
" Tubs made of " << matName
220 <<
" of dimensions " << rinB <<
", " << routF <<
", " << 0.5 *
thick[
ii]
232 <<
module.name() <<
" at " <<
r1 <<
" with " <<
rot;
241 << thickTot <<
" of all its components **** ERROR ****\n";
244 << thickTot <<
" of the components\n";
References zMuMuMuonUserData::alpha, angle_units::operators::convertRadToDeg(), filterCSVwithJSON::copy, funct::cos(), DDBase< N, C >::ddname(), DDSplit(), dqmdumpme::first, mps_fire::i, cuy::ii, dqmdumpme::k, hgcalTopologyTester_cfi::layers, Skims_PA_cff::name, DDBase< N, C >::name(), names, angle_units::piRadians(), DDSolidFactory::polyhedra(), DDCompactView::position(), diffTwoXMLs::r1, photonAnalyzer_cfi::rMax, makeMuonMisalignmentScenario::rot, edm::second(), volumeBasedMagneticField_160812_cfi::sectors, AlCaHLTBitMon_QueryRunRegistry::string, DDSolidFactory::tubs(), and geometryCSVtoXML::zz.
◆ execute()
◆ initialize()
◆ positionSensitive()
Definition at line 268 of file DDHGCalModule.cc.
270 double dy = 3.0 *
dx *
tan(30._deg);
271 double rr = 2.0 *
dx *
tan(30._deg);
272 int ncol = (
int)(2.0 * rout /
waferW) + 1;
274 int incm(0), inrm(0), kount(0), ntot(0),
nin(0), nfine(0), ncoarse(0);
276 edm::LogVerbatim(
"HGCalGeom") << glog.
ddname() <<
" rout " << rout <<
" Row " << nrow <<
" Column " << ncol;
278 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
279 int inr = (
nr >= 0) ?
nr : -
nr;
280 for (
int nc = -ncol; nc <= ncol; ++nc) {
281 int inc = (nc >= 0) ? nc : -nc;
282 if (inr % 2 == inc % 2) {
283 double xpos = nc *
dx;
284 double ypos =
nr *
dy;
288 int copy = inr * 100 + inc;
301 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
322 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModule: # of columns " << incm <<
" # of rows " << inrm <<
" and " <<
nin
323 <<
":" << kount <<
":" << ntot <<
" wafers (" << nfine <<
":" << ncoarse <<
") for "
324 << glog.
ddname() <<
" R " << rin <<
":" << rout;
References filterCSVwithJSON::copy, distTCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dx, PVValHelper::dy, createfilelist::int, HGCalParameters::k_CornerSize, Skims_PA_cff::name, nin, EgHLTOffHistBins_cfi::nr, DDCompactView::position(), idealTransformation::rotation, findQualityFiles::rr, mathSSE::sqrt(), funct::tan(), and HGCalGeomTools::waferCorner().
◆ rMax()
double DDHGCalModule::rMax |
( |
double |
z | ) |
|
|
protected |
◆ copies
std::unordered_set<int> DDHGCalModule::copies |
|
private |
◆ copyNumber
std::vector<int> DDHGCalModule::copyNumber |
|
private |
◆ idName
std::string DDHGCalModule::idName |
|
private |
◆ idNameSpace
std::string DDHGCalModule::idNameSpace |
|
private |
◆ layers
std::vector<int> DDHGCalModule::layers |
|
private |
◆ layerSense
std::vector<int> DDHGCalModule::layerSense |
|
private |
◆ layerThick
std::vector<double> DDHGCalModule::layerThick |
|
private |
◆ layerType
std::vector<int> DDHGCalModule::layerType |
|
private |
◆ materials
std::vector<std::string> DDHGCalModule::materials |
|
private |
◆ names
std::vector<std::string> DDHGCalModule::names |
|
private |
◆ rMaxFine
double DDHGCalModule::rMaxFine |
|
private |
◆ rMaxFront
std::vector<double> DDHGCalModule::rMaxFront |
|
private |
◆ sectors
int DDHGCalModule::sectors |
|
private |
◆ slopeB
std::vector<double> DDHGCalModule::slopeB |
|
private |
◆ slopeT
std::vector<double> DDHGCalModule::slopeT |
|
private |
◆ thick
std::vector<double> DDHGCalModule::thick |
|
private |
◆ wafer
std::vector<std::string> DDHGCalModule::wafer |
|
private |
◆ waferW
double DDHGCalModule::waferW |
|
private |
◆ zFront
std::vector<double> DDHGCalModule::zFront |
|
private |
◆ zMinBlock
double DDHGCalModule::zMinBlock |
|
private |
std::vector< int > layerSense
DDName is used to identify DDD entities uniquely.
alpha
zGenParticlesMatch = cms.InputTag(""),
constexpr NumType convertRadToDeg(NumType radians)
std::vector< double > slopeB
static constexpr uint32_t k_CornerSize
U second(std::pair< T, U > const &p)
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 > zFront
std::vector< double > slopeT
std::vector< double > thick
DDMaterial is used to define and access material information.
Cos< T >::type cos(const T &t)
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
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)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
std::vector< double > layerThick
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
constexpr long double piRadians(M_PIl)
std::vector< std::string > names
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Tan< T >::type tan(const T &t)
std::unordered_set< int > copies
std::vector< std::string > wafer
std::vector< int > layers
std::vector< std::pair< float, float > >::iterator itr
static std::string & ns()
std::vector< double > rMaxFront
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
std::vector< std::string > materials
void positionSensitive(DDLogicalPart &glog, double rin, double rout, DDCompactView &cpv)
std::vector< int > copyNumber
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)