QwAnalysis
QwRayTracer.cc File Reference

Raytrace in magnetic field to bridging R2/R3 partial tracks. More...

#include <cstdlib>
#include "QwLog.h"
#include "QwUnits.h"
#include "QwMagneticField.h"
#include "QwTrack.h"
#include "QwRayTracer.h"
+ Include dependency graph for QwRayTracer.cc:

Go to the source code of this file.

Macros

#define MAX_ITERATIONS_NEWTON   10
 
#define MAX_ITERATIONS_RUNGEKUTTA   5000
 

Detailed Description

Raytrace in magnetic field to bridging R2/R3 partial tracks.

Author
Jie Pan jpan@.nosp@m.jlab.nosp@m..org
Wouter Deconinck wdcon.nosp@m.inc@.nosp@m.mit.e.nosp@m.du
Date
Thu Nov 26 12:27:10 CST 2009

Firstly, unreasonable bridging candidates will be filtered out, others which can pass through the filter will be matched in a look-up table. If there is a match, the momentum will be determined by interpolation. In case there is no match in the look-up table, the bridging candidates will then be sent into a shooting routine for bridging and momentum determination. The Newton-Raphson method is used in the shooting routine, and the 4'th order Runge-Kutta method is used for integrating the equations of motion for electrons in the QTOR magnetic field.

Definition in file QwRayTracer.cc.

Macro Definition Documentation

#define MAX_ITERATIONS_NEWTON   10

Definition at line 35 of file QwRayTracer.cc.

Referenced by QwRayTracer::Bridge().

#define MAX_ITERATIONS_RUNGEKUTTA   5000

Definition at line 37 of file QwRayTracer.cc.

Referenced by QwRayTracer::IntegrateRK().