Esempio n. 1
0
/**
 *  Handle the correlation whether or not we have position information
 */
void ImplantSsdProcessor::Correlate(Correlator &corr, EventInfo &info, int location)
{
    if ( isnan(info.position) ) {
	corr.CorrelateAllY(info, location);
    } else {
	corr.Correlate(info, location, int(info.position));
    }
    // if we want to neglect position information using a dummy variable,
    //   uncomment this line, and comment out the above
    // corr.Correlate(info, location, 1)
    PlotType(info, location, corr.GetCondition());
}
Esempio n. 2
0
/*----------------------------------------------------------------------------------------------*/
void *Correlator_Thread(void *_arg)
{

	Correlator *aCorrelator = pCorrelator;

	while(grun)
	{
		aCorrelator->Import();
		aCorrelator->Correlate();
		aCorrelator->IncExecTic();
	}

	pthread_exit(0);

}