cbmRunAna.cxx AddFile AddFriend [message #7363] |
Tue, 30 September 2008 19:14 |
asanchez
Messages: 350 Registered: March 2006
|
first-grade participant |
From: *gsi.de
|
|
Dear all, i try to run the following:
i have from my MC simulation the following outfiles
TString inFile="sim_tof_Bgfulljun08.root";
TString inFile2 = "sim_tof_Bgfulljun08____1.root";
TString inFile3 = "sim_tof_Bgfulljun08____2.root";
they are output of 10k event from urqmd generator.
to read them all, and be able to apply my digi task i do
fRun->SetInputFile(inFile.Data());
fRun->AddFile(inFile2.Data());
fRun->AddFile(inFile3.Data());
fRun->SetOutputFile(outFile);
the problem is now that i want
to use also another task for reco, and then i need
the digi output "outFile" and the MC output
TString inFile="sim_tof_Bgfulljun08.root";
TString inFile2 = "sim_tof_Bgfulljun08____1.root";
TString inFile3 = "sim_tof_Bgfulljun08____2.root";
so by using another macro to run my reco i do,
fRun->SetInputFile(inFile.Data());
fRun->AddFile(inFile2.Data());
fRun->AddFile(inFile3.Data());
fRun->AddFriend(outFile.Data());
fRun->SetOutputFile(RecoFile);
the problem is then that by using AddFile and AddFriend together
the files are not properly added and i the task doesn't find
the Tclonesarray from the files.
but if i do only
fRun->SetInputFile(inFile.Data());
fRun->AddFriend(outFile.Data());
fRun->SetOutputFile(RecoFile);
than it work,
can any of you help me?
thanks a lot
Alicia.
|
|
|