Changeset 12581 for fact/tools


Ignore:
Timestamp:
11/21/11 04:05:48 (13 years ago)
Author:
neise
Message:
GetDrsOffset.C initial commit
Location:
fact/tools/rootmacros
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/README.txt

    r12392 r12581  
    151151
    152152
     153---------------------------------------------------------------------------------------
     154GetDrsOffset.C - a ROOT macro calculating the DRS Offset calibration constants
     155       
     156                -- TESTING --
    153157
     158 In case you have taken a file, which is good for calibrating the DRS Offset,
     159        then you can calculate the offset using this macro.
     160        It just calculates the mean value and the RMS for all DRS bins of all pixels
     161        in the file, for the number of events you like.
     162
     163        The output is two TH2Fs, which contain all requested data on the one hand and
     164        on the other hand are good for having an overview.
     165
     166        call it like this:
     167        GetDrsOffset("path/20111111_001.fits.gz")
     168
     169        GetDrsOffset("path/20111111_001.fits.gz", "foo/output.root")
     170        saves the output to a root file
     171
     172        GetDrsOffset("path/20111111_001.fits.gz", "", "bar/test.bin")
     173        saves the output to a binary file.
     174
     175        GetDrsOffset("path/20111111_001.fits.gz", "foo/out.root", "bar/test.bin", false, -1)
     176        produces all output, but does not open a ROOT Canvas.
     177        -1 : means process all events in the given file.
     178       
     179---------------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.