GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » [FIXED] Mc Truth Match
Re: Mc Truth Match [message #15326 is a reply to message #15325] Fri, 23 August 2013 12:38 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 2.235.190*
Ok, I found that the tutorial analysis macro is not loading the ascii param file.
Can you try the following:

        // *** initialization
        FairRunAna* fRun = new FairRunAna();
        FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
        fRun->SetInputFile(inPidFile);

+       TString anaParFile = gSystem->Getenv("VMCWORKDIR");
+       anaParFile +=  "/macro/params/all.par";
+       FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo();
+       parIo1->open(anaParFile.Data(),"in");
        
        FairParRootFileIo* parIO = new FairParRootFileIo();
        parIO->open(inParFile);
        rtdb->setFirstInput(parIO);
+       rtdb->setSecondInput(parIo1);
        
        rtdb->setOutput(parIO);


Please add the "+" lines in your analysis macro, and let me know.

(I realized that by default the "clear" value for Loose is 0.2, and that you were not loading the updated pidana.par).

After you should see:

-I- FairRunTimeDB::InitContainer() ANAPidSelections
ANAPidSelections initialized from Ascii file

[Updated on: Fri, 23 August 2013 12:40]

Report message to a moderator

 
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
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: [FIXED] PndAnalysis::McTruthMatch always returns false, again ....
Next Topic: [FIXED] Bug in RhoCandList (?)
Goto Forum:
  


Current Time: Fri Nov 22 19:14:05 CET 2019

Total time taken to generate the page: 0.03636 seconds