|
|
Definition at line 31 of file DDHGCalModuleAlgo.cc.
◆ DDHGCalModuleAlgo()
DDHGCalModuleAlgo::DDHGCalModuleAlgo |
( |
| ) |
|
◆ ~DDHGCalModuleAlgo()
DDHGCalModuleAlgo::~DDHGCalModuleAlgo |
( |
| ) |
|
|
override |
◆ constructLayers()
Definition at line 166 of file DDHGCalModuleAlgo.cc.
168 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModuleAlgo test: \t\tInside Layers";
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") <<
"DDHGCalModuleAlgo test: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", "
189 << routF <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness "
197 double rmax = routF *
cos(
alpha) - tol;
198 std::vector<double> pgonZ, pgonRin, pgonRout;
199 pgonZ.emplace_back(-0.5 *
thick[
ii]);
200 pgonZ.emplace_back(0.5 *
thick[
ii]);
201 pgonRin.emplace_back(rinB);
202 pgonRin.emplace_back(rinB);
203 pgonRout.emplace_back(rmax);
204 pgonRout.emplace_back(rmax);
212 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
213 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
220 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModuleAlgo: " << solid.
name() <<
" Tubs made of " << matName
221 <<
" of dimensions " << rinB <<
", " << routF <<
", " << 0.5 *
thick[
ii]
232 <<
" positioned in " <<
module.name() <<
" at " <<
r1 <<
" with " <<
rot
242 << thickTot <<
" of all its components **** ERROR ****\n";
245 << 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 269 of file DDHGCalModuleAlgo.cc.
271 double dx = 0.5 * ww;
272 double dy = 3.0 *
dx *
tan(30._deg);
273 double rr = 2.0 *
dx *
tan(30._deg);
274 int ncol = (
int)(2.0 * rout / ww) + 1;
275 int nrow = (
int)(rout / (ww *
tan(30._deg))) + 1;
276 int incm(0), inrm(0), kount(0);
278 edm::LogVerbatim(
"HGCalGeom") << glog.
ddname() <<
" rout " << rout <<
" Row " << nrow <<
" Column " << ncol;
280 for (
int nr = -nrow;
nr <= nrow; ++
nr) {
281 int inr = (
nr >= 0) ?
nr : -
nr;
282 for (
int nc = -ncol; nc <= ncol; ++nc) {
283 int inc = (nc >= 0) ? nc : -nc;
284 if (inr % 2 == inc % 2) {
285 double xpos = nc *
dx;
286 double ypos =
nr *
dy;
289 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
292 int copy = inr * 100 + inc;
309 << glog.
ddname() <<
" at " << tran <<
" with " <<
rotation << std::endl;
316 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModuleAlgo: # of columns " << incm <<
" # of rows " << inrm <<
" and "
317 << kount <<
" wafers for " << glog.
ddname();
References filterCSVwithJSON::copy, distTCMET_cfi::corner, DDBase< N, C >::ddname(), DDSplit(), PVValHelper::dx, PVValHelper::dy, createfilelist::int, HGCalParameters::k_CornerSize, Skims_PA_cff::name, EgHLTOffHistBins_cfi::nr, 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 |
◆ idName
std::string DDHGCalModuleAlgo::idName |
|
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 |
◆ 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< double > zFront
DDName is used to identify DDD entities uniquely.
std::vector< std::string > wafer
alpha
zGenParticlesMatch = cms.InputTag(""),
constexpr NumType convertRadToDeg(NumType radians)
std::vector< double > layerThick
static constexpr uint32_t k_CornerSize
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
U second(std::pair< T, U > const &p)
std::vector< double > thick
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< int > copyNumber
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)
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
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 > materials
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
std::vector< double > rMaxFront
Tan< T >::type tan(const T &t)
std::vector< double > slopeT
std::vector< int > layerSense
static std::string & ns()
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
std::vector< int > layerType
std::vector< double > slopeB
std::unordered_set< int > copies
std::vector< int > layers
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)
std::vector< std::string > names