Newer
Older
TB_Chris / TbEvent / xml / .svn / text-base / TbCluster.xml.svn-base
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <!DOCTYPE gdd SYSTEM "gdd.dtd" >
  4. <gdd>
  5. <package name = "TbEvent">
  6. <class name = "TbCluster"
  7. id = "4511"
  8. author = "H. Schindler"
  9. desc = "Generic cluster object for testbeam analysis"
  10. serializers = "FALSE">
  11. <location name = "Default" place = "Rec/Tb/Clusters"/>
  12. <base name = "KeyedObject&lt;int&gt;"/>
  13. &KeyedObject;
  14. <import name = "Event/TbHit"/>
  15.  
  16. <constructor desc = 'Default constructor'
  17. initList = 'm_wx(1.), m_wy(1.), m_associated(false)'>
  18. <code>
  19. m_hits.reserve(10);
  20. </code>
  21. </constructor>
  22. <relation name = 'hits'
  23. type = 'LHCb::TbHit'
  24. desc = 'hits forming this cluster'
  25. multiplicity = 'm'/>
  26.  
  27. <attribute name = "x"
  28. desc = "global x"
  29. type = "double"/>
  30. <attribute name = "y"
  31. desc = "global y"
  32. type = "double"/>
  33. <attribute name = "xErr"
  34. desc = "global x error"
  35. type = "double"/>
  36. <attribute name = "yErr"
  37. desc = "global y error"
  38. type = "double"/>
  39. <attribute name = "z"
  40. desc = "global z"
  41. type = "double"/>
  42. <attribute name = "xloc"
  43. desc = "local x"
  44. type = "double"/>
  45. <attribute name = "yloc"
  46. desc = "local y"
  47. type = "double"/>
  48.  
  49. <attribute name = "wx"
  50. desc = "weight in global x"
  51. type = "double"/>
  52.  
  53. <attribute name = "wy"
  54. desc = "weight in global y"
  55. type = "double"/>
  56.  
  57. <attribute name = "ToT"
  58. desc = "time over threshold"
  59. type = "unsigned int"/>
  60.  
  61. <attribute name = "charge"
  62. desc = "total charge (in electrons)"
  63. type = "double"/>
  64. <attribute name = "plane"
  65. desc = "index of the telescope plane"
  66. type = "unsigned int"/>
  67. <attribute name = "time"
  68. type = "uint64_t"
  69. desc = "global timestamp"/>
  70.  
  71. <attribute name = "htime"
  72. type = "double"
  73. desc = "local timestamp in ns"/>
  74.  
  75. <attribute name = "cols"
  76. type = "unsigned int"
  77. desc = "number of columns covered by the cluster"/>
  78.  
  79. <attribute name = "rows"
  80. type = "unsigned int"
  81. desc = "number of rows covered by the cluster"/>
  82.  
  83. <attribute name = "associated"
  84. desc = "flag for whether the cluster is part of a track"
  85. type = "bool"
  86. setMeth = "FALSE"/>
  87. <method name = "clone"
  88. desc = "Clone the cluster without keeping the hits (you take ownership of the pointer)"
  89. type = "LHCb::TbCluster*"
  90. virtual = "TRUE"/>
  91.  
  92. <method name = "size"
  93. desc = "Return the cluster size"
  94. type = "unsigned int"
  95. const = "TRUE">
  96. <code>
  97. return m_hits.size();
  98. </code>
  99. </method>
  100. <method name = "setAssociated"
  101. desc = "Set the cluster and its hits to be associated to a track"
  102. argList = "const bool tracked">
  103. <code>
  104. m_associated = tracked;
  105. for (auto it = m_hits.begin(), end = m_hits.end(); it != end; ++it) {
  106. (*it)->setAssociated(tracked);
  107. }
  108. </code>
  109. </method>
  110.  
  111. </class>
  112. </package>
  113. </gdd>