GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Fast Simulations » [FIXED] first try with fast simulation problem (error and break and aborting execution)
Re: first try with fast simulation problem [message #16277 is a reply to message #16276] Wed, 09 April 2014 15:47 Go to previous messageGo to previous message
Alexandros is currently offline  Alexandros
Messages: 51
Registered: January 2014
Location: KVI
continuous participant
From: *kvi-cart.rug.nl
The .root file is indeed broken..
If I try file->IsZombie() gives 0 so file is there.
If I try then sile->Recover it says:

"Info in <TFile::Recover>: psi4160_fast.root, recovered key TFolder:cbmroot at address 230
Info in <TFile::Recover>: psi4160_fast.root, recovered key TList:BranchList at address 698
Info in <TFile::Recover>: psi4160_fast.root, recovered key FairFileHeader:FileHeader at address 946
Info in <TFile::Recover>: psi4160_fast.root, recovered key TTree:cbmsim at address 5176972"

Without exiting root I try .L my analysis macro and then I call the function I have.
My macro is like I said before:

void psi4160at8Gev1000eventsAnalysis(int nevts=0)
{
// some variables
int i=0,j=0, k=0, l=0;

// the output file examined
TString InFile="psi4160_fast.root";
TString OutFile="psi4160_out.root";

// initialization
FairLogger::GetLogger()->SetLogToFile(kFALSE);
FairRunAna* fRun = new FairRunAna();
fRun->SetWriteRunInfoFile(kFALSE);

fRun->SetInputFile(InFile);
fRun->SetOutputFile(OutFile);
fRun->Init();

// create an output file for all histograms
TFile *out = TFile::Open("psi4160.root","RECREATE");

// create ntuples for psi(4160), D0 and anti-D0
RhoTuple *npsi4160 = new RhoTuple("npsi4160","npsi4160 Analysis");
RhoTuple *nd0 = new RhoTuple("nd0","nD0 Analysis");
RhoTuple *nantid0 = new RhoTuple("nantid0","nanti-D0 Analysis");

// *** Now the analysis stuff *** //

// the data reader object
PndAnalysis* theAnalysis = new PndAnalysis();
if(nevts==0) nevts= theAnalysis->GetEntries();

and then the real analysis part comes...

But now I am taking this as an error:

FairRootManager::OpenOutFile("psi4160_out.root")
Warning in <TFile::Init>: file psi4160_fast.root probably not closed, trying to recover
Info in <TFile::Recover>: psi4160_fast.root, recovered key TFolder:cbmroot at address 230
Info in <TFile::Recover>: psi4160_fast.root, recovered key TList:BranchList at address 698
Info in <TFile::Recover>: psi4160_fast.root, recovered key FairFileHeader:FileHeader at address 946
Info in <TFile::Recover>: psi4160_fast.root, recovered key TTree:cbmsim at address 5176972
Warning in <TFile::Init>: successfully recovered 4 keys
Fatal in <ApplySequence>: The sequence of actions to read PndMCTrack:1 member-wise was not initialized.
aborting


and then a stack of errors which lead to exit root...

I really have no idea (as you will have probably understood by now) of what is wrong!!!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Photons reconstruction
Next Topic: [Fixed] PndPidCandidate in the scrut task.
Goto Forum:
  


Current Time: Wed Apr 24 00:45:39 CEST 2024

Total time taken to generate the page: 0.00950 seconds