GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » How to store only MCTrack in a root file?
How to store only MCTrack in a root file? [message #6827] Mon, 02 June 2008 17:44 Go to next message
Aleksandra Biegun is currently offline  Aleksandra Biegun
Messages: 64
Registered: May 2007
Location: Groningen
continuous participant
From: *KVI.nl
Hi,

I have 2 questions:
1) how I can store the MCTrack three into a root file with a full simulation (or)
2) is there a possibility to rewrite only MCTrack three into a new root file (from a simulation file which contains others threes) ?

I need only MCTrack and the simulation file with all informations
for Points is quite big.

Thanks in advance for the answer.

Cheers,
Ola.


Aleksandra Biegun
University of Groningen/KVI
Zernikelaan 25, 9747 AA Groningen
tel. +31 50 363 3630
fax. +31 50 363 4003
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
Previous Topic: Time stamps in MCEventHeader
Next Topic: Cooking gas mixtures
Goto Forum:
  


Current Time: Thu May 16 07:34:00 CEST 2024

Total time taken to generate the page: 0.00965 seconds