1 #include "gearxml/PadRowLayout2DXML.h"
3 #include "gearxml/FixedPadSizeDiskLayoutXML.h"
4 #include "gearxml/FixedPadAngleDiskLayoutXML.h"
5 #include "gearxml/RectangularPadRowLayoutXML.h"
6 #include "gearxml/VersatileDiskRowLayoutXML.h"
7 #include "gear/PadRowLayout2D.h"
22 std::string typeName(
"UNKNOWN") ;
26 case PadRowLayout2D::FIXEDPADSIZEDISKLAYOUT:
27 typeName =
"FixedPadSizeDiskLayout" ;
break;
28 case PadRowLayout2D::FIXEDPADANGLEDISKLAYOUT:
29 typeName =
"FixedPadAngleDiskLayout" ;
break;
30 case PadRowLayout2D::RECTANGULARPADROWLAYOUT:
31 typeName =
"RectangularPadRowLayout" ;
break;
32 case PadRowLayout2D::VERSATILEDISKROWLAYOUT:
33 typeName =
"VersatileDiskRowLayout" ;
break;
45 static PadRowLayout2DXML::Map theMap ;
51 if( theMap.size() == 0 ) {
53 theMap[
"FixedPadSizeDiskLayout"] = & aFixedPadSizeDiskLayoutXML ;
54 theMap[
"FixedPadAngleDiskLayout"] = & aFixedPadAngleDiskLayoutXML ;
55 theMap[
"RectangularPadRowLayout"] = & aRectangularPadRowLayoutXML ;
56 theMap[
"VersatileDiskRowLayout"] = & aVersatileDiskRowLayoutXML ;
Abstract XML handler for RectangularPadRowLayoutXML.
Abstract description of a planar subdetector with pads (cells) that are positioned in rows (circular ...
static Map & map()
The map with available xml handler objects (PadRowLayout2DXML)
virtual int getPadLayoutImplType() const =0
The type of the row layout implementation: PadRowLayout2D.RECTANGULARPADROWLAYOUT, PadRowLayout2D.FIXEDPADSIZEDISKLAYOUT, PadRowLayout2D.FIXEDPADANGLEDISKLAYOUT or PadRowLayout2D.TPCMODULE.
Abstract XML handler for FixedPadAngleDiskLayoutXML.
static PadRowLayout2DXML * getHandler(const std::string &typeName)
Get handler for given type.
Abstract XML handler for FixedPadSizeDiskLayoutXML.
XML handler for VersatileDiskRowLayoutXML.
Abstract XML handler for PadRowLayout2DXML.