Lattice/Lattice.h
This file declares the Lattice classes and interface.
#include "Lattice/Lattice.h"
YourLibrary/YourLinkData.h
This file is required only if you don't want to use DefaultLinkData, which is defined in Lattice.h (it's empty). You may define any data members and interface you want in YourLinkData. See this example:
TestLattice/TestLattice/LinkData_RawCal.hYou tell Lattice what link data you are using in the constructor and in the instantiation file, T_Lattice.cc (see below).
YourLibrary/Instantiate/T_Lattice.cc
This file instantiates the Lattice templates. Look at the example (also see Troubleshooting):
TestLattice/Instantiate/T_Lattice.ccYou only need to modify the typedefs. They should look like this:
typedef YourLeftClass _left_lattice_type_; typedef YourRightClass _right_lattice_type_; typedef YourLinkData _linkdata_type_;If you don't define your own link data, you must specify the default class:
typedef DefaultLinkData _linkdata_type_;
If you want to create two different Lattices in the same library (e.g., with different LinkData), you must create a second version of the file. The name isn't important, but it should be descriptive.
email: Jon J. Thaler $Id: LatticeFiles.html,v
1.1 1999/07/18 23:00:35 jjt Exp $