Analysis tree name starting with an integer + TChain

21 views
Skip to first unread message

Ahmed Marwan Foda

unread,
Jan 31, 2017, 2:54:15 PM1/31/17
to GlueX Software Help
Hi,

I am using analysis trees from version05 2pi0pimpip. I can use prooflite manager to run on a single file but When I use a mcaro to run ProofLite with a TChain grouping many files I get the error

Error in <TDSet::Process>: not a correctly initialized TDSet

which I believe is caused by the tree name starting with an integer "2pi0pimpip_Tree". Any Ideas on how to overcome that ?

Thank you.

Cheers, Ahmed.

Paul Mattione

unread,
Jan 31, 2017, 3:09:38 PM1/31/17
to Ahmed Marwan Foda, GlueX Software Help
I don't know why this would be happening with a TChain. I do know that
starting with a # would give you problems if you were doing this (in
ROOT interactive environment):

root -l myfile.root
2pi0pimpip_Tree->Process("DSelector_my.C+");

Instead, you would need to do this:

root -l myfile.root
TTree* locTree = (TTree*)gDirectory->Get("2pi0pimpip_Tree");
locTree->Process("DSelector_my.C+");

Now again, I don't know why you're having problems with a TChain; I use
TChain's with the DPROOFLiteManager and I've never had any problems with
trees starting with a #. But maybe it's related to the above.

- Paul
> --
> You received this message because you are subscribed to the Google
> Groups "GlueX Software Help" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gluex-softwar...@googlegroups.com
> <mailto:gluex-softwar...@googlegroups.com>.
> To post to this group, send email to gluex-s...@googlegroups.com
> <mailto:gluex-s...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gluex-software/64b73ac4-c7e0-469e-a393-e0acc4a5861e%40googlegroups.com
> <https://groups.google.com/d/msgid/gluex-software/64b73ac4-c7e0-469e-a393-e0acc4a5861e%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages