10 #include "CLHEP/Units/GlobalSystemOfUnits.h" 16 edm::LogInfo(
"HGCalGeom") <<
"DDHGCalWafer test: Creating an instance";
41 <<
" positioned in " <<
nCellsRow_.size() <<
" rows and " 56 edm::LogInfo(
"HGCalGeom") <<
"==>> Constructing DDHGCalWafer...";
59 double dy = 0.5*dx*
tan(30.0*CLHEP::deg);
63 for (
unsigned int ir=0; ir<
nCellsRow_.size(); ++ir) {
72 }
else if (ic+1== nCellsRow_[ir]) {
78 if (irot >=0 && irot < 100) rotstr =
"R0";
80 rotstr = rotstr + std::to_string(irot);
84 std::cout <<
"DDHGCalWaferAlgo: Creating new rotation " 86 <<
", 90, " << (irot+90) <<
", 0, 0" << std::endl;
89 irot*CLHEP::deg, 90*CLHEP::deg, (90+irot)*CLHEP::deg,
90 0*CLHEP::deg,0*CLHEP::deg);
101 << copy <<
" positioned in " <<
parentName_ <<
" at " << tran
102 <<
" with " << rot << std::endl;
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
DDName is used to identify DDD entities uniquely.
static std::string & ns()
std::vector< int > detectorType_
type of data representation of DDCompactView
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
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.
std::vector< std::string > childNames_
std::vector< int > nCellsRow_
Tan< T >::type tan(const T &t)
std::vector< int > angleEdges_
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
void execute(DDCompactView &cpv) override