Message: Re: Saving G4THitsCollection in a TBranch (ROOT) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Saving G4THitsCollection in a TBranch (ROOT) 

Forum: Analysis
Re: Question Saving G4THitsCollection in a TBranch (ROOT)
Date: 11 Jun, 2012
From: Ivana Hrivnacova <Ivana Hrivnacova>

Hello,

In order to save your own object in a Root tree, you have to provide its dictionary. You can find more about this in Root User's Guide in Chapter 15. Adding a Class.

There is a Geant4 example in extended/persistency/P01 demonstrating how to save hits in Root using the Reflex tool for dictionary generation.

I have also put at http://ivana.home.cern.ch/ivana/N02Root.tar.gz a modified novice/N02 example (N02Root), where the dictionary is generated via CINT (you have to run the generate_cint.sh script before running make) which shows another possibility how to save your hits in Root.

Best regards,

Ivana

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Saving G4THitsCollection in a TBranch (ROOT)   (Tsukasa Aso - 11 Jun, 2012)
2 None: Re: Saving G4THitsCollection in a TBranch (ROOT)   (lshl - 18 Jun, 2012)
 Add Message Add Message
to: "Re: Saving G4THitsCollection in a TBranch (ROOT)"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]