28 std::vector<double> localrMaxVec = msol.
rMaxVec();
29 std::vector<double> localrMinVec = msol.
rMinVec();
31 setType(
"DivisionPolyconeRho" );
57 <<
"DDDividedPolyconeRho::checkParametersValidity()" 59 <<
" Solid " << msol << std::endl
60 <<
" Division along r will be done with a width " 61 <<
"different for each solid section." << std::endl
62 <<
" WIDTH will not be used !" << std::endl;
67 <<
"DDDividedPolyconeRho::checkParametersValidity()" 69 <<
" Solid " << msol << std::endl
70 <<
" Division along R will be done with a width " 71 <<
"different for each solid section." << std::endl
72 <<
" OFFSET will not be used !" << std::endl;
80 std::vector<double> localrMaxVec = msol.
rMaxVec();
81 std::vector<double> localrMinVec = msol.
rMinVec();
83 return localrMaxVec[0] - localrMinVec[0];
107 std::vector<double> localrMaxVec = msol.
rMaxVec();
108 std::vector<double> localrMinVec = msol.rMinVec();
109 std::vector<double> localzVec = msol.zVec();
111 int nZplanes = localzVec.size();
113 std::vector<double> newrMinVec;
114 std::vector<double> newrMaxVec;
117 for(
int ii = 0;
ii < nZplanes; ++
ii)
121 newrMinVec.emplace_back(localrMinVec[ii]+
div_.
offset()+width*copyNo);
122 newrMaxVec.emplace_back(localrMinVec[ii]+
div_.
offset()+width*(copyNo+1));
143 setType(
"DivisionPolyconePhi" );
206 std::vector<double> localrMaxVec = msol.
rMaxVec();
207 std::vector<double> localrMinVec = msol.rMinVec();
208 std::vector<double> localzVec = msol.zVec();
213 if( !sol.isDefined().second )
223 if( !ddlp.isDefined().second )
236 std::vector<double> localrMaxVec = msol.
rMaxVec();
237 std::vector<double> localrMinVec = msol.
rMinVec();
238 std::vector<double> localzVec = msol.
zVec();
260 std::vector<double> localzVec = msol.
zVec();
266 tempNDiv =
calculateNDiv( localzVec[localzVec.size() - 1] - localzVec[0]
269 if ((msol.
zVec().size() - 1) != tempNDiv)
271 std::string s =
"ERROR - DDDividedPolyconeZ::checkParametersValidity()";
272 s +=
"\n\tDivision along Z will be done splitting in the defined";
273 s +=
"\n\tz_planes, i.e, the number of division would be :";
274 s +=
"\n\t" + std::to_string( msol.
zVec().size() - 1 );
275 s +=
"\n\tinstead of " + std::to_string(tempNDiv) +
" !\n";
285 std::vector<double> localzVec = msol.
zVec();
287 return (localzVec[ localzVec.size() - 1] - localzVec[0]);
302 std::vector<double> localzVec = msol.
zVec();
303 double posi = (localzVec[copyNo] + localzVec[copyNo+1]) / 2;
304 translation.SetZ(posi);
315 std::vector<double> localrMaxVec = msol.
rMaxVec();
316 std::vector<double> localrMinVec = msol.rMinVec();
317 std::vector<double> localzVec = msol.zVec();
323 localrMinVec[copyNo],
324 localrMaxVec[copyNo],
325 localrMinVec[copyNo+1],
326 localrMaxVec[copyNo+1],
void checkParametersValidity() override
void checkParametersValidity() override
DDLogicalPart makeDDLogicalPart(int copyNo) const override
DDDividedPolyconeRho(const DDDivision &div, DDCompactView *cpv)
DDMaterial is used to define and access material information.
std::vector< double > rMaxVec(void) const
DDRotation makeDDRotation(int copyNo) const override
static DDSolid cons(const DDName &name, double zhalf, double rInMinusZ, double rOutMinusZ, double rInPlusZ, double rOutPlusZ, double phiFrom, double deltaPhi)
static DDSolid polycone(const DDName &name, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polycone (refere to Geant3 or Geant4 documentation)
int calculateNDiv(double motherDim, double width, double offset) const
DDRotation makeDDRotation(int copyNo) const override
const std::string & ns() const
Returns the namespace.
DDName is used to identify DDD entities uniquely.
double getMaxParameter() const override
double calculateWidth(double motherDim, int nDiv, double offset) const
double getMaxParameter() const override
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
DDTranslation makeDDTranslation(int copyNo) const override
Compact representation of the geometrical detector hierarchy.
A DDSolid represents the shape of a part.
virtual void checkParametersValidity(void)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
DDTranslation makeDDTranslation(int copyNo) const override
double getMaxParameter() const override
DDLogicalPart makeDDLogicalPart(int copyNo) const override
DivisionType divisionType_
std::vector< double > rMinVec(void) const
void checkParametersValidity() override
double deltaPhi(void) const
DDTranslation makeDDTranslation(int copyNo) const override
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
virtual void setType(const std::string &type)
DDDividedPolyconeZ(const DDDivision &div, DDCompactView *cpv)
std::unique_ptr< DDRotationMatrix > changeRotMatrix(double rotZ=0.) const
DDDividedPolyconePhi(const DDDivision &div, DDCompactView *cpv)
const DDLogicalPart & parent() const
const std::string & name() const
Returns the name.
const DDMaterial & material(void) const
Returns a reference object of the material this LogicalPart is made of.
DDLogicalPart makeDDLogicalPart(int copyNo) const override
std::vector< double > zVec(void) const
DDRotation makeDDRotation(int copyNo) const override