close
Warning:
Can't synchronize with repository "(default)" (/hepforge/svn/rave does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
May 15, 2007, 2:16:58 PM (18 years ago)
- Author:
-
anonymous
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v1
|
|
| 1 | = Using Rave = |
| 2 | |
| 3 | == Compiling against rave: == |
| 4 | {{{ |
| 5 | pkg-config rave --libs --cflags |
| 6 | }}} |
| 7 | |
| 8 | |
| 9 | |
| 10 | == Using rave: == |
| 11 | {{{ |
| 12 | #!cpp |
| 13 | /* create factory with your own implementation of MagneticField, |
| 14 | * and Propagator. Default reconstruction method is "method", |
| 15 | * verbosity level is "verbosity". |
| 16 | */ |
| 17 | rave::VertexFactory factory ( MyMagneticField(), MyPropagator(), method, verbosity ); |
| 18 | |
| 19 | |
| 20 | /* from "tracks" ( std::vector < rave::Track > ) create "vertices", |
| 21 | * using the method defined in the constructor of the factory. |
| 22 | */ |
| 23 | std::vector < rave::Vertex > vertices = factory.create( tracks ); |
| 24 | }}} |
| 25 | |