Logo coherent WaveBurst  
Library Reference Guide
Logo
CWB_Plugin_MDC_Frames_Config.C
Go to the documentation of this file.
1 
2 #include "CWB_Plugin.h"
3 #include <vector>
4 
6 
7  //!NOISE_MDC_SIMULATION
8  // Config Plugin used to setup frame files and log MDC 'on the fly' using simulation=4
9 
10  cout << "-----> CWB_Plugin_Config_Standard_InjFrames.C -> " << " gIFACTOR " << gIFACTOR << endl;
11 
12  #define nMDC 21
13  #define MDC_DIR "/home/daniel.williams/data/mdc/O2"
14 
15  if(cfg->nfactor > nMDC) {
16  cout << "CWB_Plugin_Config_MDC_FRAME.C - Error : number of nfactor must be < " << nMDC << endl;
17  gSystem->Exit(1);
18  }
19 
20  std::vector<TString>* mdcPar;
21  CWB_PLUGIN_IMPORT(std::vector<TString>*,mdcPar);
22  mdcPar->resize(2);
23 
24  std::vector<std::string>* channelName;
25  CWB_PLUGIN_IMPORT(std::vector<std::string>*,channelName);
26  channelName->resize(2);
27 
28  std::vector<std::string>* mdcType;
29  CWB_PLUGIN_IMPORT(std::vector<std::string>*,mdcType);
30  mdcType->resize(nMDC);
31 
32 
33  // --------------------------------------------------------
34  // define the mdcType
35  // --------------------------------------------------------
36  std::vector<std::string> xmdcType(nMDC);
37 
38  (*mdcType)[0] = "ga_0d100"; xmdcType[0] = "ga_D0d0001";
39  (*mdcType)[1] = "ga_1d000"; xmdcType[1] = "ga_D0d001";
40  (*mdcType)[2] = "ga_2d500"; xmdcType[2] = "ga_D0d0025";
41  (*mdcType)[3] = "ga_4d000"; xmdcType[3] = "ga_D0d0040";
42 
43  (*mdcType)[4] = "sg_f70_q3_elliptical"; xmdcType[4] = "sg_F70Q3-elliptical";
44  (*mdcType)[5] = "sg_f235_q3_elliptical"; xmdcType[5] = "sg_F235Q3-elliptical";
45  (*mdcType)[6] = "sg_f849_q3_elliptical"; xmdcType[6] = "sg_F849Q3-elliptical";
46 
47  (*mdcType)[7] = "sg_f70_q9_linear"; xmdcType[7] = "";
48  (*mdcType)[8] = "sg_f100_q9_linear"; xmdcType[8] = "";
49  (*mdcType)[9] = "sg_f153_q9_elliptical"; xmdcType[9] = "";
50  (*mdcType)[10] = "sg_f235_q9_linear"; xmdcType[10] = "";
51  (*mdcType)[11] = "sg_f361_q9_linear"; xmdcType[11] = "";
52  (*mdcType)[12] = "sg_f554_q9_elliptical"; xmdcType[12] = "";
53  (*mdcType)[13] = "sg_f849_q9_elliptical"; xmdcType[13] = "sg_F849Q8d9-elliptical";
54  (*mdcType)[14] = "sg_f1053_q9_linear"; xmdcType[14] = "sg_F1053Q9-linear";
55 
56  (*mdcType)[15] = "sg_f70_q100_elliptical"; xmdcType[15] = "sg_F70Q100-elliptical";
57  (*mdcType)[16] = "sg_f235_q100_elliptical"; xmdcType[16] = "sg_F235Q100-elliptical";
58  (*mdcType)[17] = "sg_f849_q100_elliptical"; xmdcType[17] = "sg_F849Q100-elliptical";
59 
60  (*mdcType)[18] = "wnb_150d0b100d0tau0d1"; xmdcType[18] = "wnb_D0d100F100B100";
61  (*mdcType)[19] = "wnb_300d0b100d0tau0d1"; xmdcType[19] = "wnb_D0d100F250B100";
62  (*mdcType)[20] = "wnb_750d0b100d0tau0d1"; xmdcType[20] = "wnb_D0d100F700B100";
63 
64  // --------------------------------------------------------
65  // define the mdcPar
66  // --------------------------------------------------------
67 
68  char injectionList[1024];
69  char frFile[1024];
70 
71  TString type = (*mdcType)[gIFACTOR-1].c_str();
72  TString xtype = xmdcType[gIFACTOR-1].c_str();
73 
74  //sprintf(injectionList,"%s/graven/%s.xml.gz-logfile.txt",MDC_DIR,xtype.Data());
75  sprintf(injectionList,"input/graven/%s.xml.gz-logfile.txt",xtype.Data());
76  sprintf(frFile,"input/%s.lst",type.Data());
77 
78  (*mdcPar)[0] = injectionList;
79  (*mdcPar)[1] = frFile;
80 
81  (*channelName)[0] = "L1:SCIENCE";
82  (*channelName)[1] = "H1:SCIENCE";
83 
84 }
CWB::config * cfg
TString("c")
char injectionList[1024]
#define nMDC
int nfactor
Definition: config.hh:201
int gIFACTOR
#define CWB_PLUGIN_IMPORT(TYPE, VAR)
Definition: CWB_Plugin.h:6
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
void CWB_PluginConfig()