GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » [CLOSED] Wrong particle in FillList
Re: Wrong particle in FillList [message #15228 is a reply to message #15227] Fri, 16 August 2013 15:20 Go to previous messageGo to previous message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *gsi.de
Hi,


concerning the true PID (I guess you mean PidAlgoIdealCharged) I didn't test it myself. Usually I test whether the macros in tutorials/rho run properly and the output looks reasonable.

But since in the example also true PID is used for some histos, leading to reasonable results, it should work in principle. What I did there is to select true PID depending on the McTruthMatch.

int PndTutAnaTask::SelectTruePid(PndAnalysis *ana, RhoCandList &l) {
	int removed = 0;
	for (int ii=l.GetLength()-1;ii>=0;--ii) {
		if ( !(ana->McTruthMatch(l[ii])) ) {
			l.Remove(l[ii]);
			removed++;
		}
	}
	return removed;
}


Best,
Klaus
 
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: MVD Particle Identification in analyses
Next Topic: [WONTFIX] Tutorial macro - trunk
Goto Forum:
  


Current Time: Thu Dec 26 20:15:44 CET 2024

Total time taken to generate the page: 0.00846 seconds