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 #16272 is a reply to message #16267] Wed, 09 April 2014 13:25 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
Hallo again,

So I tried to change few things in my macro but it still doesn't work...
Now i am having a different error..
Here is the beggining of my macro:

class RhoCandList;
class RhoCandidate;
class PndAnaPidSelector;
class PndAnaPidCombiner;
class PndAnalysis;
class RhoTuple;
class PndPidCandidate;

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

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

// the files coming from the simulation
//TString inPidFile = "pid_complete.root"; // this file contains the PndPidCandidates and McTruth
//TString inParFile = "simparams.root";

// PID table with selection thresholds; can be modified by the user
//TString pidParFile = TString(gSystem->Getenv("VMCWORKDIR"))+"/macro/params/all.par";

// initialization
FairLogger::GetLogger()->SetLogToFile(kFALSE);
FairRunAna* fRun = new FairRunAna();
fRun->SetWriteRunInfoFile(kFALSE);
//FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
//fRun->SetInputFile(inPidFile);

// setup parameter database
//FairParRootFileIo* parIO = new FairParRootFileIo();
//parIO->open(inParFile);
//FairParAsciiFileIo* parIOPid = new FairParAsciiFileIo();
//parIOPid->open(pidParFile.Data(),"in");

//rtdb->setFirstInput(parIO);
//rtdb->setSecondInput(parIOPid);
//rtdb->setOutput(parIO);
fRun->SetInputFile(OutFile);
//fRun->SetOutputFile(OutFile);
fRun->Init();

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

and then tuples, while(...) and so on...

So what is wrong this time???
Do I have to create and use somehow my own "dummy_out.root" file cause I see it in the ana_jpsi.C analysis macro...

Thank you in advance for your time!!!
 
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 Nov 06 17:48:02 CET 2024

Total time taken to generate the page: 0.00804 seconds