GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Access to MC information after the digitization stage
Re: Access to MC information after the digitization stage [message #18402 is a reply to message #18400] Wed, 05 August 2015 17:18 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *21-87-r.retail.telecomitalia.it
Dear Dominik,
the FairLink structure has been changed and I believe there are no recent tutorials about, I can suggest you to take a look into the Exec function of PndMCMatchNewLinks/PndMCIdealTrackFinderNewLinks.cxx to see how to move between different data levels with FairLinks.

Like line 98:

PndMCTrack *mc = (PndMCTrack *) FairRootManager::Instance()->GetCloneOfLinkData(iter->first);


where iter->first is the FairLink of your supposed digi.

Or lines 115/116:

FairMultiLinkedData gemhitlink = gemhit->GetLinksWithType(FairRootManager::Instance()->GetBranchId("GEMPoint"));
PndGemMCPoint *gempoint = (PndGemMCPoint *) FairRootManager::Instance()->GetCloneOfLinkData(gemhitlink.GetLink(0));


Where from the GemHit it finds the link of the GemPoint, and retrieve the PndGemMCPoint object.

Hope it helps, Tobias is the expert (and he should be in vacation right now).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Update on the SciTil Detector
Next Topic: momentum vs beta for barrel TOF
Goto Forum:
  


Current Time: Sat Apr 27 16:50:25 CEST 2024

Total time taken to generate the page: 0.00911 seconds