Accessing output from TSelector and Proof

Hello, I’m currently using a TSelector combined with TProof. I initialize a session of TProof and Load my TSelector class. I have a TChain, and I attach the proof session to the chain, and then run the Selector with Chain->Process(“MySelector”)

This works all fine and dandy, but my TSelector creates some histograms that I’d like to be able to access from another code, I know I can print the histograms in the Terminate( ) portion of my TSelector, but I’d like to do something like this:

TChain *fChain = new TChain("T");

TProof *pl = TProof::Open("workers=4");

MuseSelector *sel = new MuseSelector() // This is my custom selector class

// TSelector and TProof do their thing

//Draw two histograms which are member variables of MuseSelector and were filled above.
sel->histogram_y->Draw("ep same");

but I get this kind of error with that:

IncrementalExecutor::executeFunction: symbol '_ZTV12MuseSelector' unresolved while linking [cling interface function]!
You are probably missing the definition of vtable for MuseSelector
Maybe you need to load the corresponding shared library?

I’ve attached the codes I’m using below. Thanks
Test.C (818 Bytes)
MuseSelector.h (7.0 KB)
MuseSelector.C (14.3 KB)

Did you try to compile selector with pl->Load("MuseSelector.C+");?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.