rave is hosted by Hepforge, IPPP Durham
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.

Changes between Initial Version and Version 1 of RaveVertexingUsage


Ignore:
Timestamp:
Jun 20, 2007, 8:45:11 AM (18 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RaveVertexingUsage

    v1 v1  
     1{{{
     2#!cpp
     3* create factory with the standard homogenous rave::ConstantMagneticField,
     4  * 4 Tesla in "z". No material effects (because we use the "VacuumPropagator").
     5  * Default reconstruction method is "avr",
     6  * verbosity level is "0".
     7  */
     8  rave::VertexFactory factory ( rave::ConstantMagneticField(0.,0.,4.),
     9                                rave::VacuumPropagator(), "avr", 0 );
     10 
     11
     12 /* from "tracks" ( std::vector < rave::Track > ) create "vertices",
     13  * using the Multivertex "mvf" method "cutting" at sigma=3.0.
     14  * (I.e. a track is considered incompatible with a vertex if
     15  * the reduced distance > 3.0)
     16  */
     17  std::vector < rave::Vertex > vertices = factory.create( tracks, "mvf-sigmacut:3.0" );
     18
     19 /* We fit vertices again, this time using
     20  * the iterative adaptive fitter technique.
     21  * For the primary vertex we "cut the tracks" at sigma=3.0
     22  * all subsequent vertices have sigma=6.0.
     23  */
     24  std::vector < rave::Vertex > v2 = factory.create( tracks, "avr-primcut:3.0-seccut:6.0" );
     25
     26
     27}}}