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

Question Saving G4THitsCollection in a TBranch (ROOT) 

Forum: Analysis
Date: 09 Jun, 2012
From: <lshl>

Hi,

I am coding a simulation where all the step information are saved into a G4THitsCollection. I would like to save it directly into a TBranch of ROOT but when I try to do this :

   G4THitsCollection<CalorimeterHit> CalorimeterHitsCollection;
   CalorimeterHitsCollection* trackerCollection;
   ntupl->Branch("event", &trackerCollection); 

I got the following error :

   <TTree::Branch>:  The pointer specified for event is not of a class known to ROOT

I tried to change its type to a TClass by casting, but no change. Anybody knows how to do this ?

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 - 10 Jun, 2012)
2 None: Re: Saving G4THitsCollection in a TBranch (ROOT)   (Ivana Hrivnacova - 11 Jun, 2012)
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: "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 ]