User Tools

Site Tools


dev:element_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:element_tutorial [2014/09/05 20:20] – [Write behavior method] tsmall1dev:element_tutorial [2014/09/17 20:00] (current) – [Create the C++ Compilation file] tsmall1
Line 27: Line 27:
  
 <code> <code>
-MFMv2/src/elements/src/Element_Creg.h+MFMv2/src/elements/src/Element_Creg.cpp
 </code> </code>
  
Line 57: Line 57:
 m_targetDensity(this, "density", "Target Density", m_targetDensity(this, "density", "Target Density",
                       "The Creg will try to fill this many spots in its event "                       "The Creg will try to fill this many spots in its event "
-                      "window with other Creg.", 0, 3, 45, 1)+                      "window with other Creg.", 0, 3, 41, 1)
 </code> </code>
  
Line 141: Line 141:
  
 If the number of Cregs is greater than the thresold, it will delete one of the elements that isn't a Creg. Otherwise, it will delete one that is a Creg. If the number of Cregs is greater than the thresold, it will delete one of the elements that isn't a Creg. Otherwise, it will delete one that is a Creg.
-===== Register Element with a Driver =====+ 
 +===== Register Element witn StdElement.inc =====
  
 Open: Open:
Line 149: Line 150:
 </code> </code>
  
-Add the line: +Put, at the end of the file:
 <code> <code>
 #include "Element_Creg.h" #include "Element_Creg.h"
 </code> </code>
  
-This lets the driver know that there is a Creg element to use.+This elemental include file is used by all drivers so they know about the elements to use.
  
-Next, open:+===== Register Element with a Driver ===== 
 + 
 +Open:
  
 <code> <code>
dev/element_tutorial.1409948434.txt.gz · Last modified: 2014/09/05 20:20 (external edit)