|
|
|
|
Re: Not set McMotherIdx [message #14758 is a reply to message #14757] |
Wed, 15 May 2013 10:26 |
Andreas Pitka
Messages: 38 Registered: November 2011 Location: Gießen
|
continuous participant |
From: *physik.uni-giessen.de
|
|
PndMcTruthMatch is doing something like the following
00075 // check whether the mothers of all daughters are the same
00076 for ( Int_t i=1; i<nd; ++i ) {
00077 Int_t dauidx = c.Daughter ( i )->GetMcIdx();
00078
00079 if ( mct[dauidx].GetMcMotherIdx() != mothidx ) {
00080 if(verbose) Info("PndMcTruthMatch::MctMatch","rejected by not matching mother ids in daughters");
00081 return false;
00082 }
00083 }
where mct is the Monte Carlo RhoCandList. Without the MotherIdx set for the particles in the McTruth RhoCandList the PndMcTruthMatch is totally useless, since "Bool_t PndMcTruthMatch::MctMatch ( RhoCandidate& c, RhoCandList& mct, Int_t level, bool verbose )"
returns false all the time.
The problem is not getting the McTruth for a final state particle, but knowing for example if a D0 candidate is made of the tracks belonging to the Monte Carlo Daughters.
[Updated on: Wed, 15 May 2013 10:26] Report message to a moderator
|
|
|
|