Message: ITupleFactory canít store G4ThreeVector objects?! Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question ITupleFactory canít store G4ThreeVector objects?! 

Keywords: ITupleFactory store G4ThreeVector
Forum: Analysis
Date: 30 Jan, 2006
From: Shahrokh <Shahrokh>

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.

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

1 None: Re: ITupleFactory cant store G4ThreeVector objects?!   (Vladimir IVANTCHENKO - 31 Jan, 2006)
(_ 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: "ITupleFactory canít 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 ]