TSelector in a Proof session

Hello

I’m starting to use Proof. Sorry if the question is too stupid.

I have a TSelector** that currently works as this:

aSelector * myS = (aSelector *)TSelector::GetSelector("aSelector.C+");
myS->public_att1=1
myS->public_att2=2

TChain * chain = new TChain ("myTTree");
chain->AddFile( "aFile.root" );
chain->Process( myS );

But, if I try to start a Proof local session like this,

aSelector * myS = (aSelector *)TSelector::GetSelector("aSelector.C+");
myS->public_att1=1
myS->public_att2=2

TChain * chain = new TChain ("myTTree");
chain->AddFile( "aFile.root" );
    **TProof * myCluster = TProof::Open("","workers=4");**
**    chain->SetProof();**
chain->Process( myS );

An error appear:
Info in TProofLite::SetQueryRunning: starting query: 1
Info in TProofQueryResult::SetRunning: nwrks: 4
Looking up for exact location of files: OK (1 files)
Looking up for exact location of files: OK (1 files)
Info in TPacketizer::TPacketizer: Initial number of workers: 4
Validating files: OK (1 files)
Error in TStreamerInfo::Build: ROOT::Detail::TBranchProxy, unknown type: void* fWhere

The TChain is not processed. I think the TSelector doesn’t initialize the histograms properly. I tried with histograms as global variables (but initialized in slavebegin) and as public attributes of my selector.

Any suggestion will be welcomed.

Regards,
atd
** It was build by TTree::MakeSelector, and I added some public attributes to the selector, and filled the methods slavebeging (initialize histograms), process, terminate (merge histograms).

Hello,

Can you give some more details on what you do inside the selector?
Where do you create the histogram?
Do you add it to the output list?

G Ganis

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