Logo coherent WaveBurst  
Library Reference Guide
Logo
cwb2G.hh
Go to the documentation of this file.
1 /*
2 # Copyright (C) 2019 Gabriele Vedovato, Sergey Klimenko
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17 
18 
19 /**********************************************************
20  * Package: cwb2G Class Library
21  * File name: cwb2G.hh
22  * Author: Gabriele Vedovato (vedovato@lnl.infn.it)
23  **********************************************************/
24 
25 
26 #ifndef CWB2G_HH
27 #define CWB2G_HH
28 
29 #include "cwb.hh"
30 #include "WDM.hh"
31 
32 
33 class cwb2G : public cwb {
34 
35 public:
36 
37  // Constructor
39  for(int n=0;n<NRES_MAX;n++) pwdm[n]=NULL;
40  for(int n=0;n<NIFO_MAX;n++) hot[n]=NULL;
41  }
42 
43  // Constructor
45 
46  // Constructor
48 
49  ~cwb2G();
50 
51 // void run(int runID=0);
52 
53  void WriteSparseTFmap(TFile* jfile, int ifactor, TString tdir, TString tname);
54  void FillSparseTFmap(TFile* jfile, int ifactor, TString tname);
55 
56  CWB::ced* GetCED() {return ced;} // return pointer to CED object
57 
58 //private: // ROOT6 fix, commented out otherwise not visibles from cWB plugins
59 
60  double ReadData(double mdcShift, int ifactor);
61  void DataConditioning(int ifactor);
62  void DataConditioning(TString fName, int ifactor);
63  void Coherence(int ifactor);
64  void SuperCluster(int ifactor);
65  bool Likelihood(int ifactor, char* ced_dir, netevent* output = NULL,
66  TTree* net_tree = NULL, char* outDump = NULL);
67 
68  void Init();
69 
70  void SaveWaveforms(TFile* jfile, detector* pD, int ifactor, int wfSAVE=1);
71  void LoadWaveforms(TFile* ifile, detector* pD, int ifactor, int wfSAVE=1);
72 
73 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
74 // declarations
75 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
76 
77  int nRES; // number of frequency resolution levels
78  double TDRate; // time-delay filter rate
79 
80  WDM<double>* pwdm[NRES_MAX]; //! wavelet pointers: pwdm[0] - l_high, wdm[nRES-1] l_low
81  wavearray<double>* hot[NIFO_MAX]; //! temporary time series
82 
83  CWB::ced *ced; //! CED pointer
84 
85  ClassDef(cwb2G,3)
86 };
87 
88 #endif
TString outDump
void LoadWaveforms(TFile *ifile, detector *pD, int ifactor, int wfSAVE=1)
Definition: cwb2G.cc:1688
void WriteSparseTFmap(TFile *jfile, int ifactor, TString tdir, TString tname)
Definition: cwb2G.cc:1488
void SaveWaveforms(TFile *jfile, detector *pD, int ifactor, int wfSAVE=1)
Definition: cwb2G.cc:1652
WDM< double > * pwdm[NRES_MAX]
Definition: cwb2G.hh:80
bool Likelihood(int ifactor, char *ced_dir, netevent *output=NULL, TTree *net_tree=NULL, char *outDump=NULL)
Definition: cwb2G.cc:1197
int n
Definition: cwb_net.C:28
detector * pD[NIFO_MAX]
noise variability
Definition: cwb.hh:263
cwb2G(TString fName, TString xName="", CWB_STAGE jstage=CWB_STAGE_FULL)
Definition: cwb2G.hh:44
TString("c")
TFile * jfile
output root file
Definition: cwb.hh:259
CWB_STAGE jstage
Definition: cwb.hh:248
void Coherence(int ifactor)
Definition: cwb2G.cc:773
~cwb2G()
Definition: cwb2G.cc:51
Definition: cwb2G.hh:33
char ced_dir[512]
Definition: test_config1.C:154
double mdcShift
Definition: cwb_net.C:196
CWB::ced * GetCED()
Definition: cwb2G.hh:56
cwb2G(CWB::config cfg, CWB_STAGE jstage=CWB_STAGE_FULL)
Definition: cwb2G.hh:47
TTree * net_tree
void SuperCluster(int ifactor)
Definition: cwb2G.cc:962
double TDRate
Definition: cwb2G.hh:78
cwb2G(CWB_STAGE jstage=CWB_STAGE_FULL)
Definition: cwb2G.hh:38
int ifactor
const int NIFO_MAX
Definition: wat.hh:22
void FillSparseTFmap(TFile *jfile, int ifactor, TString tname)
Definition: cwb2G.cc:1591
char output[256]
const int NRES_MAX
Definition: wat.hh:23
TFile * ifile
CWB::config cfg
Definition: cwb.hh:192
void Init()
Definition: cwb2G.cc:61
CWB::ced * ced
temporary time series
Definition: cwb2G.hh:83
Definition: cwb.hh:136
Definition: ced.hh:44
void DataConditioning(int ifactor)
Definition: cwb2G.cc:450
wavearray< double > * hot[NIFO_MAX]
wavelet pointers: pwdm[0] - l_high, wdm[nRES-1] l_low
Definition: cwb2G.hh:81
double ReadData(double mdcShift, int ifactor)
Definition: cwb2G.cc:202
char fName[256]
int nRES
Definition: cwb2G.hh:77
CWB_STAGE
Definition: cwb.hh:122