LALAPPS_COMPUTEFSTATISTICBINARY WALKTHROUGH


A brief introduction

Hopefully it all seems familiar ?

From the very start of the work done on searching for neutron stars in binary sytems, and in particular Sco X-1, we have adopted the frequency domain approach. We have also deliberately tried to use (where possible) the same codes and search strategies as used in the search for GW's from isolated pulsars. Some key points and major differences between the codes are :-

  1. The latest version of the binary search code is essentially identical to the isolated search code.  In fact, with the binary input flag set to false, the code is identical to the isolated pulsar search code lalapps_ComputeFStatistic.

  2. We ignore the inbuilt sky position template functions. We deal at present with a single known sky position.

  3. Instead of looping over an bank of sky positions we loop over a bank of ready-made orbital templates.

  4. At the heart of the code we still deal with LALDemod.c but the input parameters to this function are calculated using ComputeSkyBinary.c and not ComputeSky.c.

Walkthrough

Link to the source code in the LALApps CVS

In this section we describe the code on a function call by function call basis.  Important parameter choices are mentioned as well as differences between this strategy and the isolated pulsar search strategy.  Further technical details describing each function will be discussed in future code review meetings.


At this point some output files are opened if defined at the top of the code by FILE_FMAX and FILE_FSTATS.  Respectively, these files output the maximum* Fstatistic + corresponding search parameters for each orbital search template within the search band and the resulting F statistics + search parameters for every single orbital + frequency filter searched.   Note that the * indicates that by maximum we mean maximum remaining F statistic once clusters of F statistics have been identified, recorded, and removed. 

Following this stage if the binary flag is not set then the code proceeds to setting up a grid of sky positions relavent to the isolated pulsar search.  If the binary flag is set then we skip this and move on to the following.
Here we enter the loop that cycles over search templates.  In the isolated pulsar case these search templates are sky positions, and in the binary search these are the orbital filters read into memory by the function ReadBinaryTemplateBank().

There is now a loop over spin down templates within which the value of the first order spin down parameter is simply incremented by a user defined input value.   For simplicity at present the value of the first order spin down parameter is set at its default value of 0.0 and is not incremented.  If the binary flag is set then we do not cycle over this loop, we pass through it only once with all spin down values set at zero.

If the user has specified an output file then at this point the results of the search over the current orbital filter are saved to file.  This includes the value of the detection statistic (which is in fact 2F X normalisation factor due to the descrete calculation of the running median) and the corresponding search parameters (orbital + frequency).