9 namespace std{}
using namespace std;
20 LogDebug(
"HCalGeom") <<
"DDHCalForwardAlgo info: Creating an instance";
32 cellMat = sArgs[
"CellMaterial"];
43 LogDebug(
"HCalGeom") <<
"DDHCalForwardAlgo debug: Cell material " <<
cellMat
47 <<
" Cell positioning done for "
48 <<
number.size() <<
" times";
49 for (
unsigned int i = 0;
i <
number.size();
i++)
50 LogDebug(
"HCalGeom") <<
"\t" <<
i <<
" Number of children " <<
size[
i]
51 <<
" occurence " <<
number[
i] <<
" first child index "
56 LogDebug(
"HCalGeom") <<
"DDHCalForwardAlgo debug: Parent " << parentName
62 LogDebug(
"HCalGeom") <<
"==>> Constructing DDHCalForwardAlgo...";
68 for (
unsigned int i=0;
i<
number.size();
i++) {
76 LogDebug(
"HCalGeom") <<
"DDHCalForwardAlgo test: "
88 LogDebug(
"HCalGeom") <<
"DDHCalForwardAlgo test: " << solid.
ddname()
89 <<
" number " << box <<
" positioned in "
90 << parentName <<
" at " << r0 <<
" with " <<
rot;
94 double xpos = -dx +
cellDx;
98 for (
int k=0;
k<size[
i];
k++) {
101 LogDebug(
"HCalGeom") <<
"DDHCalForwardAlgo test: " << child
102 <<
" number " <<
k+1 <<
" positioned in "
103 << solid.
ddname() <<
" at " << r1 <<
" with "
109 LogDebug(
"HCalGeom") <<
"<<== End of DDHCalForwardAlgo construction ...";
DDMaterial is used to define and access material information.
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
std::string dbl_to_string(const double &in)
Converts only the integer part of a double to a string.
type of data representation of DDCompactView
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
void execute(DDCompactView &cpv)
virtual ~DDHCalForwardAlgo()
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< std::string > childName
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
std::vector< int > number
const std::string & name() const
Returns the name.
tuple size
Write out results.