Pluto v6.3.0
Loading...
Searching...
No Matches
PEmbeddedParticles.h
Go to the documentation of this file.
1// Author: Ingo Froehlich
2// Written: 11/07/2007
3// Modified:
4// PEmbeddedParticles Class Header
5
6#ifndef _PEMBEDDEDPARTICLES_H_
7#define _PEMBEDDEDPARTICLES_H_
8
9#include "PBulkInterface.h"
10
11#define MAX_EMBEDDEDPARTICLES 500
12
14
15 private:
16
18 Int_t downscaling [MAX_EMBEDDEDPARTICLES];
19 Int_t last_downscaling[MAX_EMBEDDEDPARTICLES];
20 Int_t local_pos;
21
22 Int_t local_version[MAX_EMBEDDEDPARTICLES];
23
24 //Cone sampling:
25 Double_t local_pMin [MAX_EMBEDDEDPARTICLES];
26 Double_t local_pMax [MAX_EMBEDDEDPARTICLES];
27 Double_t local_mMin [MAX_EMBEDDEDPARTICLES];
28 Double_t local_mMax [MAX_EMBEDDEDPARTICLES];
29 Double_t local_openingAngle[MAX_EMBEDDEDPARTICLES];
30 Double_t local_theta [MAX_EMBEDDEDPARTICLES];
31 Double_t local_phi [MAX_EMBEDDEDPARTICLES];
32
33 //Alternative "sector" sampling
34 Double_t local_thetaMin[MAX_EMBEDDEDPARTICLES];
35 Double_t local_thetaMax[MAX_EMBEDDEDPARTICLES];
36 Double_t local_phiMin [MAX_EMBEDDEDPARTICLES];
37 Double_t local_phiMax [MAX_EMBEDDEDPARTICLES];
38 Int_t nParticle;
39 Double_t startPhi;
40
41 //From batch system
42 Double_t *vertex_x, *vertex_y, *vertex_z;
43
44 protected:
45
46
47 public:
48
50
51 Bool_t Modify(PParticle **stack, int *decay_done, int *num, int stacksize); //bulk interface
52
53 Bool_t AddParticle(PParticle * particle, int downsc = 1);
54
55
56 Bool_t SetSampling(Double_t pMin, Double_t pMax,
57 Double_t openingAngle, Double_t theta, Double_t phi,
58 Double_t mMin = 0., Double_t mMax = -.1);
59
60 Bool_t SetSamplingSector(Double_t pMin , Double_t pMax,
61 Double_t thetaMin, Double_t thetaMax,
62 Double_t phiMin , Double_t phiMax,
63 Double_t phiStartVal, Int_t numParticle,
64 Double_t deltaPhi = 60., Int_t numSectors = 6);
65
66 ClassDef(PEmbeddedParticles,0) // Add embedded particles in a PReaction
67};
68#endif
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#define MAX_EMBEDDEDPARTICLES
Bool_t AddParticle(PParticle *particle, int downsc=1)
Bool_t SetSamplingSector(Double_t pMin, Double_t pMax, Double_t thetaMin, Double_t thetaMax, Double_t phiMin, Double_t phiMax, Double_t phiStartVal, Int_t numParticle, Double_t deltaPhi=60., Int_t numSectors=6)
Bool_t SetSampling(Double_t pMin, Double_t pMax, Double_t openingAngle, Double_t theta, Double_t phi, Double_t mMin=0., Double_t mMax=-.1)
Bool_t Modify(PParticle **stack, int *decay_done, int *num, int stacksize)