RhoCandList ppbarsystem; ppbarsystem.Combine(lambda, lambdabar); ppbarsystem.SetType(88888); for(int b=0;b<ppbarsystem.GetLength();b++) { if(theAnalysis->McTruthMatch(ppbarsystem[b],2,true)) { // fill some histogram } }
Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 88888 and 2 daughters Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 3122 and 2 daughters Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 2212 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=2212) Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: -211 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=-211) Info in <PndMcTruthMatch::MctMatch>: Particle 3122 reached level of matching, leaves, tree topology and intermediate particle types are matched Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: -3122 and 2 daughters Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: -2212 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=-2212) Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 211 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=211) Info in <PndMcTruthMatch::MctMatch>: Particle -3122 reached level of matching, leaves, tree topology and intermediate particle types are matched Info in <PndMcTruthMatch::MctMatch>: rejected by not existing MC truth of daughter zero
theAnalysis->SetVerbose(1);
-W- CreateMcCandidate: strange PDG code:30443
############################### Begin of Event Analysis Exec -W- CreateMcCandidate: strange PDG code:88888 Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2487c0) to candidate (uid=1) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2494d0) to candidate (uid=2) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a24b3a0) to candidate (uid=3) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a24bd90) to candidate (uid=4) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a24c650) to candidate (uid=5) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2ba0a0) to candidate (uid=6) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2ba7c0) to candidate (uid=7) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2baa20) to candidate (uid=8) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2bbf80) to candidate (uid=9) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2bc440) to candidate (uid=10) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a248c50) to candidate (uid=11) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2b6300) to candidate (uid=12) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2b6530) to candidate (uid=13) Info in <PndAnalysis::BuildMcCands()>: Now setting truth (0x7f9c2a2b7710) to candidate (uid=14) Info in <PndAnalysis::GetEvent()>: Finished loading event fEvtCount=4. smallest chi2 263.672 filling histos Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 88888 and 2 daughters Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 3122 and 2 daughters Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 2212 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=2212) Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: -211 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=-211) Info in <PndMcTruthMatch::MctMatch>: Particle 3122 reached level of matching, leaves, tree topology and intermediate particle types are matched Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: -3122 and 2 daughters Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: -2212 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=-2212) Info in <PndMcTruthMatch::MctMatch>: Investigating in particle with pdg: 211 and 0 daughters Info in <PndMcTruthMatch::MctMatch>: accepted final state by PDG code (pdg=211) Info in <PndMcTruthMatch::MctMatch>: Particle -3122 reached level of matching, leaves, tree topology and intermediate particle types are matched Info in <PndMcTruthMatch::MctMatch>: rejected by not existing MC truth of daughter zero
*** Break *** segmentation violation sed: RE error: illegal byte sequence =========================================================== There was a crash. This is the entire stack trace of all threads: =========================================================== Thread 1 (process 72203): #0 0x00007fff8bb906ac in wait4 () #1 0x00007fff8c34a03a in system () #2 0x000000010dad5f0f in TUnixSystem::StackTrace () #3 0x000000010dad3d67 in TUnixSystem::DispatchSignals () #4 <signal handler called> #5 RhoCandidate::NDaughters (this=0x0) at /Users/simone/fairroot/pandaroot_newest/rho/RhoBase/RhoCandidate.cxx:969 #6 0x000000011377929d in PndAnalysis::MctMatch (this=0x7f9c2a1178b0, c=0x0, mct= 0x7f9c2a117a48, level=2, verbose=true) at /Users/simone/fairroot/pandaroot_newest/PndTools/AnalysisTools/PndAnalysis.cxx:783 #7 0x0000000113779680 in PndAnalysis::McTruthMatch (this=0x7f9c2a1178b0, list= 0x7fff521d7f40, level=2, verbose=<value temporarily unavailable, due to optimizations>) at /Users/simone/fairroot/pandaroot_newest/PndTools/AnalysisTools/PndAnalysis.cxx:774 =========================================================== The lines below might hint at the cause of the crash. If they do not help you then please submit a bug report at http://root.cern.ch/bugs. Please post the ENTIRE stack trace from above as an attachment in addition to anything else that might help us fixing this issue. =========================================================== #5 RhoCandidate::NDaughters (this=0x0) at /Users/simone/fairroot/pandaroot_newest/rho/RhoBase/RhoCandidate.cxx:969 #6 0x000000011377929d in PndAnalysis::MctMatch (this=0x7f9c2a1178b0, c=0x0, mct= 0x7f9c2a117a48, level=2, verbose=true) at /Users/simone/fairroot/pandaroot_newest/PndTools/AnalysisTools/PndAnalysis.cxx:783 #7 0x0000000113779680 in PndAnalysis::McTruthMatch (this=0x7f9c2a1178b0, list= 0x7fff521d7f40, level=2, verbose=<value temporarily unavailable, due to optimizations>) at /Users/simone/fairroot/pandaroot_newest/PndTools/AnalysisTools/PndAnalysis.cxx:774 ===========================================================
Quote: |
I believe this it due to a mismatch of the PDG codes used by EvtGen and those in TDatabasePDG. |
virtual TParticlePDG* AddParticle(const char* Name, const char* Title, Double_t Mass, Bool_t Stable, Double_t DecayWidth, Double_t Charge, const char* ParticleClass, Int_t PdgCode, Int_t Anti=-1, Int_t TrackingCode=0);
TDatabasePDG::Instance()->AddParticle("pbarpSystem","pbarpSystem",1.9,kFALSE,0.1,0,"",88888)