Can I use wild cards in script?

Hi

I’m trying to include all the files from a directory in a TChain with the command

I can successfully use the command:
chain->Add(“root://machine_name//path/cph108-2.stn”);

But I want to include all of the files in the directory (which differ only in the number before ‘.stn’), so I tried:
chain->Add(“root://machine_name//path/cph108-*.stn”);

When I executed my script (see below) there were no files included in the chain.

I am using ROOT version Version 3.05/04, with FermiLinux 7.3

Is this exected behaviour (ie. can I use wild cards in scripts), or I’m I doing something wrong?

Thanks,
Andrew

-------------my script------------------------------
TChain chain = new TChain(“STNTUPLE”);
int dipho_trig_ana() {
TAuthenticate::SetGlobalUser(“cdfdata”);
chain->Add("root://fcdfdata045.fnal.gov//cdf/scratch/cdfdata/scratch/cph108/cph108-
.stn");
x = new TStnAna(chain);
TDiPhotonTriggerModule* m = new TDiPhotonTriggerModule;
x.AddModule(m);
x.Run();

Support for wildcarding in TChain::Add was only implemented in version 3.10/01.
With previous versions, you can use wildcarding via
TChain::AddFile, eg
chain.AddFile(“xxx*.root”,TChain::kBigNumber);

Rene