Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
CWB_Plugin_ChirpMass.C File Reference
#include "cwb.hh"
#include "config.hh"
#include "network.hh"
#include "wavearray.hh"
#include "TString.h"
#include "TObjArray.h"
#include "TObjString.h"
#include "TRandom.h"
#include "TComplex.h"
#include "TGraphAsymmErrors.h"
#include "TMath.h"
#include "mdc.hh"
#include "cwb2G.hh"
#include "watplot.hh"
#include "gwavearray.hh"
#include <fstream>
#include <vector>
Include dependency graph for CWB_Plugin_ChirpMass.C:

Macros

#define CHI2_THR   -2.5
 
#define DUMP_CLUSTER   false
 
#define DUMP_WAVE   false
 
#define NCHIRP_MAX   4
 
#define TMERGER_CUT   0.1
 
#define XIFO   4
 
#define ZMAX_THR   0.2
 

Functions

wavearray< double > AddWaveforms (wavearray< double > *wf1, wavearray< double > *wf2)
 
void ClearWaveforms (detector *ifo)
 
void CWB_Plugin (TFile *jfile, CWB::config *cfg, network *NET, WSeries< double > *x, TString ifo, int type)
 
std::vector< netpixelDoPCA (network *NET, CWB::config *cfg, int lag, int id)
 
void DumpOutputFile (network *NET, netevent *&EVT, CWB::config *cfg, int ID, int k, int factor)
 
wavearray< double > GetAlignedWaveform (wavearray< double > *wf1, wavearray< double > *wf2)
 
double GetCentralFrequency (wavearray< double > x)
 
double GetCentralTime (wavearray< double > x)
 
std::vector< netpixelGetCluster (network *NET, CWB::config *cfg, int lag, int id)
 
wavearray< double > GetDifWaveform (wavearray< double > *wf1, wavearray< double > *wf2)
 
void GetEccentricityIndex (network *NET, int lag, int id)
 
double GetFrequencyBoundaries (wavearray< double > x, double P, double &bF, double &eF)
 
std::vector< wavearray< double > > GetInjWaveform (network *NET, netevent *EVT, int id, double factor)
 
std::vector< wavearray< double > > GetRecWaveform (network *NET, netevent *EVT, int id)
 
double GetTimeBoundaries (wavearray< double > x, double P, double &bT, double &eT)
 
wavearray< double > GetWaveform (int ifoId, network *NET, int lag, int id, char type, bool shift=true)
 
void PlotWaveform (TString ofname, TString title, CWB::config *cfg, wavearray< double > *wf1, wavearray< double > *wf2, wavearray< double > *wf3, wavearray< double > *wref, bool fft=false, TString pdir="", double P=0.99)
 
void PrintUserOptions ()
 
void ReadUserOptions (CWB::config *cfg)
 
void ResetPCA (network *NET, CWB::config *cfg, netcluster *pwc, std::vector< netpixel > *vPIX, int ID)
 
void SetEventWindow (CWB::config *cfg, double gps)
 
void SetOutputFile (network *NET, netevent *&EVT, CWB::config *cfg, bool dump_ebbh)
 

Variables

std::vector< netpixelgCLUSTER
 
float gCRATE
 
cwb gCWB
 
EBBH gEBBH
 
wavearray< double > gHOT [NIFO_MAX]
 
double gINRATE
 
uoptions gOPT
 
TString gOUTPUT
 
int gRATEANA
 
double gSEGGPS
 
wavearray< double > gsINJ [NIFO_MAX]
 
wavearray< double > gsREC [NIFO_MAX]
 
TTree * gTREE
 
wavearray< double > gwDAT [NIFO_MAX]
 
wavearray< double > gwINJ [NIFO_MAX]
 
wavearray< double > gwREC [NIFO_MAX]
 

Macro Definition Documentation

#define CHI2_THR   -2.5

Definition at line 31 of file CWB_Plugin_ChirpMass.C.

#define DUMP_CLUSTER   false

Definition at line 36 of file CWB_Plugin_ChirpMass.C.

#define DUMP_WAVE   false

Definition at line 35 of file CWB_Plugin_ChirpMass.C.

#define NCHIRP_MAX   4

Definition at line 29 of file CWB_Plugin_ChirpMass.C.

#define TMERGER_CUT   0.1

Definition at line 32 of file CWB_Plugin_ChirpMass.C.

#define XIFO   4

Definition at line 1 of file CWB_Plugin_ChirpMass.C.

#define ZMAX_THR   0.2

Definition at line 33 of file CWB_Plugin_ChirpMass.C.

Function Documentation

wavearray< double > AddWaveforms ( wavearray< double > *  wf1,
wavearray< double > *  wf2 
)

Definition at line 817 of file CWB_Plugin_ChirpMass.C.

void ClearWaveforms ( detector ifo)

Definition at line 796 of file CWB_Plugin_ChirpMass.C.

void CWB_Plugin ( TFile *  jfile,
CWB::config cfg,
network NET,
WSeries< double > *  x,
TString  ifo,
int  type 
)

Definition at line 142 of file CWB_Plugin_ChirpMass.C.

std::vector< netpixel > DoPCA ( network NET,
CWB::config cfg,
int  lag,
int  id 
)

