EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
main.cc File Reference
#include <iostream>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
#include <AbsFinitePlane.h>
#include <AbsFitterInfo.h>
#include <AbsMeasurement.h>
#include <AbsTrackRep.h>
#include <ConstField.h>
#include <DetPlane.h>
#include <Exception.h>
#include <FieldManager.h>
#include <KalmanFittedStateOnPlane.h>
#include <KalmanFitterInfo.h>
#include <MeasuredStateOnPlane.h>
#include <MeasurementOnPlane.h>
#include <PlanarMeasurement.h>
#include <ProlateSpacepointMeasurement.h>
#include <RectangularFinitePlane.h>
#include <ReferenceStateOnPlane.h>
#include <SharedPlanePtr.h>
#include <SpacepointMeasurement.h>
#include <StateOnPlane.h>
#include <Tools.h>
#include <TrackCand.h>
#include <TrackCandHit.h>
#include <Track.h>
#include <TrackPoint.h>
#include <WireMeasurement.h>
#include <WirePointMeasurement.h>
#include <MaterialEffects.h>
#include <RKTools.h>
#include <RKTrackRep.h>
#include <StepLimits.h>
#include <TGeoMaterialInterface.h>
#include <TApplication.h>
#include <TCanvas.h>
#include <TDatabasePDG.h>
#include <TEveManager.h>
#include <TGeoManager.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TRandom.h>
#include <TStyle.h>
#include <TVector3.h>
#include <vector>
#include <map>
#include <stdio.h>
#include <TROOT.h>
#include <TFile.h>
#include <TTree.h>
#include <TMath.h>
#include <TString.h>

Go to the source code of this file.

Classes

struct  TestCase
 

Enumerations

enum  e_testStatus { kPassed, kFailed, kException }
 

Functions

void handler (int sig)
 
int randomPdg ()
 
int randomSign ()
 
e_testStatus compareMatrices (const TMatrixTBase< double > &A, const TMatrixTBase< double > &B, double maxRelErr)
 
e_testStatus isCovMatrix (TMatrixTBase< double > &cov)
 
e_testStatus checkSetGetPosMom (bool writeHisto=false)
 
e_testStatus compareForthBackExtrapolation (bool writeHisto=false)
 
e_testStatus compareForthBackJacNoise (bool writeHisto=false)
 
e_testStatus checkStopAtBoundary (bool writeHisto=false)
 
e_testStatus checkErrorPropagation (bool writeHisto=false)
 
e_testStatus checkExtrapolateToLine (bool writeHisto=false)
 
e_testStatus checkExtrapolateToPoint (bool writeHisto=false)
 
e_testStatus checkExtrapolateToCylinder (bool writeHisto=false)
 
e_testStatus checkExtrapolateToSphere (bool writeHisto=false)
 
e_testStatus checkExtrapolateBy (bool writeHisto=false)
 
int main ()
 

Variables

constexpr bool verbose = false
 

Enumeration Type Documentation

Enumerator:
kPassed 
kFailed 
kException 

Definition at line 65 of file main.cc.

View newest version in sPHENIX GitHub at line 65 of file main.cc

Function Documentation

e_testStatus checkErrorPropagation ( bool  writeHisto = false)

Definition at line 695 of file main.cc.

View newest version in sPHENIX GitHub at line 695 of file main.cc

References Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPlane(), genfit::MeasuredStateOnPlane::getCov(), genfit::StateOnPlane::getPlane(), isCovMatrix(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, Acts::PrimitivesView3DTest::plane, pos(), genfit::MeasuredStateOnPlane::Print(), randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus checkExtrapolateBy ( bool  writeHisto = false)

Definition at line 1000 of file main.cc.

View newest version in sPHENIX GitHub at line 1000 of file main.cc

References Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateBy(), genfit::StateOnPlane::getPlane(), genfit::StateOnPlane::getPos(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, pos(), genfit::StateOnPlane::Print(), randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), Acts::Test::step(), and verbose.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus checkExtrapolateToCylinder ( bool  writeHisto = false)

Definition at line 870 of file main.cc.

View newest version in sPHENIX GitHub at line 870 of file main.cc

References Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToCylinder(), genfit::StateOnPlane::getPlane(), genfit::AbsTrackRep::getPos(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, pos(), genfit::StateOnPlane::Print(), G4BECAL::radius, randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), t, verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus checkExtrapolateToLine ( bool  writeHisto = false)

Definition at line 749 of file main.cc.

View newest version in sPHENIX GitHub at line 749 of file main.cc

References Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToLine(), genfit::AbsTrackRep::getMom(), genfit::StateOnPlane::getPlane(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, pos(), genfit::StateOnPlane::Print(), randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus checkExtrapolateToPoint ( bool  writeHisto = false)

Definition at line 812 of file main.cc.

View newest version in sPHENIX GitHub at line 812 of file main.cc

References Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPoint(), genfit::AbsTrackRep::getMom(), genfit::StateOnPlane::getPlane(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, pos(), genfit::StateOnPlane::Print(), randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus checkExtrapolateToSphere ( bool  writeHisto = false)

Definition at line 938 of file main.cc.

View newest version in sPHENIX GitHub at line 938 of file main.cc

References Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToSphere(), genfit::StateOnPlane::getPlane(), genfit::AbsTrackRep::getPos(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, pos(), genfit::StateOnPlane::Print(), G4BECAL::radius, randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus checkSetGetPosMom ( bool  writeHisto = false)

Definition at line 181 of file main.cc.

View newest version in sPHENIX GitHub at line 181 of file main.cc

References genfit::AbsTrackRep::getMom(), genfit::StateOnPlane::getPlane(), genfit::AbsTrackRep::getPos(), kFailed, kPassed, charm_jet_coverage::mom, pdg, Acts::PrimitivesView3DTest::plane, pos(), genfit::StateOnPlane::Print(), randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), Acts::UnitConstants::u, v, and verbose.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus checkStopAtBoundary ( bool  writeHisto = false)

Definition at line 635 of file main.cc.

View newest version in sPHENIX GitHub at line 635 of file main.cc

References Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPlane(), genfit::StateOnPlane::getPlane(), genfit::AbsTrackRep::getPos(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, Acts::PrimitivesView3DTest::plane, pos(), genfit::StateOnPlane::Print(), randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus compareForthBackExtrapolation ( bool  writeHisto = false)

Definition at line 252 of file main.cc.

View newest version in sPHENIX GitHub at line 252 of file main.cc

References kdfinder::abs(), Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPlane(), genfit::AbsTrackRep::getMom(), genfit::AbsTrackRep::getPos(), kException, kFailed, kPassed, mass, charm_jet_coverage::mom, part, pdg, Acts::PrimitivesView3DTest::plane, pos(), genfit::StateOnPlane::Print(), randomPdg(), randomSign(), genfit::AbsTrackRep::setPosMom(), verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus compareForthBackJacNoise ( bool  writeHisto = false)

Definition at line 413 of file main.cc.

View newest version in sPHENIX GitHub at line 413 of file main.cc

References genfit::AbsTrackRep::calcJacobianNumerically(), compareMatrices(), Acts::UnitConstants::e, genfit::AbsTrackRep::extrapolateToPlane(), genfit::AbsTrackRep::getBackwardJacobianAndNoise(), genfit::MeasuredStateOnPlane::getCov(), genfit::AbsTrackRep::getForwardJacobianAndNoise(), genfit::MaterialEffects::getInstance(), genfit::StateOnPlane::getState(), isCovMatrix(), kException, kFailed, kPassed, charm_jet_coverage::mom, pdg, Acts::PrimitivesView3DTest::plane, pos(), Print(), randomPdg(), randomSign(), genfit::DetPlane::rotate(), genfit::MaterialEffects::setNoEffects(), genfit::AbsTrackRep::setPosMom(), verbose, and genfit::Exception::what().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

e_testStatus compareMatrices ( const TMatrixTBase< double > &  A,
const TMatrixTBase< double > &  B,
double  maxRelErr 
)

Definition at line 119 of file main.cc.

View newest version in sPHENIX GitHub at line 119 of file main.cc

References kFailed, kPassed, max, and verbose.

Referenced by compareForthBackJacNoise().

+ Here is the caller graph for this function:

void handler ( int  sig)

Definition at line 73 of file main.cc.

View newest version in sPHENIX GitHub at line 73 of file main.cc

References exit().

+ Here is the call graph for this function:

e_testStatus isCovMatrix ( TMatrixTBase< double > &  cov)

Definition at line 150 of file main.cc.

View newest version in sPHENIX GitHub at line 150 of file main.cc

References Acts::Test::cov, kFailed, kPassed, and verbose.

Referenced by checkErrorPropagation(), and compareForthBackJacNoise().

+ Here is the caller graph for this function:

int main ( void  )
int randomPdg ( )

Definition at line 86 of file main.cc.

View newest version in sPHENIX GitHub at line 86 of file main.cc

References pdg.

int randomSign ( )

Definition at line 112 of file main.cc.

View newest version in sPHENIX GitHub at line 112 of file main.cc

Variable Documentation

constexpr bool verbose = false

Definition at line 71 of file main.cc.

View newest version in sPHENIX GitHub at line 71 of file main.cc