cwb_setvetoΒΆ


Usage

This command applies post-production data qualities (cat3, hveto, pem) to the ROOT file produce by cwb_merge command.Data quality file lists are defined in the user_pparameters.C file.

Syntax

  • cwb_setveto action [label/list] user_parameters_file(optional) user_pparameters_file(optional)
  • action
    • label same label used by cwb_merge
    • list list the label of files already merged
  • user_parameters_file alternative user_parameters file (optional)
  • user_pparameters_file alternative user_pparameters file (optional)

This is an example of configuration file used for post-processing of S6A background


Example

* the input files are the merged files produced by the cwb_merge command :

   - merge/wave_*_M1.root   // reconstructed events root file
   - merge/live_*_M1.root   // live time root file
   - merge/merge_*_M1.lst   // list of merged root files

* the vetoe files must be defined in the user_pparameters.C, for example :

  const int nvdqf=3;
  dqfile vdqf[nvdqf] = {
         {"L1", "input/L1_KW_HVETO_S6A.txt", CWB_HVETO, 0., false, false},
         {"H1", "input/H1_KW_HVETO_S6A.txt", CWB_HVETO, 0., false, false},
         {"V1", "input/V1_KW_HVETO_S6A.txt", CWB_HVETO, 0., false, false},
         {"L1", "input/S6A_OFFLINE_L1_DQCAT3SEGMENTS.txt", CWB_CAT3,  0., false, false},
         {"H1", "input/S6A_OFFLINE_H1_DQCAT3SEGMENTS.txt", CWB_CAT3,  0., false, false},
         {"V1", "input/S6A_OFFLINE_V1_DQCAT3SEGMENTS.txt", CWB_CAT3,  0., false, false}
        };

* cwb_setveto M1
  apply hveto & cat3 data quality and produce three new ROOT files in the merge directory:

   - merge/wave_*_M1.V_hvetoLHV_cat3LHV.root
   - merge/live_*_M1.V_hvetoLHV_cat3LHV.root (same file as the one produced by cwb_merge)
   - merge/merge_*_M1.V_hvetoLHV_cat3LHV.lst (same file as the one produced by cwb_merge)

* the output vetoed merged files contains a new boolean leaf for each veto type

   - veto_cat3_L1
   - veto_cat3_H1
   - veto_cat3_V1
   - veto_hveto_L1
   - veto_hveto_H1
   - veto_hveto_V1

  the boolean leaf is true if the event is vetoed