/[PAMELA software]/PamCAL/include/PamVMCPrimaryGenerator.h
ViewVC logotype

Contents of /PamCAL/include/PamVMCPrimaryGenerator.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Nov 12 10:10:19 2007 UTC (17 years ago) by nikolas
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
More basic files added

1 // $Id: PamVMCPrimaryGenerator.h,v 1.0 2007/06/03
2
3
4 #ifndef PAMVMC_PRIMARY_GENERATOR_H
5 #define PAMVMC_PRIMARY_GENERATOR_H
6
7 #include <TVirtualMCApplication.h>
8
9 class TVirtualMCStack;
10 class TVector3;
11
12 class PamVMCPrimaryGenerator : public TObject
13 {
14 public:
15 PamVMCPrimaryGenerator(TVirtualMCStack* stack);
16 PamVMCPrimaryGenerator();
17 virtual ~PamVMCPrimaryGenerator();
18
19 // methods
20 void GeneratePrimaries();
21
22 // set methods
23 void SetParticle(Int_t pdg);
24 void SetKinEnergy(Double_t kinEnergy);
25 void SetDirection(Double_t dirX, Double_t dirY, Double_t dirZ);
26 void SetOptPhotonPolar(Double_t angle);
27 void SetNofPrimaries(Int_t nofPrimaries);
28
29 private:
30 // methods
31 void GeneratePrimary();
32
33 // data members
34 TVirtualMCStack* fStack;
35 Int_t fPdg;
36 Double_t fKinEnergy;
37 Double_t fDirX;
38 Double_t fDirY;
39 Double_t fDirZ;
40 Double_t fPolAngle;
41 Int_t fNofPrimaries;
42
43 ClassDef(PamVMCPrimaryGenerator,1) //PamVMCPrimaryGenerator
44 };
45
46 // inline functions
47
48 inline void PamVMCPrimaryGenerator::SetParticle(Int_t pdg)
49 { fPdg = pdg; }
50
51 inline void PamVMCPrimaryGenerator::SetKinEnergy(Double_t kinEnergy)
52 { fKinEnergy = kinEnergy; }
53
54 inline void PamVMCPrimaryGenerator::SetNofPrimaries(Int_t nofPrimaries)
55 { fNofPrimaries = nofPrimaries; }
56
57 #endif //PAMVMC_PRIMARY_GENERATOR_H
58

  ViewVC Help
Powered by ViewVC 1.1.23