Skip to content

Commit

Permalink
Fix string size in struct for the resonance generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mpuccio authored and fprino committed Mar 16, 2018
1 parent a1fa8ad commit a7933d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MC/CustomGenerators/PWGLF/Pythia8_Monash2013_Rsn002.C
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
struct particle_inj {
int n;
TString name;
char name[32];
int pdg;
double maxpt;
double maxy;
Expand Down Expand Up @@ -29,11 +29,12 @@ AliGenerator* GeneratorCustom()
};

AliDecayerPythia *dec = new AliDecayerPythia;
AliPDG::AddParticlesToPdgDataBase();

ctl->UseSingleInjectionPerEvent();
for (int idx = 0; idx < nParticles; ++idx) {
AliGenerator *inj = GeneratorParam(particleList[idx].n, particleList[idx].pdg, 0., particleList[idx].maxpt,-particleList[idx].maxy, particleList[idx].maxy,dec);
ctl->AddGenerator(inj, (particleList[idx].name + " injector").Data(), 1.);
ctl->AddGenerator(inj, (TString(particleList[idx].name) + " injector").Data(), 1.);
}
return ctl;
}

0 comments on commit a7933d9

Please sign in to comment.