Definition at line 265 of file CWB_Plugin_ChirpMass.C.

void DumpOutputFile ( network NET,
netevent *&  EVT,
CWB::config cfg,
int  ID,
int  k,
int  factor 
)

Definition at line 658 of file CWB_Plugin_ChirpMass.C.

wavearray< double > GetAlignedWaveform ( wavearray< double > *  wf1,
wavearray< double > *  wf2 
)

Definition at line 666 of file CWB_Plugin_ChirpMass.C.

double GetCentralFrequency ( wavearray< double >  x)

Definition at line 741 of file CWB_Plugin_ChirpMass.C.

double GetCentralTime ( wavearray< double >  x)

Definition at line 693 of file CWB_Plugin_ChirpMass.C.

std::vector< netpixel > GetCluster ( network NET,
CWB::config cfg,
int  lag,
int  id 
)

Definition at line 874 of file CWB_Plugin_ChirpMass.C.

wavearray< double > GetDifWaveform ( wavearray< double > *  wf1,
wavearray< double > *  wf2 
)

Definition at line 517 of file CWB_Plugin_ChirpMass.C.

void GetEccentricityIndex ( network NET,
int  lag,
int  id 
)

Definition at line 891 of file CWB_Plugin_ChirpMass.C.

double GetFrequencyBoundaries ( wavearray< double >  x,
double  P,
double &  bF,
double &  eF 
)

Definition at line 759 of file CWB_Plugin_ChirpMass.C.

std::vector< wavearray< double > > GetInjWaveform ( network NET,
netevent EVT,
int  id,
double  factor 
)

Definition at line 336 of file CWB_Plugin_ChirpMass.C.

std::vector< wavearray< double > > GetRecWaveform ( network NET,
netevent EVT,
int  id 
)

Definition at line 387 of file CWB_Plugin_ChirpMass.C.

double GetTimeBoundaries ( wavearray< double >  x,
double  P,
double &  bT,
double &  eT 
)

Definition at line 709 of file CWB_Plugin_ChirpMass.C.

wavearray< double > GetWaveform ( int  ifoId,
network NET,
int  lag,
int  id,
char  type,
bool  shift = true 
)

Definition at line 416 of file CWB_Plugin_ChirpMass.C.

void PlotWaveform ( TString  ofname,
TString  title,
CWB::config cfg,
wavearray< double > *  wf1,
wavearray< double > *  wf2,
wavearray< double > *  wf3,
wavearray< double > *  wref,
bool  fft = false,
TString  pdir = "",
double  P = 0.99 
)

Definition at line 450 of file CWB_Plugin_ChirpMass.C.

void PrintUserOptions ( )

Definition at line 1006 of file CWB_Plugin_ChirpMass.C.

void ReadUserOptions ( CWB::config cfg)

Definition at line 949 of file CWB_Plugin_ChirpMass.C.

void ResetPCA ( network NET,
CWB::config cfg,
netcluster pwc,
std::vector< netpixel > *  vPIX,
int  ID 
)

Definition at line 322 of file CWB_Plugin_ChirpMass.C.

void SetEventWindow ( CWB::config cfg,
double  gps 
)

Definition at line 843 of file CWB_Plugin_ChirpMass.C.

void SetOutputFile ( network NET,
netevent *&  EVT,
CWB::config cfg,
bool  dump_ebbh 
)

Definition at line 543 of file CWB_Plugin_ChirpMass.C.

Variable Documentation

std::vector<netpixel> gCLUSTER

Definition at line 139 of file CWB_Plugin_ChirpMass.C.

float gCRATE

Definition at line 138 of file CWB_Plugin_ChirpMass.C.

cwb gCWB

Definition at line 124 of file CWB_Plugin_ChirpMass.C.

EBBH gEBBH

Definition at line 121 of file CWB_Plugin_ChirpMass.C.

wavearray<double> gHOT[NIFO_MAX]

Definition at line 126 of file CWB_Plugin_ChirpMass.C.

double gINRATE

Definition at line 128 of file CWB_Plugin_ChirpMass.C.

uoptions gOPT

Definition at line 119 of file CWB_Plugin_ChirpMass.C.

TString gOUTPUT

Definition at line 123 of file CWB_Plugin_ChirpMass.C.

int gRATEANA

Definition at line 129 of file CWB_Plugin_ChirpMass.C.

double gSEGGPS

Definition at line 137 of file CWB_Plugin_ChirpMass.C.

wavearray<double> gsINJ[NIFO_MAX]

Definition at line 133 of file CWB_Plugin_ChirpMass.C.

wavearray<double> gsREC[NIFO_MAX]

Definition at line 135 of file CWB_Plugin_ChirpMass.C.

TTree* gTREE

Definition at line 122 of file CWB_Plugin_ChirpMass.C.

wavearray<double> gwDAT[NIFO_MAX]

Definition at line 131 of file CWB_Plugin_ChirpMass.C.

wavearray<double> gwINJ[NIFO_MAX]

Definition at line 132 of file CWB_Plugin_ChirpMass.C.

wavearray<double> gwREC[NIFO_MAX]

Definition at line 134 of file CWB_Plugin_ChirpMass.C.