Dataset/rucio

Check metadata for each tid
rucio get-metadata  datasetName_tidxxx

xAOD related

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

Check error in the file

$ xAODChecker  xAOD.root
Check the content of the file
$ checkxAOD.py  xAOD.root
More in-depth check of the content of a file
$ checkFile.py  xAOD.root
Check container names:
$ checkSG.py  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
$ checkMetaSG.py  xAOD.root
We can use weight tools.
Using C++. To get weight names:
  weightTool->getWeightNames();
Then the values of the weights:
  weightTool->getWeight(wname)
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 CINT

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

or

$ 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: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r10 - 2018-10-03 - 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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback