|
|
|
static constexpr double | tol_ = 0.00001 |
|
Definition at line 32 of file DDHGCalModule.cc.
◆ DDHGCalModule()
DDHGCalModule::DDHGCalModule |
( |
| ) |
|
◆ constructLayers()
Definition at line 163 of file DDHGCalModule.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") <<
"DDHGCalModule: Layer " << ly <<
":" <<
ii <<
" Front " << zi <<
", " << routF
186 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " <<
layerThick_[
i];
193 double rmax = routF *
cos(
alpha) - tol;
194 std::vector<double> pgonZ, pgonRin, pgonRout;
195 pgonZ.emplace_back(-0.5 *
thick_[
ii]);
196 pgonZ.emplace_back(0.5 *
thick_[
ii]);
197 pgonRin.emplace_back(rinB);
198 pgonRin.emplace_back(rinB);
199 pgonRout.emplace_back(rmax);
200 pgonRout.emplace_back(rmax);
208 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
209 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
216 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModule: " << solid.
name() <<
" Tubs made of " << matName
217 <<
" of dimensions " << rinB <<
", " << routF <<
", " << 0.5 *
thick_[
ii]
229 << module.
name() <<
" at " <<
r1 <<
" with " <<
rot;
238 << thickTot <<
" of all its components **** ERROR ****\n";
241 << 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, Skims_PA_cff::name, DDBase< N, C >::name(), angle_units::piRadians(), 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 266 of file DDHGCalModule.cc.
268 double dy = 3.0 *
dx *
tan(30._deg);
269 double rr = 2.0 *
dx *
tan(30._deg);
272 int incm(0), inrm(0), kount(0), ntot(0),
nin(0), nfine(0), ncoarse(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;
295 double rpos =
std::sqrt(xpos * xpos + ypos * ypos);
316 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModule: # of columns " << incm <<
" # of rows " << inrm <<
" and " <<
nin
317 <<
":" << kount <<
":" << ntot <<
" wafers (" << nfine <<
":" << ncoarse <<
") for "
318 << 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, HGCalTypes::packTypeUV(), 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 |
◆ 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 |
◆ tol_
constexpr double DDHGCalModule::tol_ = 0.00001 |
|
staticconstexprprivate |
◆ 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< std::string > materials_
std::vector< double > layerThick_
DDName is used to identify DDD entities uniquely.
alpha
zGenParticlesMatch = cms.InputTag(""),
constexpr NumType convertRadToDeg(NumType radians)
static constexpr uint32_t k_CornerSize
std::vector< int > layers_
U second(std::pair< T, U > const &p)
std::vector< std::string > names_
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< std::string > wafer_
Log< level::Warning, false > LogWarning
DDMaterial is used to define and access material information.
Cos< T >::type cos(const T &t)
std::unordered_set< int > copies_
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
std::vector< int > copyNumber_
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)
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
static int32_t packTypeUV(int type, int u, int v)
std::vector< int > layerSense_
constexpr long double piRadians(M_PIl)
std::vector< double > zFront_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Tan< T >::type tan(const T &t)
std::vector< double > slopeT_
Log< level::Error, false > LogError
std::vector< std::pair< float, float > >::iterator itr
std::vector< double > slopeB_
std::vector< int > layerType_
Log< level::Info, true > LogVerbatim
static std::string & ns()
std::vector< double > rMaxFront_
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
static constexpr double tol_
std::vector< double > thick_
void positionSensitive(DDLogicalPart &glog, double rin, double rout, DDCompactView &cpv)
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)