Warning, /DD4hep/DDCore/include/Parsers/detail/ChildValue.imp is written in an unsupported language. File is not indexed.
0001 //==========================================================================
0002 // AIDA Detector description implementation
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author : M.Frank
0011 //
0012 //==========================================================================
0013
0014 /**
0015 * Note: Do NEVER include this file directly!
0016 *
0017 * Use the specific include files in the XML or JSON directory!
0018 * Also NO header guards!
0019 */
0020
0021 XML_CHILDVALUE_ACCESSOR(int, id)
0022 XML_CHILDVALUE_ACCESSOR_INT(id)
0023 XML_CHILDVALUE_ACCESSOR(bool, combineHits)
0024
0025 XML_CHILDVALUE_ACCESSOR(double, x)
0026 XML_CHILDVALUE_ACCESSOR_DOUBLE(x)
0027 XML_CHILDVALUE_ACCESSOR(double, X)
0028 XML_CHILDVALUE_ACCESSOR(double, dx)
0029 XML_CHILDVALUE_ACCESSOR_DOUBLE(dx)
0030 XML_CHILDVALUE_ACCESSOR(double, x0)
0031 XML_CHILDVALUE_ACCESSOR(double, x1)
0032 XML_CHILDVALUE_ACCESSOR(double, x2)
0033 XML_CHILDVALUE_ACCESSOR(double, xmin)
0034 XML_CHILDVALUE_ACCESSOR(double, xmax)
0035 XML_CHILDVALUE_ACCESSOR(double, x_offset)
0036 XML_CHILDVALUE_ACCESSOR(double, dim_x)
0037
0038 XML_CHILDVALUE_ACCESSOR(double, y)
0039 XML_CHILDVALUE_ACCESSOR_DOUBLE(y)
0040 XML_CHILDVALUE_ACCESSOR(double, Y)
0041 XML_CHILDVALUE_ACCESSOR(double, dy)
0042 XML_CHILDVALUE_ACCESSOR_DOUBLE(dy)
0043 XML_CHILDVALUE_ACCESSOR(double, y0)
0044 XML_CHILDVALUE_ACCESSOR(double, y1)
0045 XML_CHILDVALUE_ACCESSOR(double, y2)
0046 XML_CHILDVALUE_ACCESSOR(double, ymin)
0047 XML_CHILDVALUE_ACCESSOR(double, ymax)
0048 XML_CHILDVALUE_ACCESSOR(double, y_offset)
0049 XML_CHILDVALUE_ACCESSOR(double, dim_y)
0050
0051 XML_CHILDVALUE_ACCESSOR(double, z)
0052 XML_CHILDVALUE_ACCESSOR_DOUBLE(z)
0053 XML_CHILDVALUE_ACCESSOR(double, Z)
0054 XML_CHILDVALUE_ACCESSOR(double, dz)
0055 XML_CHILDVALUE_ACCESSOR_DOUBLE(dz)
0056 XML_CHILDVALUE_ACCESSOR(double, z0)
0057 XML_CHILDVALUE_ACCESSOR(double, z1)
0058 XML_CHILDVALUE_ACCESSOR(double, z2)
0059 XML_CHILDVALUE_ACCESSOR(double, zmin)
0060 XML_CHILDVALUE_ACCESSOR(double, zmax)
0061 XML_CHILDVALUE_ACCESSOR(double, z_offset)
0062 XML_CHILDVALUE_ACCESSOR(double, dim_z)
0063 XML_CHILDVALUE_ACCESSOR(double, outer_z)
0064 XML_CHILDVALUE_ACCESSOR(double, inner_z)
0065
0066 XML_CHILDVALUE_ACCESSOR(double, b)
0067 XML_CHILDVALUE_ACCESSOR(double, g)
0068 XML_CHILDVALUE_ACCESSOR(double, B)
0069 XML_CHILDVALUE_ACCESSOR(double, G)
0070 XML_CHILDVALUE_ACCESSOR(double, r)
0071 XML_CHILDVALUE_ACCESSOR_DOUBLE(r)
0072 XML_CHILDVALUE_ACCESSOR(double, R)
0073 XML_CHILDVALUE_ACCESSOR(double, dr)
0074 XML_CHILDVALUE_ACCESSOR(double, rmin)
0075 XML_CHILDVALUE_ACCESSOR(double, rmax)
0076 XML_CHILDVALUE_ACCESSOR(double, rmin1)
0077 XML_CHILDVALUE_ACCESSOR(double, rmax1)
0078 XML_CHILDVALUE_ACCESSOR(double, rmin2)
0079 XML_CHILDVALUE_ACCESSOR(double, rmax2)
0080 XML_CHILDVALUE_ACCESSOR(double, radius)
0081 XML_CHILDVALUE_ACCESSOR(double, outer_r)
0082 XML_CHILDVALUE_ACCESSOR(double, distance)
0083 XML_CHILDVALUE_ACCESSOR(double, outer_radius)
0084 XML_CHILDVALUE_ACCESSOR(double, inner_r)
0085 XML_CHILDVALUE_ACCESSOR(double, inner_radius)
0086
0087 XML_CHILDVALUE_ACCESSOR(double, angle)
0088 XML_CHILDVALUE_ACCESSOR(double, alpha)
0089 XML_CHILDVALUE_ACCESSOR(double, beta)
0090 XML_CHILDVALUE_ACCESSOR(double, gamma)
0091 XML_CHILDVALUE_ACCESSOR(double, delta)
0092 XML_CHILDVALUE_ACCESSOR(double, epsilon)
0093 XML_CHILDVALUE_ACCESSOR(double, theta)
0094 XML_CHILDVALUE_ACCESSOR(int, thetaBins)
0095 XML_CHILDVALUE_ACCESSOR(double, psi)
0096 XML_CHILDVALUE_ACCESSOR(double, phi)
0097 XML_CHILDVALUE_ACCESSOR(int, phiBins)
0098 XML_CHILDVALUE_ACCESSOR(double, phi0)
0099 XML_CHILDVALUE_ACCESSOR(double, phi0_offset)
0100 XML_CHILDVALUE_ACCESSOR_DOUBLE(phi0)
0101 XML_CHILDVALUE_ACCESSOR(double, phi1)
0102 XML_CHILDVALUE_ACCESSOR_DOUBLE(phi1)
0103 XML_CHILDVALUE_ACCESSOR(double, deltaphi)
0104
0105 XML_CHILDVALUE_ACCESSOR(double, length)
0106 XML_CHILDVALUE_ACCESSOR(double, width)
0107 XML_CHILDVALUE_ACCESSOR(double, height)
0108 XML_CHILDVALUE_ACCESSOR(double, depth)
0109 XML_CHILDVALUE_ACCESSOR(double, offset)
0110 XML_CHILDVALUE_ACCESSOR_DOUBLE(offset)
0111 XML_CHILDVALUE_ACCESSOR(double, crossing_angle)
0112 XML_CHILDVALUE_ACCESSOR(double, incoming_r)
0113 XML_CHILDVALUE_ACCESSOR(double, outgoing_r)
0114 XML_CHILDVALUE_ACCESSOR(double, phi_size_max)
0115 XML_CHILDVALUE_ACCESSOR(double, r_size)
0116
0117 XML_CHILDVALUE_ACCESSOR(double, gap)
0118 XML_CHILDVALUE_ACCESSOR(double, z_length)
0119 XML_CHILDVALUE_ACCESSOR(double, zhalf)
0120 XML_CHILDVALUE_ACCESSOR(double, phi_tilt)
0121 XML_CHILDVALUE_ACCESSOR(int, nphi)
0122 XML_CHILDVALUE_ACCESSOR(double, rc)
0123 XML_CHILDVALUE_ACCESSOR(int, nz)
0124 XML_CHILDVALUE_ACCESSOR(double, zstart)
0125 XML_CHILDVALUE_ACCESSOR(double, start)
0126 XML_CHILDVALUE_ACCESSOR(double, end)
0127 XML_CHILDVALUE_ACCESSOR(double, thickness)
0128 XML_CHILDVALUE_ACCESSOR(int, numsides)
0129 XML_CHILDVALUE_ACCESSOR(int, nsides)
0130 XML_CHILDVALUE_ACCESSOR(int, nsides_inner)
0131 XML_CHILDVALUE_ACCESSOR(int, nsides_outer)
0132 XML_CHILDVALUE_ACCESSOR(int, number)
0133 XML_CHILDVALUE_ACCESSOR(int, repeat)
0134 XML_CHILDVALUE_ACCESSOR(bool, reflect)
0135 XML_CHILDVALUE_ACCESSOR_BOOL(reflect)
0136
0137 XML_CHILDVALUE_ACCESSOR(int, nmodules)
0138 XML_CHILDVALUE_ACCESSOR(int, nModules)
0139 XML_CHILDVALUE_ACCESSOR(int, RowID)
0140 XML_CHILDVALUE_ACCESSOR(int, nPads)
0141 XML_CHILDVALUE_ACCESSOR(double, moduleHeight)
0142 XML_CHILDVALUE_ACCESSOR(double, moduleWidth)
0143 XML_CHILDVALUE_ACCESSOR(double, modulePosX)
0144 XML_CHILDVALUE_ACCESSOR(double, modulePosY)
0145 XML_CHILDVALUE_ACCESSOR(double, modulePitch)
0146 XML_CHILDVALUE_ACCESSOR(double, rowPitch)
0147 XML_CHILDVALUE_ACCESSOR(double, padPitch)
0148 XML_CHILDVALUE_ACCESSOR(double, rowHeight)
0149 XML_CHILDVALUE_ACCESSOR(double, inner_field)
0150 XML_CHILDVALUE_ACCESSOR(double, outer_field)
0151 XML_CHILDVALUE_ACCESSOR(int, type)
0152
0153 XML_CHILDVALUE_ACCESSOR(bool, visible)
0154 XML_CHILDVALUE_ACCESSOR(bool, show_daughters)
0155 #if 0
0156 XML_CHILDVALUE_ACCESSOR(double,)
0157 XML_CHILDVALUE_ACCESSOR(double,)
0158 XML_CHILDVALUE_ACCESSOR(double,)
0159 XML_CHILDVALUE_ACCESSOR(double,)
0160 #endif
0161
0162
0163 std::string ChildValue::padType() const {
0164 return XML_CHILDVALUE_childValue(pads,std::string);
0165 }
0166
0167 std::string ChildValue::nameStr() const {
0168 return XML_CHILDVALUE_childValue(name,std::string);
0169 }
0170
0171 std::string ChildValue::refStr() const {
0172 return XML_CHILDVALUE_childValue(ref,std::string);
0173 }
0174
0175 std::string ChildValue::typeStr() const {
0176 return XML_CHILDVALUE_childValue(type,std::string);
0177 }
0178
0179 /// Access "value" attribute as STL std::string
0180 std::string ChildValue::valueStr() const {
0181 return XML_CHILDVALUE_childValue(value,std::string);
0182 }
0183
0184 std::string ChildValue::regionStr() const {
0185 XML_CHILDVALUE_childValueDefault(region,std::string,std::string());
0186 }
0187
0188 std::string ChildValue::limitsStr() const {
0189 XML_CHILDVALUE_childValueDefault(limits,std::string,std::string());
0190 }
0191
0192 std::string ChildValue::visStr() const {
0193 XML_CHILDVALUE_childValueDefault(vis,std::string,std::string());
0194 }
0195
0196 std::string ChildValue::readoutStr() const {
0197 XML_CHILDVALUE_childValueDefault(readout,std::string,std::string());
0198 }
0199
0200 std::string ChildValue::moduleStr() const {
0201 XML_CHILDVALUE_childValueDefault(module,std::string,std::string());
0202 }