|
|
Go to the source code of this file.
◆ output()
void output |
( |
std::string |
filename | ) |
|
◆ regressionTest_first()
load the new cpv
Definition at line 111 of file build.cc.
114 cout <<
"main::initialize DDL parser" << endl;
117 cout <<
"main::about to set configuration" << endl;
121 eval.eval(ns,
"[setup:corner]/4."),
122 eval.eval(ns,
"[setup:corner]/8."),
123 eval.eval(ns,
"[setup:corner]/4."));
125 eval.eval(ns,
"[setup:corner]/16."),
126 eval.eval(ns,
"[setup:corner]/16."),
127 eval.eval(ns,
"[setup:corner]/16."));
130 DDName(
"Oxygen",
"elements"),
143 eval.eval(ns,
"[setup:corner]/8."), eval.eval(ns,
"[setup:corner]/16."), eval.eval(ns,
"[setup:corner]/8."));
145 eval.eval(ns,
"[setup:corner]*1.25*cos(0.)"), eval.eval(ns,
"[setup:corner]*1.25*sin(0.)"), eval.eval(ns,
"0."));
147 eval.eval(ns,
"[setup:corner]*1.25*sin(30.*deg)"),
148 eval.eval(ns,
"0."));
149 DDTranslation t4(eval.eval(ns,
"[setup:corner]*1.25*cos(60.*deg)"),
150 eval.eval(ns,
"[setup:corner]*1.25*sin(60.*deg)"),
151 eval.eval(ns,
"0."));
152 DDTranslation t5(eval.eval(ns,
"[setup:corner]*1.25*cos(90.*deg)"),
153 eval.eval(ns,
"[setup:corner]*1.25*sin(90.*deg)"),
154 eval.eval(ns,
"0."));
162 std::unique_ptr<DDRotationMatrix>
rm =
163 std::make_unique<DDRotationMatrix>(ROOT::Math::AxisAngle(
DD3Vector(1., 1., 1.), 20._deg));
References DDSolidFactory::box(), gather_cfg::cout, DDrot(), ClhepEvaluator::eval(), eostools::move(), DDCompactView::position(), submit::rm, AlCaHLTBitMon_QueryRunRegistry::string, FrontierCondition_GT_autoExpress_cfi::t0, RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, unit(), and gpuVertexFinder::ws.
◆ regressionTest_forth()
void regressionTest_forth |
( |
| ) |
|
◆ regressionTest_second()
void regressionTest_second |
( |
| ) |
|
◆ regressionTest_setup()
Definition at line 40 of file build.cc.
44 eval.set(ns,
"length",
"20.*m");
47 eval.set(ns,
"corner",
"[length]/4.");
50 DDName worldName(
"world", ns);
52 DDName nitrogenName(
"Nitrogen",
"elements");
53 DDName oxygenName(
"Oxygen",
"elements");
56 worldName, eval.eval(ns,
"[length]/2."), eval.eval(ns,
"[length]/2."), eval.eval(ns,
"[length]/2."));
63 DDMaterial air(airName, eval.eval(ns,
"1.214*mg/cm3"));
65 air.addMaterial(
DDMaterial(oxygenName), eval.eval(ns,
"0.25"));
71 eval.eval(ns,
"14.007*g/mole"),
72 eval.eval(ns,
"0.808*g/cm3"));
76 eval.eval(ns,
"15.999*g/mole"),
77 eval.eval(ns,
"1.43*g/cm3"));
82 std::unique_ptr<DDRotationMatrix> r0 = std::make_unique<DDRotationMatrix>();
83 std::unique_ptr<DDRotationMatrix> r30 = std::make_unique<DDRotationMatrix>(ROOT::Math::RotationZ(30._deg));
84 std::unique_ptr<DDRotationMatrix> r60 = std::make_unique<DDRotationMatrix>(ROOT::Math::RotationZ(60._deg));
85 std::unique_ptr<DDRotationMatrix> r90 = std::make_unique<DDRotationMatrix>(ROOT::Math::RotationZ(90._deg));
References DDMaterial::addMaterial(), DDSolidFactory::box(), gather_cfg::cout, DDrot(), ClhepEvaluator::eval(), DDI::Singleton< I >::instance(), eostools::move(), ClhepEvaluator::set(), and DDSolidFactory::shapeless().
◆ regressionTest_third()
void regressionTest_third |
( |
| ) |
|
◆ testParser()
◆ testrot()
Definition at line 251 of file build.cc.
253 ROOT::Math::AxisAngle aa(
DD3Vector(1., 1., 1.), 20._deg);
255 cout <<
"DD3Vector was " <<
DD3Vector(1., 1., 1.) <<
" and the rotation was 20*deg around that axis." << endl;
260 cout <<
"(1,0,0, 0,-1,0, 0,0,1)" << endl;
References gather_cfg::cout, printRot(), and submit::rm.
DDName is used to identify DDD entities uniquely.
DDMaterial is used to define and access material information.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
static value_type & instance()
DDLParser is the main class of Detector Description Language Parser.
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
void printRot(const DDRotationMatrix &rot)
static DDSolid shapeless(const DDName &name)
Basic3DVector unit() const
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
FIPConfiguration reads in the configuration file for the DDParser.
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
int addMaterial(const DDMaterial &m, double fm)
adds a material to the mixture proportional to its fraction-mass fm.
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)