26 unknown_pdg_pointer = 0;
33 unknown_pdg_pointer = 0;
43 Fatal(
"Input",
"Input file <%s> does not exist",
filename);
46 fRun = (
URun*) fInFile->Get(
"run");
48 fInTree = (TTree*) fInFile->Get(
"events");
50 Fatal(
"SetInputFile",
"Input file <%s> has no events tree",
filename);
53 Info(
"Input",
"Input file has %lli events", fInTree->GetEntries());
55 nentries = fInTree->GetEntries();
62 fInTree->SetBranchAddress(
"event", &fEvent);
79 if (centry == nentries) {
80 Info(
"Modify",
"Unigen file: number of events reached");
87 fInTree->GetEntry(centry);
90 Int_t npart = fEvent->GetNpa();
93 Int_t evnr = fEvent->GetEventNr();
94 Int_t stepnr = fEvent->GetStepNr();
97 for (
int i=0; i<npart; i++) {
99 if (cur == stacksize) {
100 Warning(
"Modify",
"Stack size too small, increase '_system_particle_stacksize'");
104 UParticle *part = fEvent->GetParticle(i);
109 for (
int i=0; i<unknown_pdg_pointer; i++) {
110 if (unknown_pdg[i] == part->
GetPdg())
115 "Particle with PDG code %i is not defined in Pluto, further particles will get the 'dummy' pid",
118 unknown_pdg[unknown_pdg_pointer] = part->
GetPdg();
119 unknown_pdg_pointer++;
124 dummy.
SetID(*i_result);
140 if (reset_mass == 1) {
142 }
else if (reset_mass == 0) {
143 Warning(
"Modify",
"Found a particle mass which is out of bounds, it is recommended to use ResetInvalidMass()");
144 Warning(
"Modify",
"(following warnings will be skipped)");
149 *(mstack[cur]) = dummy;
ClassImp(PBeamLineSimulation) PBeamLineSimulation
#define FILEINPUT_PRIORITY
PDataBase * makeDataBase()
PDistributionManager * makeDistributionManager()
PStaticData * makeStaticData()
Int_t GetParamInt(const char *paramname, Int_t length=-1)
static double LMass(const int &id)
static double UMass(const int &id)
Bool_t Exec(const char *command)
void SetParentIndex(Int_t pInd)
void SetID(const Int_t id)
void SetVect4(const TLorentzVector &v)
void SetSiblingIndex(Int_t sInd)
void SetVertex(Double_t x, Double_t y, Double_t z, Double_t t)
void SetSourceId(Int_t sId)
TLorentzVector GetMomentum() const
Double_t GetWeight() const
TLorentzVector GetPosition() const
Int_t GetParentDecay() const
TString filename("eta_dalitz_a")