/[PAMELA software]/PamVMC/include/PamVMCStack.h
ViewVC logotype

Contents of /PamVMC/include/PamVMCStack.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jun 12 18:39:19 2009 UTC (15 years, 6 months ago) by pam-rm2
Branch: MAIN
CVS Tags: v1r0, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
- Introduced user-defined names of output files and random seeds number.
Users can do it use options of PamVMCApplication constructor:
PamVMCApplication(const char* name,  const char *title, const char*
filename="pamtest", Int_t seed=0).
The Random object that I use is TRandom3 object which has astronomical
large period (in case of default initialization 0). All random generators
in the code use this object by calling of gRandom singleton which keeps
it.

- Corrected TOF digitization routine. No problems with TDC hits due to
hadronic interactions anymore.

- Some small changes was done to compile code under Root 5.23. +
geant4_vmc v. 2.6 without any warnings

- Some classes of PamG4RunConfiguartion was changed for geant4_vmc v.
2.6.Some obsolete classes was deleted as soon as developers implemented
regions.

- Navigation was changed from "geomRootToGeant4" to "geomRoot", because on
VMC web page written that as soon as Geant4 has no option ONLY/MANY
translation of overlapped geometry to Geant4 through VGM could be wrong.
I'd like to stay with Root navigation:
http://root.cern.ch/root/vmc/Geant4VMC.html. This should be default
option.

- New Tracker digitization routine written by Sergio was implemented

- PamVMC again became compatible with geant4_vmc v.2.5 and ROOT 5.20.
 The problem was that ROOT developers introduced in TVirtualMC class a new
method SetMagField and new base class:TVirtualMagField from which
user-defined classes shoukd be derived

1 // $Id: PamVMCStack.h,v 1.0 2007/06/03
2 //
3 // Class PamVMCStack
4
5
6 #ifndef PAMVMC_STACK_H
7 #define PAMVMC_STACK_H
8
9 #include <TVirtualMCStack.h>
10
11 #include "PamVMCParticle.h"
12
13 #include <stack>
14
15 class PamVMCParticle;
16 class TClonesArray;
17
18 class PamVMCStack : public TVirtualMCStack
19 {
20 public:
21 PamVMCStack(Int_t size);
22 PamVMCStack();
23 virtual ~PamVMCStack();
24
25 // methods
26 virtual void PushTrack(Int_t toBeDone, Int_t parent, Int_t pdg,
27 Double_t px, Double_t py, Double_t pz, Double_t e,
28 Double_t vx, Double_t vy, Double_t vz, Double_t tof,
29 Double_t polx, Double_t poly, Double_t polz,
30 TMCProcess mech, Int_t& ntr, Double_t weight,
31 Int_t is) ;
32 virtual PamVMCParticle* PopNextTrack(Int_t& track);
33 virtual PamVMCParticle* PopPrimaryForTracking(Int_t i);
34 virtual void Print(Option_t* option = "") const;
35 void Reset();
36
37 // set methods
38 virtual void SetCurrentTrack(Int_t track);
39
40 // get methods
41 virtual Int_t GetNtrack() const;
42 virtual Int_t GetNprimary() const;
43 virtual PamVMCParticle* GetCurrentTrack() const;
44 virtual Int_t GetCurrentTrackNumber() const;
45 virtual Int_t GetCurrentParentTrackNumber() const;
46 PamVMCParticle* GetParticle(Int_t id) const;
47
48 private:
49 // data members
50 std::stack<PamVMCParticle*> fStack; //!
51 TClonesArray* fParticles;
52 Int_t fCurrentTrack;
53 Int_t fNPrimary;
54
55 ClassDef(PamVMCStack,1) // PamVMCStack
56 };
57
58 #endif //PAMVMC_STACK_H
59
60

  ViewVC Help
Powered by ViewVC 1.1.23