Pluto v6.3.0
Loading...
Searching...
No Matches
PBulkInterface.h
Go to the documentation of this file.
1// Author: Ingo Froehlich
2// Written: 10/07/2007
3// Modified:
4// PBulkInterface Class Header
5
6#ifndef _PBULKINTERFACE_H_
7#define _PBULKINTERFACE_H_
8
9#include "PParticle.h"
10#include "TTree.h"
11
12#define PPROJECTOR_PRIORITY 99
13#define FILTER_PRIORITY 60
14#define DECAY_PRIORITY 50
15#define FILEINPUT_PRIORITY 1
16
17class PBulkInterface;
20
21class PBulkInterface: public TObject {
22
23 private:
24
25 static Int_t gBulkCounter;
26
27 protected:
28
30 Int_t bulk_id; //Unique bulk ID
31 Int_t fPriority; //order when adding the bulk in PReaction
32 TTree *tree; //Pointer to storage tree
37
38 public:
39
41
42 virtual bool Modify(PParticle ** array, int *decay_done, int *num, int maxnum); //Modify particle bulk
43
44 void SetWeight(Double_t c) {current_weight = c;};
45 Double_t GetWeight(void) {return current_weight;};
46
47 void SetPriority(Int_t p) {
48 fPriority = p;
49 };
50 Int_t GetPriority() {return fPriority;};
51
52 void SetTree(TTree *my_tree) {tree = my_tree;};
53 TTree *GetTree(void) {return tree;};
54
55 void SetSizeBranches(Int_t *my_size_branches) {size_branches = my_size_branches;};
56 void SetKeysBranches(Int_t *my_key_branches) {key_branches = my_key_branches;};
57 void SetBranchNum (Int_t i, Int_t *my_size) {current_size_branches[i] = my_size;};
58 void SetBranchArray (Int_t i, PParticle **my_particle) {particle_array_branches[i] = my_particle;};
59
60 Int_t *GetSizeBranches() {return size_branches;};
61 Int_t *GetKeysBranches() {return key_branches;};
62 Int_t *GetBranchNum(Int_t i) {return current_size_branches[i];};
64
65ClassDef(PBulkInterface,0) // Pluto bulk interface base class
66};
67
68
69#endif
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
PBulkInterface * makeGlobalBulk()
PBulkInterface & fPBulkInterface()
#define MAX_NUM_BRANCHES
Definition PDefines.h:19
void SetWeight(Double_t c)
PParticle ** particle_array_branches[MAX_NUM_BRANCHES]
void SetBranchArray(Int_t i, PParticle **my_particle)
Int_t * size_branches
void SetKeysBranches(Int_t *my_key_branches)
void SetBranchNum(Int_t i, Int_t *my_size)
void SetTree(TTree *my_tree)
Int_t * GetSizeBranches()
TTree * GetTree(void)
PParticle ** GetBranchArray(Int_t i)
Double_t current_weight
void SetSizeBranches(Int_t *my_size_branches)
void SetPriority(Int_t p)
Int_t * current_size_branches[MAX_NUM_BRANCHES]
Double_t GetWeight(void)
Int_t * GetKeysBranches()
Int_t * GetBranchNum(Int_t i)
virtual bool Modify(PParticle **array, int *decay_done, int *num, int maxnum)
PChannel * c[]
PParticle * p
Definition dp_mult.C:24