27 std::vector<double> localrMaxVec = msol.
rMaxVec();
28 std::vector<double> localrMinVec = msol.
rMinVec();
50 <<
"DDDividedPolyconeRho::checkParametersValidity()" << std::endl
51 <<
" Solid " << msol << std::endl
52 <<
" Division along r will be done with a width "
53 <<
"different for each solid section." << std::endl
54 <<
" WIDTH will not be used !" << std::endl;
58 <<
"DDDividedPolyconeRho::checkParametersValidity()" << std::endl
59 <<
" Solid " << msol << std::endl
60 <<
" Division along R will be done with a width "
61 <<
"different for each solid section." << std::endl
62 <<
" OFFSET will not be used !" << std::endl;
68 std::vector<double> localrMaxVec = msol.
rMaxVec();
69 std::vector<double> localrMinVec = msol.
rMinVec();
71 return localrMaxVec[0] - localrMinVec[0];
89 std::vector<double> localrMaxVec = msol.
rMaxVec();
90 std::vector<double> localrMinVec = msol.rMinVec();
91 std::vector<double> localzVec = msol.zVec();
93 int nZplanes = localzVec.size();
95 std::vector<double> newrMinVec;
96 std::vector<double> newrMaxVec;
99 for (
int ii = 0;
ii < nZplanes; ++
ii) {
102 newrMaxVec.emplace_back(localrMinVec[
ii] +
div_.
offset() +
width * (copyNo + 1));
106 ddpolycone =
DDSolidFactory::polycone(solname, msol.startPhi(), msol.deltaPhi(), localzVec, newrMinVec, newrMaxVec);
116 setType(
"DivisionPolyconePhi");
164 std::vector<double> localrMaxVec = msol.
rMaxVec();
165 std::vector<double> localrMinVec = msol.rMinVec();
166 std::vector<double> localzVec = msol.zVec();
170 if (!sol.isDefined().second) {
186 std::vector<double> localrMaxVec = msol.
rMaxVec();
187 std::vector<double> localrMinVec = msol.
rMinVec();
188 std::vector<double> localzVec = msol.
zVec();
201 std::vector<double> localzVec = msol.
zVec();
208 if ((msol.
zVec().size() - 1) != tempNDiv) {
209 std::string s =
"ERROR - DDDividedPolyconeZ::checkParametersValidity()";
210 s +=
"\n\tDivision along Z will be done splitting in the defined";
211 s +=
"\n\tz_planes, i.e, the number of division would be :";
212 s +=
"\n\t" + std::to_string(msol.
zVec().size() - 1);
213 s +=
"\n\tinstead of " + std::to_string(tempNDiv) +
" !\n";
221 std::vector<double> localzVec = msol.
zVec();
223 return (localzVec[localzVec.size() - 1] - localzVec[0]);
234 std::vector<double> localzVec = msol.
zVec();
235 double posi = (localzVec[copyNo] + localzVec[copyNo + 1]) / 2;
236 translation.SetZ(posi);
245 std::vector<double> localrMaxVec = msol.
rMaxVec();
246 std::vector<double> localrMinVec = msol.rMinVec();
247 std::vector<double> localzVec = msol.zVec();
252 localrMinVec[copyNo],
253 localrMaxVec[copyNo],
254 localrMinVec[copyNo + 1],
255 localrMaxVec[copyNo + 1],