Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DFDCSegment_factory Class Reference

class DFDCSegment_factory: definition for a JFactory that produces space points from pseudopoints. More...

#include <DFDCSegment_factory.h>

+ Inheritance diagram for DFDCSegment_factory:

Classes

struct  xyz_t
 

Public Member Functions

 DFDCSegment_factory ()
 DFDCSegment_factory::DFDCSegment_factory(): default constructor – initializes log file. More...
 
 ~DFDCSegment_factory ()
 DFDCSegment_factory::~DFDCSegment_factory(): default destructor – closes log file. More...
 
jerror_t FindSegments (vector< const DFDCPseudo * > &points)
 
jerror_t GetHelicalTrackPosition (double z, const DFDCSegment *segment, double &xpos, double &ypos)
 
jerror_t RiemannHelicalFit (vector< const DFDCPseudo * > &points)
 
jerror_t RiemannCircleFit (vector< const DFDCPseudo * > &points, DMatrix &CRPhi)
 
jerror_t RiemannLineFit (vector< const DFDCPseudo * > &points, DMatrix &CR, vector< xyz_t > &XYZ)
 
jerror_t UpdatePositionsAndCovariance (unsigned int n, double r1sq, vector< xyz_t > &XYZ, DMatrix &CRPhi, DMatrix &CR)
 
double GetRotationSense (unsigned int n, vector< xyz_t > &XYZ, DMatrix &CR, DMatrix &CRPhi, vector< const DFDCPseudo * > &points)
 
jerror_t CircleFit (vector< const DFDCPseudo * > &points)
 
jerror_t LineFit (vector< const DFDCPseudo * > &points)
 
double ComputeCircleChiSq (vector< const DFDCPseudo * > &neighbors)
 
void FillSegmentData (DFDCSegment *segment)
 

Protected Member Functions

jerror_t brun (JEventLoop *eventLoop, int32_t runnumber)
 DFDCSegment_factory::brun(): More...
 
jerror_t evnt (JEventLoop *eventLoop, uint64_t eventNo)
 DFDCSegment_factory::evnt(): this is the place that finds track segments and converts pseudopoints into space points. More...
 

Private Attributes

JStreamLog * _log
 
double N [3]
 
double varN [3][3]
 
double dist_to_origin
 
double xc
 
double yc
 
double rc
 
double xavg [3]
 
double var_avg
 
double tanl
 
double z0
 
double zvertex
 
double D
 
double phi0
 
double var_tanl
 
double Phi1
 
double rotation_sense
 
unsigned int ref_plane
 
double RotationSenseToCharge
 
double chisq
 
int Ndof
 
const DMagneticFieldMapbfield
 
const DLorentzDeflectionslorentz_def
 
double TARGET_Z
 
double BEAM_VARIANCE
 
int DEBUG_LEVEL
 
int myeventno
 

Detailed Description

class DFDCSegment_factory: definition for a JFactory that produces space points from pseudopoints.

Definition at line 35 of file DFDCSegment_factory.h.

Constructor & Destructor Documentation

DFDCSegment_factory::DFDCSegment_factory ( )

DFDCSegment_factory::DFDCSegment_factory(): default constructor – initializes log file.

Definition at line 49 of file DFDCSegment_factory.cc.

DFDCSegment_factory::~DFDCSegment_factory ( )

DFDCSegment_factory::~DFDCSegment_factory(): default destructor – closes log file.

Definition at line 59 of file DFDCSegment_factory.cc.

Member Function Documentation

jerror_t DFDCSegment_factory::brun ( JEventLoop *  eventLoop,
int32_t  runnumber 
)
protected

DFDCSegment_factory::brun():

DFDCSegment_factory::brun(): Initialization: read in deflection map, get magnetic field map.

Definition at line 66 of file DFDCSegment_factory.cc.

References dapp, DApplication::GetBfield(), DMagneticFieldMap::GetBz(), DApplication::GetDGeometry(), and DGeometry::GetTargetZ().

jerror_t DFDCSegment_factory::CircleFit ( vector< const DFDCPseudo * > &  points)

Definition at line 946 of file DFDCSegment_factory.cc.

References alpha, sqrt(), x, DFDCPseudo::xy, and y.

double DFDCSegment_factory::ComputeCircleChiSq ( vector< const DFDCPseudo * > &  neighbors)

Definition at line 975 of file DFDCSegment_factory.cc.

References sin().

jerror_t DFDCSegment_factory::evnt ( JEventLoop *  eventLoop,
uint64_t  eventNo 
)
protected

DFDCSegment_factory::evnt(): this is the place that finds track segments and converts pseudopoints into space points.

DFDCSegment_factory::evnt(): Routine where pseudopoints are combined into track segments.

Definition at line 96 of file DFDCSegment_factory.cc.

References DFDCSegment_package_cmp(), and size.

