Pluto
v6.3.0
Loading...
Searching...
No Matches
PCopyBeam.C
Go to the documentation of this file.
1
//#include "../src/PBulkInterface.h"
2
3
class
PCopyBeam
:
public
PBulkInterface
{
4
5
public
:
6
7
Bool_t
Modify
(
PParticle
**stack,
int
*decay_done,
int
*num,
int
stacksize);
//bulk interface
8
9
ClassDef(
PCopyBeam
, 0)
10
};
11
12
13
bool
PCopyBeam::Modify
(
PParticle
**stack,
int
*decay_done,
int
*num,
int
stacksize) {
14
15
for
(
int
i=0; i<*num; i++) {
16
PParticle
*cur = stack[i];
17
if
((cur->
ID
() > 1000) && (*num < (stacksize-2))) {
18
stack[*num] = cur->
GetScattering
(0);
19
stack[*num+1] = cur->
GetScattering
(1);
20
(*num) += 2;
21
}
22
}
23
return
kTRUE;
24
};
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PBulkInterface::PBulkInterface
PBulkInterface()
PCopyBeam
Definition
PCopyBeam.C:3
PCopyBeam::Modify
Bool_t Modify(PParticle **stack, int *decay_done, int *num, int stacksize)
Definition
PCopyBeam.C:13
PParticle
Definition
PParticle.h:25
PParticle::ID
Int_t ID() const
Definition
PParticle.h:80
PParticle::GetScattering
PParticle * GetScattering(Int_t i)
Definition
PParticle.h:314
pluto6
macros
PCopyBeam.C
Generated by
1.14.0