Message: Re: ITupleFactory cant store G4ThreeVector objects?! Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: ITupleFactory cant store G4ThreeVector objects?! 

Forum: Analysis
Re: Question ITupleFactory can’t store G4ThreeVector objects?! (Shahrokh)
Date: 31 Jan, 2006
From: Vladimir IVANTCHENKO <vnivanch@mail.cern.ch>

On Mon, 30 Jan 2006, Shahrokh wrote:

> *** Discussion title: Analysis
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/analysis/155"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> I want to store the location and the direction of motion of each particle traversing a plane (scoring plate). 
> For this purpose, I get the location of particle with using this method: G4ThreeVector G4Track::GetPosition(); 
> and the direction of motion with using this method: G4ThreeVector G4Track::GetMomentumDirection(). 
> These methods are used at a class that is derived from G4VSensitiveVolume. 
> Afterwards, for storing this information, I used AIDA::ITupleFactory. 
> I did the following:
> 
> definition
> …
> IAnalysisFactory* factory;
> ITree* tree;
> ITuple* tuple;
> …
> 
> initialization
> …
> ITupleFactory* tupleFactory=factory->createTupleFactory(*tree);
> tuple = tupleFactory->create("tuple", "the characteristics of particle ", "GeThreeVector position"," G4ThreeVector direction");
> …
> Then, the code is compiled successfully with nothing error or warning. 
> But the program crash or abort just after the run.
> At the other words, I want to store G4ThreeVector objects to N-Tuples.
> Could you tellmehow to slove it?
> Please help me.
> 
> 

Please, try to store the vector components.

VI

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

1 Question: Re: ITupleFactory cant store G4ThreeVector objects?!   (Shahrokh - 01 Feb, 2006)
(_ None: Re: ITupleFactory cant store G4ThreeVector objects?!   (Vladimir IVANTCHENKO - 01 Feb, 2006)
(_ Question: Re: ITupleFactory cant store G4ThreeVector objects?!   (Shahrokh - 01 Feb, 2006)
(_ More: Re: ITupleFactory cant store G4ThreeVector objects?!   (Shahrokh - 01 Feb, 2006)
(_ Ok: Re: ITupleFactory cant store G4ThreeVector objects?!   (Shahrokh - 05 Feb, 2006)
 Add Message Add Message
to: "Re: ITupleFactory cant store G4ThreeVector objects?!"

 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 ]