Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DD4hepDetectorElementTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Plugins/DD4hep/DD4hepDetectorElement.hpp"
#include "Acts/Surfaces/Surface.hpp"
#include "Acts/Tests/CommonHelpers/FloatComparisons.hpp"
#include <fstream>
#include <iostream>
#include <DD4hep/DetElement.h>
#include <DD4hep/Detector.h>
#include "DD4hep/DetFactoryHelper.h"
#include "XML/Utilities.h"
#include "XMLFragments.hpp"
+ Include dependency graph for DD4hepDetectorElementTests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (DD4hepPluginDetectorElementCylinder)
 
 BOOST_AUTO_TEST_CASE (DD4hepPluginDetectorElementSectoralCylinder)
 
 BOOST_AUTO_TEST_CASE (DD4hepPluginDetectorElementDisc)
 
 BOOST_AUTO_TEST_CASE (DD4hepPluginDetectorElementSectoralDisc)
 
 BOOST_AUTO_TEST_CASE (DD4hepPluginDetectorElementRectangle)
 
 BOOST_AUTO_TEST_CASE (DD4hepPluginDetectorElementTrapezoid)
 

Variables

Acts::GeometryContext tContext
 
const char * cylinder_xml
 
const char * sectoral_cylinder_xml
 
const char * disc_xml
 
const char * sectoral_disc_xml
 
const char * rectangle_xml
 
const char * trapezoid_xml
 

Function Documentation

BOOST_AUTO_TEST_CASE ( DD4hepPluginDetectorElementCylinder  )
BOOST_AUTO_TEST_CASE ( DD4hepPluginDetectorElementSectoralCylinder  )
BOOST_AUTO_TEST_CASE ( DD4hepPluginDetectorElementDisc  )
BOOST_AUTO_TEST_CASE ( DD4hepPluginDetectorElementSectoralDisc  )
BOOST_AUTO_TEST_CASE ( DD4hepPluginDetectorElementRectangle  )
BOOST_AUTO_TEST_CASE ( DD4hepPluginDetectorElementTrapezoid  )

Variable Documentation

const char* cylinder_xml
Initial value:
=
R""""( <detectors> <detector id="1" name="Cylinder" type="Cylinder"> <type_flags type="DetType_TRACKER"/> <tubs name="Cylinder" rmin="10*cm" rmax="11*cm" dz="100*cm" material="Vacuum" sensitive="true"/> </detector> </detectors> )""""

Definition at line 29 of file DD4hepDetectorElementTests.cpp.

View newest version in sPHENIX GitHub at line 29 of file DD4hepDetectorElementTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

const char* disc_xml
Initial value:
=
R""""( <detectors> <detector id="1" name="Disc" type="Disc"> <type_flags type="DetType_TRACKER"/> <tubs name="Disc" rmin="10*cm" rmax="90*cm" dz="1*cm" material="Vacuum" sensitive="true"/> </detector> </detectors> )""""

Definition at line 35 of file DD4hepDetectorElementTests.cpp.

View newest version in sPHENIX GitHub at line 35 of file DD4hepDetectorElementTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

const char* rectangle_xml
Initial value:
=
R""""( <detectors> <detector id="1" name="Rectangle" type="Rectangle"> <type_flags type="DetType_TRACKER"/> <box name="Rectangle" dx="10*cm" dy="90*cm" dz="0.1*cm" cx="1.*cm" cy="2.*cm" cz="3.*cm" material="Vacuum" sensitive="true"/> </detector> </detectors> )""""

Definition at line 41 of file DD4hepDetectorElementTests.cpp.

View newest version in sPHENIX GitHub at line 41 of file DD4hepDetectorElementTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

const char* sectoral_cylinder_xml
Initial value:
=
R""""( <detectors> <detector id="1" name="SectoralCylinder" type="Cylinder"> <type_flags type="DetType_TRACKER"/> <tubs name="Cylinder" rmin="10*cm" rmax="11*cm" dz="100*cm" phimin="0.1*rad" phimax="0.8*rad" material="Vacuum" sensitive="true"/> </detector> </detectors> )""""

Definition at line 32 of file DD4hepDetectorElementTests.cpp.

View newest version in sPHENIX GitHub at line 32 of file DD4hepDetectorElementTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

const char* sectoral_disc_xml
Initial value:
=
R""""( <detectors> <detector id="1" name="SectoralDisc" type="Disc"> <type_flags type="DetType_TRACKER"/> <tubs name="Disc" rmin="10*cm" rmax="90*cm" dz="1*cm" phimin="0.*rad" phimax="1.5*rad" material="Vacuum" sensitive="true"/> </detector> </detectors> )""""

Definition at line 38 of file DD4hepDetectorElementTests.cpp.

View newest version in sPHENIX GitHub at line 38 of file DD4hepDetectorElementTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

Definition at line 27 of file DD4hepDetectorElementTests.cpp.

View newest version in sPHENIX GitHub at line 27 of file DD4hepDetectorElementTests.cpp

const char* trapezoid_xml
Initial value:
=
R""""( <detectors> <detector id="1" name="Trapezoid" type="Trapezoid"> <type_flags type="DetType_TRACKER"/> <trap name="Trapezoid" x1="10*cm" x2="20*cm" dy="30*cm" dz="0.1*cm" cx="2.*cm" cy="3.*cm" cz="4.*cm" material="Vacuum" sensitive="true"/> </detector> </detectors> )""""

Definition at line 44 of file DD4hepDetectorElementTests.cpp.

View newest version in sPHENIX GitHub at line 44 of file DD4hepDetectorElementTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().