Re: [BLAST_SHIFTS] how to run the vector polarization determination macro

From: Chi Zhang (zhangchi@MIT.EDU)
Date: Fri Jul 23 2004 - 15:14:23 EDT


Hi,

I hope this trick I once put into init.C still works after many
revisioins. Hope this will make life a bit easier.

when running any macro, as long as it calls init.C and opens lr/flr root
file, you can say:
        root macro.C #### ####-#### closed
Then init.C will skip any root files that are not properly closed. root
will complain about no key, not closed root files once but the file will
be skipped automatically.

I am not sure it still works cos a lot has been changed in init.C. you can
try. The way to tell if it worked is to see if root complain about the
same file more than once.

Chi

On Fri, 23 Jul 2004, Aaron Joseph Maschinot wrote:

>
> one more important point about running this macro... (or any macros,
> really)
>
> when you run this macro, root will sometimes yell at you about files
> either missing keys or else not having their charge recorded correctly or
> other things. please do not include such files in your polarization
> determination. if such "bad" files exist, note what the bad files are,
> stop the macro from running, remove the bad files from the file listing,
> and restart the macro.
>
> below is an example of what "bad" files look like when this macro runs:
>
> Warning in <TFile::Init>: file /net/data/4/Analysis/data/flr-9051.root
> probably not closed, trying to recover
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9051.root,
> recovered key TNtuple:chg at address 8910641
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9051.root,
> recovered key TNtuple:flrpm at address 11882990
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9051.root,
> recovered key TNtuple:flr at address 14244306
> Warning in <TFile::Init>: successfully recovered 3 keys
> Warning in <TFile::Init>: file /net/data/4/Analysis/data/flr-9057.root
> probably not closed, trying to recover
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9057.root,
> recovered key TNtuple:chg at address 17995
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9057.root,
> recovered key TNtuple:flr at address 811611
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9057.root,
> recovered key TNtuple:flrpm at address 1385713
> Warning in <TFile::Init>: successfully recovered 3 keys
> Warning in <TFile::Init>: file /net/data/4/Analysis/data/flr-9078.root
> probably not closed, trying to recover
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9078.root,
> recovered key TNtuple:flr at address 264
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9078.root,
> recovered key TNtuple:flrpm at address 14058
> Info in <TFile::Recover>: /net/data/4/Analysis/data/flr-9078.root,
> recovered key TNtuple:chg at address 24595
> Warning in <TFile::Init>: successfully recovered 3 keys
>
> aaron
>



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:31 EST