Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
wavecor.hh
Go to the documentation of this file.
1 // Wavelet Analysis Tool
2 // Sergey Klimenko, University of Florida
3 // universal data container for x-correlation analysis
4 // used with DMT and ROOT
5 //
6 
7 #ifndef WAVECOR_HH
8 #define WAVECOR_HH
9 
10 #include <iostream>
11 #include "wavearray.hh"
12 #include <vector>
13 #include <list>
14 
15 typedef std::vector<int> vector_int;
16 
17 
18 class wavecor
19 {
20  public:
21 
22  // constructors
23 
24  //: Default constructor
25  wavecor();
26 
27  //: Copy constructor
28  //!param: value - object to copy from
29  wavecor(const wavecor&);
30 
31  //: destructor
32  virtual ~wavecor();
33 
34  // operators
35 
36  wavecor& operator= (const wavecor&);
37 
38  // accessors
39 
40  //: kendall x-correlation for two wavearrays;
41  //!param: two wavearrays, integration window, interval for time lag analysis
42  //! and skip parameter for running integration window
43  //! if skip=0 window is shifted by one sample
44  //!put x-correlation in this
46  double, double, size_t=0);
47 
48  //: initialize wavecor class from two wavearrays;
49  //!param: two wavearrays, integration window, interval for time lag analysis
50  //! and skip parameter for running integration window
51  //! if skip=0 window is shifted by one sample
52  //!put x-correlation in this
54  double, double, size_t=0);
55 
56  //:function for thresholding of x-correlation samples
57  //:A sample of x-correlation statistics is set to zero if module
58  //:of x-correlation is below a threshold defined by input parameter.
59  //:returns fraction of selected samples
60  virtual double select(double);
61 
62  //:coincidence with x-correlation sample defined by par2
63  //:coincidence window is defined by par1
64  //:sample in this is set to 0. if there are now non-zero samples
65  //:form input x-correlation sample in the window defined by par1
66  //!param: coincidence window, pointer to wavecor object
67  //:returns fraction of selected samples
68  virtual double coincidence(double, wavecor*);
69 
70 // data members
71 
72 //#ifndef __CINT__
73  float shift; // time shift
74  int ifo; // detector index: 1/2/3 - L1H1/H1H2/H2L1
75  int run; // run ID
76  double window; // integration window in seconds
77  double lagint; // lag interval in seconds
78 
79  //: x-correlaton
81  //: time delays
83  //: cluster list
84  std::list<vector_int> cList;
85 //#endif
86 
87  // used by THtml doc
88  ClassDef(wavecor,1)
89 
90 }; // class wavecor
91 
92 
93 #endif // WAVECOR_HH
std::vector< int > vector_int
Definition: wavecor.hh:15
virtual double select(double)
Definition: wavecor.cc:254
double window
Definition: wavecor.hh:76
std::list< vector_int > cList
Definition: wavecor.hh:84
virtual void init(wavearray< double > &, wavearray< double > &, double, double, size_t=0)
param: two wavearrays, integration window, interval for time lag analysis and skip parameter for runn...
Definition: wavecor.cc:166
double lagint
Definition: wavecor.hh:77
int ifo
Definition: wavecor.hh:74
float shift
Definition: wavecor.hh:73
int run
Definition: wavecor.hh:75
virtual void kendall(wavearray< double > &, wavearray< double > &, double, double, size_t=0)
param: two wavearrays, integration window, interval for time lag analysis and skip parameter for runn...
Definition: wavecor.cc:64
virtual ~wavecor()
Definition: wavecor.cc:42
wavearray< float > xcor
Definition: wavecor.hh:80
virtual double coincidence(double, wavecor *)
param: coincidence window, pointer to wavecor object
Definition: wavecor.cc:273
wavecor()
Definition: wavecor.cc:18
wavearray< float > xlag
Definition: wavecor.hh:82
wavecor & operator=(const wavecor &)
Definition: wavecor.cc:46