GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » [FIXED] PndAnalysis::McTruthMatch always returns false
icon9.gif  [FIXED] PndAnalysis::McTruthMatch always returns false [message #14960] Mon, 15 July 2013 14:21 Go to previous message
Simone Esch is currently offline  Simone Esch
Messages: 37
Registered: August 2010
Location: Forschungszentrum Jülich...
continuous participant

From: *vpn.kfa-juelich.de
Hi everyone!

at the moment I try to reconstruct Lambda LambdaBar events with the new Rho Classes and PndAnalysis.
There is output which I dont understand


I have done the following:

theAnalysis->FillList(mctrack,"McTruth","McTruth");
theAnalysis->FillList(protonplus,"ProtonLoosePlus","PidAlgoIdealCharged");
theAnalysis->FillList(pionminus,"PionLooseMinus","PidAlgoIdealCharged");

lambda.Cleanup();
lambda.Combine(protonplus, pionminus); 
lambda.SetType(3122);
for (int r=0; r< lambda.GetLength();r++)
	{
		fLambdaMass->Fill( lambda[r]->M() );
		std::cout << "ndaughters " << lambda[r]->NDaughters() << std::endl;

		lambda[r]->Daughter(0)->PrintOn(std::cout);
		std::cout << std::endl;
		lambda[r]->Daughter(0)->GetMcTruth()->PrintOn(std::cout);
		std::cout << std::endl;
		std::cout << std::endl;
                theAnalysis->McTruthMatch(lambda[r],0,true)
	}



This gives me the following output

ndaughters 2
uid:2 trk:1 (-0.22592,0.0670787,0.84685;1.28571) 1e 0.938272 GeV/c2  (0,0,0,4) daughters: 0() pdg: 2212 PID:0,0,0,0,1,  mc truth pointer: 0x7fb13f203680
uid:5 trk:-1 (-0.225709,0.0602535,0.849309;1.28696) 1e 0.938272 GeV/c2  (0,0,0,32) daughters: 0() pdg: 2212 PID:-999999,-999999,-999999,-999999,-999999,  mc truth pointer: 0

uid:3 trk:2 (0.0527879,0.0460279,0.232573;0.280134) -1e 0.13957 GeV/c2  (0,0,0,8) daughters: 0() pdg: -211 PID:0,0,1,0,0,  mc truth pointer: 0x7fb13f2038b0
uid:6 trk:-1 (0.056507,0.047805,0.224331;0.274377) -1e 0.13957 GeV/c2  (0,0,0,64) daughters: 0() pdg: -211 PID:-999999,-999999,-999999,-999999,-999999,  mc truth pointer: 0

Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=2212)
Info in <PndMcTruthMatch::MctMatch>: rejected composite (pdg=3122) by non-matching daughter: idau=0



My questions are now:
Why is the treknumber trk from my MCTruth Candidates always -1? Should it not be the same number as above ( This is the position in the TCA, right? )

Why are ALL my MctMatch false? Somehow this dosnt work or I am doing it wrong

External Packages: Apr13
Pandaroot: REV 20654

Best Regards

Simone

[Updated on: Fri, 19 July 2013 09:42] by Moderator

Report message to a moderator

 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon7.gif
Read Message
Previous Topic: RHO: Major Modifications
Next Topic: Vertex fitters' problems
Goto Forum:
  


Current Time: Thu Nov 28 20:37:20 CET 2024

Total time taken to generate the page: 0.00818 seconds