21#define MAX_DISTRIBUTIONS 10
22#define MAX_NUM_NOT_FINALIZED 5
23#define MAX_BULKDECAY 5
26#define STATUS_EMPTY_EVENT 80
27#define STATUS_PSEUDO_EMPTY_EVENT 81
28#define STATUS_REDO_CHAIN 82
29#define STATUS_NOT_DECAYED 99
51 if (ptcls && ptcls_extern>=0) {
52 for(
int i=ptcls_extern; i<=n; i++)
53 if (ptcls[i])
delete ptcls[i];
54 if (ptcls)
delete [] ptcls;
68 sourceid = mysourceid;
89 return ipid.GetArray();
109 else return ptcls[0]->Rapidity();
114 return quasi_pchannel;
117 quasi_pchannel = NULL;
122 return 1 + (ipid[0]>=1000);
140 void Print(
const Option_t *delme=
"")
const;
161 cout <<
"DisableHelicityAngle() is obsolete -> use DistributionManager" << endl;
166 return num_not_finalized;
169 return distribution_not_finalized[i];
175 Bool_t
Do(
const char *command) {
176 return GetCurrentProjector()->AddCommand(command);
178 Bool_t
Do(TH1F *
f,
const char *command, Int_t flag=1) {
179 return GetCurrentProjector()->AddHistogram(
f,command,flag);
181 Bool_t
Do(TH2F *
f,
const char *command, Int_t flag=1) {
182 return GetCurrentProjector()->AddHistogram(
f,command,flag);
184 Bool_t
Do(TH3F *
f,
const char *command, Int_t flag=1) {
185 return GetCurrentProjector()->AddHistogram(
f,command,flag);
190 int n, status, DMIndex;
194 int thSrc, tcSrc, dlSrc, sourceid;
199 TString decay_string;
200 TString decay_string2;
208 Int_t distribution_position;
209 bool init_done, thermal_disable_didx;
210 bool print_tentative;
211 Long_t fEnablePattern;
214 PParticle *spectator, *participant, *quasi_composite;
221 static double globalWeight;
224 double *event_impact_param , *event_plane;
225 double *weight_version;
228 PParticle **
ptcls, *parent, *orig_parent, *grandparent, *grandgrandparent;
245 void ThermalSampling();
248 Int_t ReadFileInput();
260 int num_not_finalized;
263 int bulkdecay_pos, pro_bulkdecay_pos;
270 if (!bulkdecay_pos) {
274 if ((strcmp(
"PProjector",bulk[bulkdecay_pos-1] ->
GetName())==0)) {
276 ((PProjector *)bulk[bulkdecay_pos-1])->IsFileOpen()) {
277 current_projector = (PProjector *)bulk[bulkdecay_pos-1];
279 current_projector =
new PProjector();
283 current_projector =
new PProjector();
287 return current_projector;
#define MAX_DISTRIBUTIONS
#define MAX_NUM_NOT_FINALIZED
PParticle ** GetParticles()
Bool_t AddBulk(PBulkInterface *mybulk)
static double GetGlobalWeight()
void SetSourceId(Int_t mysourceid)
Bool_t Do(TH3F *f, const char *command, Int_t flag=1)
void SetPrintTentative(bool t)
Bool_t Do(TH1F *f, const char *command, Int_t flag=1)
void PrintReaction(Int_t check_key=1) const
PDistribution * GetDistributionNotFinalized(int i)
PChannel(int idx, PParticle &parent, int mf=0, int af=0, int bf=0)
Bool_t AddPrologueBulk(PBulkInterface *mybulk)
char const * GetName(void) const
PChannel * GetQuasi(void)
Bool_t Do(TH2F *f, const char *command, Int_t flag=1)
int SetDistribution(PDistribution *distribution)
void Print(const Option_t *delme="") const
PChannel(int idx, PParticle **particles=NULL, int mf=0, int af=0, int bf=0)
void DisableHelicityAngle()
Bool_t Do(const char *command)
PChannel(PParticle **, int nt=2, int mf=0, int af=0, int bf=0)
int CheckSiblings(PParticle *p, PDistribution *dist, int flag)
static void SetGlobalWeight(double w)
void CheckDecayKey() const