Message: Integrating a class into a G4 MT enviorment Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Integrating a class into a G4 MT enviorment 

Forum: Multithreading
Date: 28 Apr, 2014
From: William Donahue <William Donahue>

Hi Everyone,

I have constructed my own class for storing my event data. I have not used the G4 framework because it did not seem to fit in a seamless fashion. I was wondering how and where I should instantiate this class. I know that I need to create a new one for each thread and then merge them into the master file.

I have included the header file so that you can see what functions it has. I have created a merge function to be incorporated into the RunAction Merge function. I am using the Example B1 as the basis for my code structure. I noticed that the Merge function provided in this only accepts a Run object.

Also do i need to add the G4ThreadLocal tag to my header file.

Thanks,

Will

P.S. If you think I am reinventing the wheel with my class and want to know why i am doing it, please see my post in Biasing and scoring (http://hypernews.slac.stanford.edu/HyperNews/geant4/get/biasing_scoring/119.html)

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2014/04/28/06.45-46662-spheredetect.hh

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

1 Idea: Re: Integrating a class into a G4 MT enviorment   (Andrea Dotti - 28 Apr, 2014)
1 None: Re: Integrating a class into a G4 MT enviorment   (William Donahue - 28 Apr, 2014)
2 None: Re: Integrating a class into a G4 MT enviorment   (William Donahue - 28 Apr, 2014)
 Add Message Add Message
to: "Integrating a class into a G4 MT enviorment"

 Subscribe Subscribe

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