GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] Not set McMotherIdx
[FIXED] Not set McMotherIdx [message #14754] Tue, 14 May 2013 18:13 Go to next message
Andreas Pitka is currently offline  Andreas Pitka
Messages: 38
Registered: November 2011
Location: Gießen
continuous participant
From: *physik.uni-giessen.de
Hi,

the McMotherIdx`s seem not to be set in general (they are always -1).

I was using the apr13 release.

Best regards

Andreas

[Updated on: Thu, 04 July 2013 13:48] by Moderator

Report message to a moderator

Re: Not set McMotherIdx [message #14755 is a reply to message #14754] Tue, 14 May 2013 18:25 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Which class and which task?
Re: Not set McMotherIdx [message #14756 is a reply to message #14755] Tue, 14 May 2013 20:00 Go to previous messageGo to next message
Andreas Pitka is currently offline  Andreas Pitka
Messages: 38
Registered: November 2011
Location: Gießen
continuous participant
From: *physik.uni-giessen.de
I was using the PndEvtGenDirect with evtGen->SetStoreTree(kTRUE).

Its reproducable via:

theAnalysis->FillList(MC_Truth,"McTruth");

for (int j=0;j<MC_Truth.GetLength();j++)  
    cout<<MC_Truth[j].GetMcMotherIdx()<<endl;


It would be nice if its set, since PndMcTruthMatch uses the MotherIdx a lot. Smile

Re: Not set McMotherIdx [message #14757 is a reply to message #14756] Wed, 15 May 2013 09:00 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *pool.mediaWays.net
Hi Andreas,

A MC truth candidate has by concept mother and daughters. The MC mother index points to the MC candidate of the current mother. But your MC tracks don't have a MC truth as they already are the MC truth.
In other words: Don't use the MCmatch on the truth list but on a reconstructed candidate list.

Cheers.
Ralf
Re: Not set McMotherIdx [message #14758 is a reply to message #14757] Wed, 15 May 2013 10:26 Go to previous messageGo to next message
Andreas Pitka is currently offline  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

Re: Not set McMotherIdx [message #14928 is a reply to message #14754] Thu, 04 July 2013 13:25 Go to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *gsi.de
Hi.
Issue is fixed within the changes after the apr13 release. The whole MC tree is built, if the information is stored during simulation.

Ralf
Previous Topic: [FIXED] Error while compling pandaroot in macbook pro
Next Topic: [FIXED] DPM
Goto Forum:
  


Current Time: Mon Oct 14 19:37:24 CEST 2024

Total time taken to generate the page: 0.00725 seconds