jerror_t DFDCSegment_factory::GetHelicalTrackPosition ( double  z,
const DFDCSegment segment,
double &  xpos,
double &  ypos 
)
double DFDCSegment_factory::GetRotationSense ( unsigned int  n,
vector< xyz_t > &  XYZ,
DMatrix CR,
DMatrix CRPhi,
vector< const DFDCPseudo * > &  points 
)

Definition at line 844 of file DFDCSegment_factory.cc.

References sin().

jerror_t DFDCSegment_factory::LineFit ( vector< const DFDCPseudo * > &  points)

Definition at line 885 of file DFDCSegment_factory.cc.

References EPS, and sin().

jerror_t DFDCSegment_factory::RiemannCircleFit ( vector< const DFDCPseudo * > &  points,
DMatrix CRPhi 
)

Definition at line 339 of file DFDCSegment_factory.cc.

References B0, ONE_THIRD, sin(), sqrt(), SQRT3, temp, and X.

jerror_t DFDCSegment_factory::RiemannHelicalFit ( vector< const DFDCPseudo * > &  points)

Definition at line 456 of file DFDCSegment_factory.cc.

References _DBG_, sin(), and u.

jerror_t DFDCSegment_factory::RiemannLineFit ( vector< const DFDCPseudo * > &  points,
DMatrix CR,
vector< xyz_t > &  XYZ 
)

Definition at line 128 of file DFDCSegment_factory.cc.

References EPS, sqrt(), and temp.

jerror_t DFDCSegment_factory::UpdatePositionsAndCovariance ( unsigned int  n,
double  r1sq,
vector< xyz_t > &  XYZ,
DMatrix CRPhi,
DMatrix CR 
)

Definition at line 240 of file DFDCSegment_factory.cc.

References S, sin(), and sqrt().

Member Data Documentation

JStreamLog* DFDCSegment_factory::_log
private

Definition at line 90 of file DFDCSegment_factory.h.

double DFDCSegment_factory::BEAM_VARIANCE
private

Definition at line 111 of file DFDCSegment_factory.h.

const DMagneticFieldMap* DFDCSegment_factory::bfield
private

Definition at line 107 of file DFDCSegment_factory.h.

double DFDCSegment_factory::chisq
private

Definition at line 104 of file DFDCSegment_factory.h.

double DFDCSegment_factory::D
private

Definition at line 98 of file DFDCSegment_factory.h.

int DFDCSegment_factory::DEBUG_LEVEL
private

Definition at line 112 of file DFDCSegment_factory.h.

double DFDCSegment_factory::dist_to_origin
private

Definition at line 94 of file DFDCSegment_factory.h.

const DLorentzDeflections* DFDCSegment_factory::lorentz_def
private

Definition at line 108 of file DFDCSegment_factory.h.

int DFDCSegment_factory::myeventno
private

Definition at line 114 of file DFDCSegment_factory.h.

double DFDCSegment_factory::N[3]
private

Definition at line 92 of file DFDCSegment_factory.h.

int DFDCSegment_factory::Ndof
private

Definition at line 105 of file DFDCSegment_factory.h.

double DFDCSegment_factory::phi0
private

Definition at line 98 of file DFDCSegment_factory.h.

double DFDCSegment_factory::Phi1
private

Definition at line 99 of file DFDCSegment_factory.h.

double DFDCSegment_factory::rc
private

Definition at line 94 of file DFDCSegment_factory.h.

unsigned int DFDCSegment_factory::ref_plane
private

Definition at line 101 of file DFDCSegment_factory.h.

double DFDCSegment_factory::rotation_sense
private

Definition at line 100 of file DFDCSegment_factory.h.

double DFDCSegment_factory::RotationSenseToCharge
private

Definition at line 102 of file DFDCSegment_factory.h.

double DFDCSegment_factory::tanl
private

Definition at line 98 of file DFDCSegment_factory.h.

double DFDCSegment_factory::TARGET_Z
private

Definition at line 111 of file DFDCSegment_factory.h.

double DFDCSegment_factory::var_avg
private

Definition at line 95 of file DFDCSegment_factory.h.

double DFDCSegment_factory::var_tanl
private

Definition at line 99 of file DFDCSegment_factory.h.

double DFDCSegment_factory::varN[3][3]
private

Definition at line 93 of file DFDCSegment_factory.h.

double DFDCSegment_factory::xavg[3]
private

Definition at line 95 of file DFDCSegment_factory.h.

double DFDCSegment_factory::xc
private

Definition at line 94 of file DFDCSegment_factory.h.

double DFDCSegment_factory::yc
private

Definition at line 94 of file DFDCSegment_factory.h.

double DFDCSegment_factory::z0
private

Definition at line 98 of file DFDCSegment_factory.h.

double DFDCSegment_factory::zvertex
private

Definition at line 98 of file DFDCSegment_factory.h.


The documentation for this class was generated from the following files: