|
ATLAS Offline Software
|
#include <SurfaceIntersectionTest.h>
|
| SurfaceIntersectionTest (const std::string &name, ISvcLocator *pSvcLocator) |
| Standard Athena-Algorithm Constructor. More...
|
|
StatusCode | finalize () |
|
StatusCode | runTest () |
|
StatusCode | initializeTest () |
| initialize the test, i.e. More...
|
|
StatusCode | initialize () |
| standard Athena-Algorithm method More...
|
|
StatusCode | execute () |
| standard Athena-Algorithm method More...
|
|
virtual StatusCode | bookTree () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 29 of file SurfaceIntersectionTest.h.
◆ StoreGateSvc_t
◆ SurfaceIntersectionTest()
Trk::SurfaceIntersectionTest::SurfaceIntersectionTest |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ bookTree()
StatusCode Trk::TrkDetDescrUnitTestBase::bookTree |
( |
| ) |
|
|
virtualinherited |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode Trk::TrkDetDescrUnitTestBase::execute |
( |
| ) |
|
|
inherited |
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode Trk::SurfaceIntersectionTest::finalize |
( |
| ) |
|
◆ initialize()
StatusCode Trk::TrkDetDescrUnitTestBase::initialize |
( |
| ) |
|
|
inherited |
standard Athena-Algorithm method
Definition at line 27 of file TrkDetDescrUnitTestBase.cxx.
29 ATH_MSG_INFO(
"Creating random number services, call bookTree() and initializeTest()" );
32 m_gaussDist =
new Rndm::Numbers(randSvc(), Rndm::Gauss(0.,1.));
33 m_flatDist =
new Rndm::Numbers(randSvc(), Rndm::Flat(0.,1.));
37 return StatusCode::FAILURE;
42 return StatusCode::FAILURE;
45 return StatusCode::SUCCESS;
◆ initializeTest()
StatusCode Trk::SurfaceIntersectionTest::initializeTest |
( |
| ) |
|
|
virtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ runTest()
StatusCode Trk::SurfaceIntersectionTest::runTest |
( |
| ) |
|
|
virtual |
Implements Trk::TrkDetDescrUnitTestBase.
Definition at line 70 of file SurfaceIntersectionTest.cxx.
91 TString
treeName =
"IntersectionTest_Event";
93 TTree* currentTree =
new TTree(
treeName.Data(),
"Intersection");
95 TTree* currentInfoTree =
new TTree(
treeName.Data(),
"Surface Information");
97 SmartIF<ITHistSvc> tHistSvc;
99 ATH_MSG_FATAL(
"initialize() Could not find Hist Service! Aborting." );
100 return StatusCode::FAILURE;
103 TString fullTreeName =
m_treeFolder+
"Intersection_Event";
105 fullTreeName +=
"_Number";
107 fullTreeName +=
"_"+
sf->name();
109 if (
m_writeTTree && tHistSvc->regTree(fullTreeName.Data(), currentTree).isFailure()) {
110 ATH_MSG_ERROR(
"initialize() Could not register the validation Tree! Aborting." );
112 return StatusCode::FAILURE;
115 TString fullInfoTreeName =
m_treeFolder+
"SurfaceInfo_Event";
117 fullInfoTreeName +=
"_Number";
118 fullInfoTreeName +=
it;
119 fullInfoTreeName +=
"_"+
sf->name();
120 if (
m_writeTTree && tHistSvc->regTree(fullInfoTreeName.Data(), currentInfoTree).isFailure()) {
121 ATH_MSG_ERROR(
"initialize() Could not register the validation Tree! Aborting." );
122 delete currentInfoTree;
123 return StatusCode::FAILURE;
132 intersectionBranch.
initForWrite(*currentTree,
"Intersection_",3);
147 direction = direction.normalized();
171 return StatusCode::SUCCESS;
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_eventCounter
size_t Trk::SurfaceIntersectionTest::m_eventCounter |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_flatDist
Rndm::Numbers* Trk::TrkDetDescrUnitTestBase::m_flatDist |
|
protectedinherited |
◆ m_gaussDist
Rndm::Numbers* Trk::TrkDetDescrUnitTestBase::m_gaussDist |
|
protectedinherited |
◆ m_numTests
size_t Trk::TrkDetDescrUnitTestBase::m_numTests |
|
protectedinherited |
◆ m_surfaceAttempts
std::vector<size_t> Trk::SurfaceIntersectionTest::m_surfaceAttempts |
|
private |
◆ m_surfaceBuilder
◆ m_surfaceNames
std::vector<std::string> Trk::SurfaceIntersectionTest::m_surfaceNames |
|
private |
◆ m_surfaceNamesSet
std::vector<bool> Trk::SurfaceIntersectionTest::m_surfaceNamesSet |
|
private |
◆ m_surfaces
std::vector<size_t> Trk::SurfaceIntersectionTest::m_surfaces |
|
private |
◆ m_surfaceSuccessful
std::vector<size_t> Trk::SurfaceIntersectionTest::m_surfaceSuccessful |
|
private |
◆ m_testsPerSurface
size_t Trk::SurfaceIntersectionTest::m_testsPerSurface |
|
private |
◆ m_treeFolder
std::string Trk::SurfaceIntersectionTest::m_treeFolder |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeTTree
bool Trk::SurfaceIntersectionTest::m_writeTTree |
|
private |
The documentation for this class was generated from the following files:
Rndm::Numbers * m_flatDist
size_t m_numTests
number of tests
void fill(const Trk::Surface &surface)
fill a vector
Rndm::Numbers * m_gaussDist
Random Number setup.
This class provides a simple interface to write Vectors to a root tree The size of the vectors cannot...
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode bookTree()
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< bool > m_surfaceNamesSet
virtual StatusCode runTest()=0
#define ATH_MSG_VERBOSE(x)
std::vector< std::string > intersection(std::vector< std::string > &v1, std::vector< std::string > &v2)
virtual void setOwner(IDataHandleHolder *o)=0
bool initForWrite(TTree &tree, const std::string &varname, int nrow, const std::string &prefix="")
initialize class for writing
bool fill(const Amg::VectorX &matrix)
fill a vector
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
virtual StatusCode sysInitialize() override
Override sysInitialize.
StatusCode finalize()
standard Athena-Algorithm method
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< size_t > m_surfaceSuccessful
std::vector< size_t > m_surfaceAttempts
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
void initForWrite(TTree &tree, const std::string &prefix="")
initialize class for writing
This class provides a simple interface to write Surfaces to a root tree.
Eigen::Matrix< double, 3, 1 > Vector3D
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
ToolHandle< ISurfaceBuilder > m_surfaceBuilder
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< size_t > m_surfaces
virtual StatusCode initializeTest()
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< std::string > m_surfaceNames