Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postprocessor does not work in Root 6.22 (within CMSSW) #277

Open
andreypz opened this issue May 11, 2021 · 0 comments
Open

Postprocessor does not work in Root 6.22 (within CMSSW) #277

andreypz opened this issue May 11, 2021 · 0 comments

Comments

@andreypz
Copy link
Contributor

I'm trying to run the nano-tools code within CMSSW_11_3_0_pre6 (which has ROOT 6.22) and it's failing with a ROOT error.
More specifically, I run the example command from the readme:

python scripts/nano_postproc.py outDir ~/work/NanoV7.root -I PhysicsTools.NanoAODTools.postprocessing.examples.exampleModule exampleModuleConstr

and I get this error:

Traceback (most recent call last):
  File "scripts/nano_postproc.py", line 94, in <module>
    p.run()
  File "/nfs/dust/cms/user/andreypz/vhcc-nano/May2021_test/CMSSW_11_3_0_pre6/python/PhysicsTools/NanoAODTools/postprocessing/framework/postprocessor.py", line 196, in run
    inTree = InputTree(inTree, elist)
  File "/nfs/dust/cms/user/andreypz/vhcc-nano/May2021_test/CMSSW_11_3_0_pre6/python/PhysicsTools/NanoAODTools/postprocessing/framework/treeReaderArrayTools.py", line 12, in InputTree
    tree._ttreereader = ROOT.TTreeReader(tree, tree._entrylist)
TypeError: none of the 5 overloaded methods succeeded. Full details:
  TTreeReader::TTreeReader(TTree* tree, TEntryList* entryList = nullptr) =>
    TypeError: could not convert argument 2
  TTreeReader::TTreeReader(const char* keyname, TDirectory* dir, TEntryList* entryList = nullptr) =>
    TypeError: could not convert argument 1 (expected string or Unicode object, TTree found)
  TTreeReader::TTreeReader(const TTreeReader&) =>
    TypeError: takes at most 1 arguments (2 given)
  TTreeReader::TTreeReader() =>
    TypeError: takes at most 0 arguments (2 given)
  TTreeReader::TTreeReader(const char* keyname, TEntryList* entryList = nullptr) =>
    TypeError: could not convert argument 1 (expected string or Unicode object, TTree found)

The same command works in earlier versions of CMSSW which uses ROOT 6.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant