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

Annotation of /PamVMC/inc/PamVMCStack.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Jun 28 07:16:56 2007 UTC (17 years, 5 months ago) by nikolas
Branch: MAIN
File MIME type: text/plain
First release of the Pamela Virtual Montecarlo

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

  ViewVC Help
Powered by ViewVC 1.1.23