Skip to content
Snippets Groups Projects
Select Git revision
  • ed7b204a42b95a3a686a7775f7b6ef493ca1914b
  • master default protected
2 results

test_fsig.py

Blame
  • antenna_lib.h 1.33 KiB
    // Double inclusion protection
    #ifndef ANTENNA_LIB_H
    #define ANTENNA_LIB_H
    
    void print_detector(int i);
    void print_source();
    
    // Structure for passing information about the GW source and detectors
    
    struct InputStruct {
    
       // orbital orientation in degrees, 0 to 180. Zero degrees has
       // orbital angular momentum pointing to the earth
       double iota;
       
       // orientation of long axis of ellipse, 0 to 360, in degrees CCW
       // from North when viewed from the EARTH
       double psi;
       
       // orientation of detector arms away from actual, 0 to 360, in
       // degrees CCW when viewed from directly overhead
       // Ordering is LLO, LHO, VIRGO, KAGRA, LIGO-India
       double orientation[5];
    };
    
    // Structure for returning information about the response.  The array
    // elements are in the order LLO, LHO, VIRGO, KAGRA, LIGO-India
    struct OutputStruct {
       // detector names, null terminated string
       char name[5][8];
       // amplitude of sin function, dimensionless
       double amp[5];
       // phase of sin function, in degrees from 0 to 360
       double phase[5];
       // time delays, in milliseconds
       double dt[5];
    };
    
    
    // Function gets antenna responses, using information in the 
    // input structure (not modified) and writing to the output structure.
    void get_antenna(struct OutputStruct *out, struct InputStruct *in);
    
    void print_angles(int i);
    
    #endif // ANTENNA_LIB_H