GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » How to store only MCTrack in a root file?
Re: How to store only MCTrack in a root file? [message #6829 is a reply to message #6827] Mon, 02 June 2008 20:50 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hi,

1) how I can store the MCTrack three into a root file with a full simulation


if you mean running full simulation, and storing only the stack (MCTrack) without the points in the different detectors, then just add all detectors you need and set the detector sensitivity flag to kFALSE. i.e:

Quote:

CbmDetector *Mvd = new PndMvdDetector("MVD", kFALSE);


doing this the detector material is taken into account but the ProcessHit of the detector is not called, thus the output tree will have only the stack and the event header!


 2) is there a possibility to rewrite only MCTrack three into a new root file (from a simulation file which contains others threes) ? 


see $ROOTSYS/tutorials/tree/copytree2

on how to copy a branches or whole tree!

hope this will help!

regards

Mohammad
 
Read Message
Read Message
Previous Topic: Time stamps in MCEventHeader
Next Topic: Cooking gas mixtures
Goto Forum:
  


Current Time: Thu Dec 26 22:44:57 CET 2024

Total time taken to generate the page: 0.00701 seconds