Thanks. But I really need to add a TFile to the chain … in fact I need to add an instance of my own class which is derived from TFile. Specifically, we have a TCWebFile class which allows access to a remote root file hosted on a Clarens server. I want to add a TCWebFile to my chain.
The TChain “Add” method presumably looks at the string to determine if the file to be added is local or served by rootd, http etc… and then calls the appropriate TFile derived class (?)
Proceed like we do for all types of files using the plug-in manager.
You can open a clarens file with something like
TFile *file = TFile::Open(“clarens://somewhere/myfile.root”);
And add your plug-in for clarens in $ROOTSYS/etc/system.rootrc.
See in this file, teh lines like