coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
tools
cwb
macros
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
32
CWB::Toolbox::setVeto
(
net_file_name
,
merge_dir
,
merge_dir
,
ifos
,
nVDQF
,
VDQF
,
nDQF
,
DQF
,
segLen
,
segMLS
,
segEdge
);
33
34
exit
(0);
35
}
segMLS
double segMLS
Definition:
test_config1.C:47
VDQF
dqfile VDQF[100]
Definition:
cwb_pparameters.C:277
TString
TString("c")
Definition:
cwb_report_skymap.C:129
ifos
vector< TString > ifos(nIFO)
segEdge
double segEdge
Definition:
test_config1.C:49
nVDQF
int nVDQF
Definition:
cwb_pparameters.C:276
i
i drho i
Definition:
cwb_epparameters.C:88
ifo
char ifo[NIFO_MAX][8]
Definition:
cwb1G_parameters.C:17
nDQF
nDQF
Definition:
cwb_eced.C:109
nIFO
#define nIFO
Definition:
DrawSensitivitiesS5.C:11
data_label
char data_label[512]
Definition:
test_config1.C:160
DQF
dqfile DQF[12]
Definition:
test_config1.C:171
segLen
segLen
Definition:
cwb_eced.C:24
merge_dir
char merge_dir[512]
Definition:
test_config1.C:147
net_file_name
char net_file_name[256]
Definition:
cwb_fix_live_slag_missed.C:37
cwb_merge_label
cwb_merge_label
Definition:
cwb_combine_cbc.C:36
CWB::Toolbox::setVeto
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
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
exit
exit(0)