Logo coherent WaveBurst  
Library Reference Guide
Logo
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 _USE_EBBH
 
#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

◆ _USE_EBBH

#define _USE_EBBH

Definition at line 23 of file CWB_Plugin_ChirpMass.C.

◆ CHI2_THR

#define CHI2_THR   -2.5

Definition at line 51 of file CWB_Plugin_ChirpMass.C.

◆ DUMP_CLUSTER

#define DUMP_CLUSTER   false

Definition at line 56 of file CWB_Plugin_ChirpMass.C.

◆ DUMP_WAVE

#define DUMP_WAVE   false

Definition at line 55 of file CWB_Plugin_ChirpMass.C.

◆ NCHIRP_MAX

#define NCHIRP_MAX   4

Definition at line 49 of file CWB_Plugin_ChirpMass.C.

◆ TMERGER_CUT

#define TMERGER_CUT   0.1

Definition at line 52 of file CWB_Plugin_ChirpMass.C.

◆ XIFO

#define XIFO   4

Definition at line 19 of file CWB_Plugin_ChirpMass.C.

◆ ZMAX_THR

#define ZMAX_THR   0.2

Definition at line 53 of file CWB_Plugin_ChirpMass.C.

Function Documentation

◆ AddWaveforms()

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

Definition at line 837 of file CWB_Plugin_ChirpMass.C.

◆ ClearWaveforms()

void ClearWaveforms ( detector ifo)

Definition at line 816 of file CWB_Plugin_ChirpMass.C.

◆ CWB_Plugin()

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

Definition at line 162 of file CWB_Plugin_ChirpMass.C.

◆ DoPCA()

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

Definition at line 285 of file CWB_Plugin_ChirpMass.C.

◆ DumpOutputFile()

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

Definition at line 678 of file CWB_Plugin_ChirpMass.C.

◆ GetAlignedWaveform()

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

Definition at line 686 of file CWB_Plugin_ChirpMass.C.

◆ GetCentralFrequency()

double GetCentralFrequency ( wavearray< double >  x)

Definition at line 761 of file CWB_Plugin_ChirpMass.C.

◆ GetCentralTime()

double GetCentralTime ( wavearray< double >  x)

Definition at line 713 of file CWB_Plugin_ChirpMass.C.

◆ GetCluster()

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

Definition at line 894 of file CWB_Plugin_ChirpMass.C.

◆ GetDifWaveform()

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

Definition at line 537 of file CWB_Plugin_ChirpMass.C.

◆ GetEccentricityIndex()

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

Definition at line 911 of file CWB_Plugin_ChirpMass.C.

◆ GetFrequencyBoundaries()

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

Definition at line 779 of file CWB_Plugin_ChirpMass.C.

◆ GetInjWaveform()

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

Definition at line 356 of file CWB_Plugin_ChirpMass.C.

◆ GetRecWaveform()

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

Definition at line 407 of file CWB_Plugin_ChirpMass.C.

◆ GetTimeBoundaries()

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

Definition at line 729 of file CWB_Plugin_ChirpMass.C.

◆ GetWaveform()

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

Definition at line 436 of file CWB_Plugin_ChirpMass.C.

◆ PlotWaveform()

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 470 of file CWB_Plugin_ChirpMass.C.

◆ PrintUserOptions()

void PrintUserOptions ( )

Definition at line 1026 of file CWB_Plugin_ChirpMass.C.

◆ ReadUserOptions()

void ReadUserOptions ( CWB::config cfg)

Definition at line 969 of file CWB_Plugin_ChirpMass.C.

◆ ResetPCA()

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

Definition at line 342 of file CWB_Plugin_ChirpMass.C.

◆ SetEventWindow()

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

Definition at line 863 of file CWB_Plugin_ChirpMass.C.

◆ SetOutputFile()

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

Definition at line 563 of file CWB_Plugin_ChirpMass.C.

Variable Documentation

◆ gCLUSTER

std::vector<netpixel> gCLUSTER

Definition at line 159 of file CWB_Plugin_ChirpMass.C.

◆ gCRATE

float gCRATE

Definition at line 158 of file CWB_Plugin_ChirpMass.C.

◆ gCWB

cwb gCWB

Definition at line 144 of file CWB_Plugin_ChirpMass.C.

◆ gEBBH

_EBBH gEBBH

Definition at line 141 of file CWB_Plugin_ChirpMass.C.

◆ gHOT

wavearray<double> gHOT[NIFO_MAX]

Definition at line 146 of file CWB_Plugin_ChirpMass.C.

◆ gINRATE

double gINRATE

Definition at line 148 of file CWB_Plugin_ChirpMass.C.

◆ gOPT

uoptions gOPT

Definition at line 139 of file CWB_Plugin_ChirpMass.C.

◆ gOUTPUT

TString gOUTPUT

Definition at line 143 of file CWB_Plugin_ChirpMass.C.

◆ gRATEANA

int gRATEANA

Definition at line 149 of file CWB_Plugin_ChirpMass.C.

◆ gSEGGPS

double gSEGGPS

Definition at line 157 of file CWB_Plugin_ChirpMass.C.

◆ gsINJ

wavearray<double> gsINJ[NIFO_MAX]

Definition at line 153 of file CWB_Plugin_ChirpMass.C.

◆ gsREC

wavearray<double> gsREC[NIFO_MAX]

Definition at line 155 of file CWB_Plugin_ChirpMass.C.

◆ gTREE

TTree* gTREE

Definition at line 142 of file CWB_Plugin_ChirpMass.C.

◆ gwDAT

wavearray<double> gwDAT[NIFO_MAX]

Definition at line 151 of file CWB_Plugin_ChirpMass.C.

◆ gwINJ

wavearray<double> gwINJ[NIFO_MAX]

Definition at line 152 of file CWB_Plugin_ChirpMass.C.

◆ gwREC

wavearray<double> gwREC[NIFO_MAX]

Definition at line 154 of file CWB_Plugin_ChirpMass.C.