DVM analysis, a step-by-step description

  1. First thing to do is to convert the raw files ***.bin into root files

  2.  For this you can use the script
    macros/process filename.bin
      macros/initbatch.C
      which use the library
      macros/read_C..so
      base on the macro macros/read.C
      please, be aware that in this initbatch you are loading the "read" library in a line like
      gROOT->ProcessLine(".L read.C") ;
      you should verify the path.
      .L read.C++  in a root4star session
       
    At the end of running process you will have the output files ***.bin.raw.root and ***.bin.res.root.
    While taking new data, this step should be done from time to time and then you could copy the root files somewhere, in order to avoid virgo to be full. This step is loooong and boring.
     
     
  3. You can change the file names with the time_and_date inside in order to create a list of "ordered files" for your ***.bin.res.root

  4. For this use the simple macro
    .x macros/Convert_myLabview_oldLabview.C("yourpathin","yourpathout") (in a root4star session)
       
    At the end  you will have the output files rawdata00.bin.res.root, rawdata01.bin.res.root, rawdata02.bin.res.root, rawdata03.bin.res.root ... in the path of your choice.
     
     
  5. The whole analysis to obtain the Drift Velocity and the Argon content proposed with Magboltz calculations will be done then

  6.  For this you can use the macro
    .x macros/ReadDV_openCuts.C(your_data_path,first_year,last_year,first_month,last_month,first_day,last_day,first_file_number,last_file_number)
    for example :  .x macros/ReadDV_openCuts.C("Data/",2002,2002,2,2,1,2,0,3)
    At the end of running ReadDV_openCuts you will have a plot with the Drift velocity calculated before and after pressure corrections, a inverse pressure and a Argon content plot in function of the time.

    Stored data

                                                                   pressure information in BNL on virgo: /mnt/data1/pclusa8/Data/ProcessDV/DataPressure_Sep_Jan.root                                                              

Created by Maria MORA