Identifying Files from Chains using TTree::MakeSelector

I have created and analysis routine using TTree::MakeSelector and the data to be analysed is then input via a Chain (TChain).

The problem is that I wish to know which file from the chain is being processed in the void analysis::ProcessFill() part of the routine so different conditions can be applied to different files.

Any ideas on how to do this?

Thanks

Ewan

Hi,

Just use:

fChain->GetCurrentFile()or

Cheers,
Philippe