Re: Mc Truth Match [message #15326 is a reply to message #15325] |
Fri, 23 August 2013 12:38 |
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
|
|
|
|
|
|
|
|
|
|
|
Re: Mc Truth Match [message #15336 is a reply to message #15332] |
Fri, 23 August 2013 14:38 |
MartinJGaluska
Messages: 203 Registered: March 2010 Location: Germany
|
first-grade participant |
From: *physik.uni-giessen.de
|
|
How about introducing a sixth category: "Charged, other than electron, muon, pion, kaon, proton"? PidAlgoIdealCharged could set all probabilities to 0 and the sixth probability to 1. Or would that introduce other problems?
[Updated on: Fri, 23 August 2013 15:01] Report message to a moderator
|
|
|
|
Re: Mc Truth Match [message #15349 is a reply to message #15346] |
Fri, 23 August 2013 17:31 |
Klaus Götzen
Messages: 293 Registered: June 2006 Location: GSI
|
first-grade participant |
From: *adsl.alicedsl.de
|
|
This depends on whether we want to change structure or add another PID type different to e, mu, pi, K, p.
|
|
|