Logo coherent WaveBurst  
Library Reference Guide
Logo
TestCWB_Plugin.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 {
20 // Test
21  //cwb CWB("job_data/job_968654036_sg554q8d9_obj_1_999741748.root");
22  cwb CWB("config/user_parameters.C");
23  CWB::config* cfg = CWB.GetConfig();
24  cout << cfg->nodedir << endl;
25  cfg->Import("../../../cwb/macros/cwb_inet.C");
26  cout << cfg->nodedir << endl;
27  int runID=1;
28  //cfg->Print();
29 
30  int err=0;
31 
32  //err=CWB.SetPlugin("plugins/CWB_Plugin_Test.C","plugins/CWB_configPlugin_Test.C");
33 
34  //err=CWB.SetPlugin("plugins/CWB_Plugin_PhaseMisCal.C");
35 
36  //err=CWB.SetPlugin("plugins/CWB_Plugin_TShiftMisCal.C");
37 
38  //err=CWB.SetPlugin("plugins/CWB_Plugin_AmplitudeMisCal.C");
39 
40  //err=CWB.SetPlugin("plugins/CWB_Plugin_SimNoise.C");
41 
42  //err=CWB.SetPlugin("plugins/CWB_Plugin_MakeSpectrum.C");
43 
44  //err=CWB.SetPlugin("plugins/CWB_Plugin_InjectMDC.C");
45 
46  //cfg.cedDump=false;
47  //cfg.factors[0]=0.64;
48  //err=CWB.SetPlugin("plugins/CWB_Plugin_SimMDC_SimData.C");
49 
50  cfg.cedDump=true;
51  cfg.factors[0]=0.64;
52  //err=CWB.SetPlugin("plugins/CWB_Plugin_TestClassMDC.C");
53  err=CWB.SetPlugin("plugins/CWB_Plugin_TestClassMDC.C","plugins/CWB_Plugin_TestClassMDC_Config.C");
54 
55  if(err) {cout << "Plugin Error !!!" << endl;gSystem->Exit(1);}
56 
57  CWB.run(runID);
58 }
CWB::config * cfg
Definition: ced.hh:42
bool cedDump
Definition: config.hh:297
void Import(TString umacro="")
Definition: config.cc:352
char nodedir[1024]
Definition: config.hh:352
Definition: cwb.hh:136
double factors[FACTORS_MAX]
Definition: config.hh:202