Logo coherent WaveBurst  
Library Reference Guide
Logo
cwb_setveto.C
Go to the documentation of this file.
1 /*
2 # Copyright (C) 2019 Gabriele Vedovato
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 // apply veto to merged root file : used by the cwb_setveto command
20 
21 {
22  if(nIFO==2 && TString(ifo[1])==ifo[0]) nIFO=1; // set single detector mode when nIFO=2 and ifo[1]=ifo[0]
23 
24  vector<TString> ifos(nIFO);
25  for(int i=0;i<nIFO;i++) ifos[i]=ifo[i];
26 
27  cwb_merge_label=TString(gSystem->Getenv("CWB_MERGE_LABEL"));
28 
29  sprintf(net_file_name,"wave_%s.%s.root",data_label,cwb_merge_label.Data());
30  cout << net_file_name << endl;
31 
33 
34  exit(0);
35 }
double segMLS
Definition: test_config1.C:47
dqfile VDQF[100]
TString("c")
vector< TString > ifos(nIFO)
double segEdge
Definition: test_config1.C:49
int nVDQF
i drho i
char ifo[NIFO_MAX][8]
nDQF
Definition: cwb_eced.C:109
#define nIFO
char data_label[512]
Definition: test_config1.C:160
dqfile DQF[12]
Definition: test_config1.C:171
segLen
Definition: cwb_eced.C:24
char merge_dir[512]
Definition: test_config1.C:147
char net_file_name[256]
cwb_merge_label
static int setVeto(TString ifName, TString idir, TString odir, vector< TString > ifos, int nVDQF, dqfile *VDQF, int nDQF, dqfile *DQF, double segLen, double segMLS, double segEdge)
Definition: Toolbox.cc:4208
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
exit(0)