/****************************************************************************** * Header file for workload Track Fitting based on Kalman Filter. * Common classes and prodecure defined here. * * $Header$ * ******************************************************************************/ /// /// @primary authors: S.Gorbunov; I.Kisel /// @ authors: H.Pabst et al. (Intel); M.Zyzak; I.Kulakov /// #ifndef __CT_EXAMPLE_TRACK_FITTING_UTIL_H_ #define __CT_EXAMPLE_TRACK_FITTING_UTIL_H_ #define SINGLE_PRECISION #if defined(PERF_REGRESSION) && ( !defined(SMALL_DATA_SET) && !defined(BIG_DATA_SET) && !defined(SAMPLE_DATA_SET) && !defined(MIC_DATA_SET) ) #define SMALL_DATA_SET #endif #if ( defined(SMALL_DATA_SET) || defined(BIG_DATA_SET) || defined(SAMPLE_DATA_SET) || defined(MIC_DATA_SET) || defined(QA_DATA_SET) ) && ( !defined(PERF_REGRESSION) ) #define PERF_REGRESSION #endif static const int MaxNFieldCoeff = 21; static const int maxNStations = 10; #ifndef PERF_REGRESSION static const int maxNTracks = 128; static const int Ntimes = 8; static const int nTracksPerThread = maxNTracks; #define NUM_RUNS 1 #elif defined(BIG_DATA_SET) // static const int maxNStations = 8; // static const int maxNTracks = 20000; // static const int Ntimes = 100; static const int maxNTracks = 100000; static const int Ntimes = 1000;//000; //100; static const int nTracksPerThread = 1000; #define NUM_RUNS 10 // 10 #elif defined(MIC_DATA_SET) static const int maxNTracks = 20000; static const int Ntimes = 100; static const int nTracksPerThread = 1000; #define NUM_RUNS 1 #elif (QA_DATA_SET) static const int maxNTracks = 20000; //10000; static const int Ntimes = 1; //1000; #define NUM_RUNS 1 static const int nTracksPerThread = maxNTracks; #else #error NO_DATA_SET #endif #include "fit_c.h" void readInput( int nThreads=1, int nTracksPerThread=20000 ); void writeOutput(ftype (*Tt)[6], ftype (*Cc)[15]); #endif //__CT_EXAMPLE_TRACK_FITTING_UTIL_H_