// This stuff can be used to test the eBBH waveforms with the 2G cwb pipeline 
// Noise frames are generated by the macro macro/CreateFramesNOISE.C
// MDC are generated on the fly or read from root file

to generate all necessary stuff do "make setup"
  - make directories for cwb
  - generate frames for ADV ifos L1 H1 V1
    to change the default values edit macro/CreateFramesNOISE.C
  
to change the cwb parameters edit config/user_parameters.C

to reset the directory do "make clean"

First of all create the list of eBBH parameters with macro :
CreateListEBBH.C
Modify macro to define the eBBH model parameters, then run :
broot CreateListEBBH.C

By default the output list file is :
macro/eBBH_3.5e06_10_25_2.lst
this contains 1000 entries

Note: the macro skip events with eccentricity >= 0.5 (this speed up the waveform generation) 

This list can be used as input for 'on the fly' MDC simulation.
As alternative it is possible to use a root file which contains the waveforms generated in advanced.

To convert eBBH_3.5e06_10_25_2.lst to tree root file macro/eBBH.root use :
broot 'macro/List2RootEBBH.C("macro/eBBH_3.5e06_10_25_2.lst")'

To draw the entry 2 of eBBH contained in the root file macro/eBBH.root
root -l 'macro/DrawRootEBBH.C("eBBH_3.5e06_10_25_2.lst",2)'

To select the eBBH configuration modify 
macro/CWB_Plugin_EBBH_Config.C
by default the simulation use the eBBH input list 'macro/eBBH_3.5e06_10_25_2.lst'

To make analysis do :
cwb_inet 1
or
make cwb

To make ced do
cwb_inet 1 0 true
or
make ced

