EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
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>
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) |
Minimum program to demonstrate the usage of PHGenFit.
Definition in file minimumTestPHGenFit.cc.
#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
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().
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().
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().