GRLSelectTool is a utility class which understand GRL XML file. You can apply GRL selection directory from GRL XML in your analysis code.

!!!!! note !!!!!
Currently, it is more better to use TGoodRunListReader in the GoodRunsLists package. It is a official PAT to use GRL XML in ROOT.

19/July/2011 Since XML format(dtd) updated, my GRLSelectTool does not work with latest GRL xml files. Therefore please use official tool(TGoodRunListReader), it work with newest with xml file correctly.


You can use GRLSelectTool as follows.
$ root
root[0] .L GRLSelectTool.cxx+;
root[1] GRLSelectTool grl;          <--- You can also set the XML file when you create a instance like  
root[2] grl.setXML("example.XML");       root[] GRLSelectTool grl("example.XML").  
root[3] grl.print();                <--- Show all Run and LBs in GRL.  
Run:155678 Start=241, End=308;
Run:155697 Start=264, End=266;
Run:155697 Start=268, End=334;
Run:155697 Start=336, End=352;
Run:155697 Start=354, End=506;
root[4] grl.isInGRL(15000, 100);    <--- 1st Argument is RunNumber, 2nd one is LB.  
(bool)0            <--- return false by boolian if the RunNumber and LB is not in given GRL.  
root[5] grl.isInGRL(155697, 300);
(bool)1            <--- return true by boolian if the RunNumber and LB is in given GRL.  

Tool Place

GRLSelectTool is exsit under
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2011-07-19 - ToyonobuOkuyama
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback