|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
#include <SegGeometryStore.hh>
Static Public Member Functions | |
| static geometry::SegGeometry * | Create (const std::string &segname="SENS2X1:V1") |
| Static factory method for SegGeometry of the segments defined by the name. | |
@ingroup geometry @brief class SegGeometryStore has a static factory method Create for SegGeometry object This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment. @author Mikhail S. Dubrovin @see SegGeometry, SegGeometryCspad2x1V1 @anchor interface @par<interface> Interface Description @li Includes @code // #include "psalg/geometry/SegGeometry.hh" // already included under SegGeometryStore.h #include "psalg/geometry/SegGeometryStore.hh" typedef geometry::SegGeometry SG; @endcode @li Instatiation \n Classes like SegGeometryCspad2x1V1 containing implementation of the SegGeometry interface methods are self-sufficient. Factory method Create should returns the pointer to the SegGeometry object by specified segname parameter or returns 0-pointer if segname is not recognized (and not implemented). Code below instateates SegGeometry object using factory static method geometry::SegGeometryStore::Create() @code std::string source = "SENS2X1:V1"; or std::string source = "EPIX100:V1"; or std::string source = "PNCCD:V1"; geometry
::SegGeometry* segeo = geometry::SegGeometryStore::Create(segname);
|
inlinestatic |
Static factory method for SegGeometry of the segments defined by the name.
| [in] | segname | segment name |