EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
minimumTestPHGenFit.cc File Reference

Minimum program to demonstrate the usage of PHGenFit. More...

#include <vector>
#include <TVector3.h>
#include <TMatrixDSym.h>
#include <GenFit/AbsTrackRep.h>
#include <GenFit/RKTrackRep.h>
#include <GenFit/StateOnPlane.h>
#include <phgenfit/Fitter.h>
#include <phgenfit/Track.h>
#include <phgenfit/Measurement.h>
#include <phgenfit/PlanarMeasurement.h>
#include <phgenfit/SpacepointMeasurement.h>
#include <phfield/PHFieldUtility.h>
+ Include dependency graph for minimumTestPHGenFit.cc:

Go to the source code of this file.

Macros

#define LogDEBUG   std::cout<<"DEBUG: "<<__LINE__<<"\n"
 

Functions

void get_seed (TVector3 &seed_pos, TVector3 &seed_mom, TMatrixDSym &seed_cov)
 
std::vector< TVector3 > get_raw_measurements ()
 
int main (int argc, char **argv)
 

Detailed Description

Minimum program to demonstrate the usage of PHGenFit.

Author
Haiwang Yu yuhw@.nosp@m.nmsu.nosp@m..edu

Definition in file minimumTestPHGenFit.cc.

Macro Definition Documentation

#define LogDEBUG   std::cout<<"DEBUG: "<<__LINE__<<"\n"

Definition at line 28 of file minimumTestPHGenFit.cc.

View newest version in sPHENIX GitHub at line 28 of file minimumTestPHGenFit.cc

Function Documentation

std::vector<TVector3> get_raw_measurements ( )

Definition at line 37 of file minimumTestPHGenFit.cc.

View newest version in sPHENIX GitHub at line 37 of file minimumTestPHGenFit.cc

Referenced by main().

+ Here is the caller graph for this function:

void get_seed ( TVector3 &  seed_pos,
TVector3 &  seed_mom,
TMatrixDSym &  seed_cov 
)

Definition at line 30 of file minimumTestPHGenFit.cc.

View newest version in sPHENIX GitHub at line 30 of file minimumTestPHGenFit.cc

Referenced by main().

+ Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Initiallize Geometry, Field, Fitter

Build TrackRep from particle assumption

Initiallize track with seed from pattern recognition

Create measurements

Add measurements to track

Fit the track

Extrapolate to beam line

Event display, uncomment to use

Comment off if want to keep event display.

Definition at line 47 of file minimumTestPHGenFit.cc.

View newest version in sPHENIX GitHub at line 47 of file minimumTestPHGenFit.cc

References PHGenFit::Track::addMeasurements(), PHFieldUtility::BuildFieldMap(), PHFieldUtility::DefaultFieldConfig(), PHGenFit::Track::extrapolateToCylinder(), get_raw_measurements(), get_seed(), n, pid, pos(), genfit::MeasuredStateOnPlane::Print(), and PHGenFit::Fitter::processTrack().

+ Here is the call graph for this function: