Check metadata for each tid
rucio get-metadata  datasetName_tidxxx

xAOD related

To enable the following scripts
$ asetup AthDerivation
(or asetup AthDerivation 21.2,latest )

Check error in the file

$ xAODChecker  xAOD.root
Check the content of the file (also works with ESD and RDO)
$  xAOD.root
More in-depth check of the content of a file (also works with ESD and RDO)
$  xAOD.root
Check container names:
$  xAOD.root
Pritn tree content of a derivation
root [2] CollectionTree->MakeSelector(“OutputName")
Print the branches of the tree
root [2] CollectionTree->MakeClass(“OutputName")
Check veriables in a container
root [2] CollectionTree->Print("egClusterCollection*")
Check meta data including weights
$  xAOD.root
We can use weight tools.
Using C++. To get weight names:
Then the values of the weights:
Cross section and Filter efficiency using rootCore
 double xs = wk()->metaData()->castDouble(SH::MetaFields::crossSection, 1);
 double eff = wk()->metaData()->castDouble(SH::MetaFields::filterEfficiency, 1);
 double kfactor = wk()->metaData()->castDouble(SH::MetaFields::kfactor, 1);


root [0] .> output.txt
root [1] CollectionTree->Print();
root [2] .>
root [0] .> outputMuons.txt
root [1] CollectionTree->Print("Muons*");
root [2] .>


$ root anAOD.root
root [1] TTree* tt = (TTree*)_file0->Get("CollectionTree”)
root [2] tt->Draw("McEventCollection_p5_GEN_EVENT/m_genParticles/m_px")

-- KenjiHamano - 2016-09-02

Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r12 - 2021-05-06 - KenjiHamano
    • 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-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback