72 cout <<
"-E- CbmShieldGenerator: Input file not open!" << endl;
98 *
fInputFile >> eventId >> b >> bx >> by >> nTracks;
102 cout <<
"-I- CbmShieldGenerator: End of input file reached " << endl;
108 cout <<
"-I- CbmShieldGenerator: Event " << eventId <<
", pBeam = " << pBeam <<
"GeV, b = " << bx <<
" " << by
109 <<
" fm, multiplicity " << nTracks << endl;
115 FairMCEventHeader*
event = primGen->GetEvent();
116 if (event && (!event->IsSet())) {
117 event->SetEventID(eventId);
118 event->SetB(bb.Mod());
119 event->SetRotZ(bb.Phi());
120 event->MarkSet(kTRUE);
125 for (Int_t itrack = 0; itrack < nTracks; itrack++) {
129 *
fInputFile >> pdgType >> iMass >> iCharge >> px >> py >> pz >> etot;
150 if (
fpartType == 1 && pdgType == 2112) primGen->AddTrack(pdgType, px, py, pz, 0., 0., 0.);
151 if (
fpartType == 2 && pdgType == 2212) primGen->AddTrack(pdgType, px, py, pz, 0., 0., 0.);
152 if (
fpartType == 3 && pdgType >= 1000000000) primGen->AddTrack(pdgType, px, py, pz, 0., 0., 0.);
154 if (
fpartType == -1) primGen->AddTrack(pdgType, px, py, pz, 0., 0., 0.);
182 cout <<
" CbmShieldGenerator::RegisterIons() start " << endl;
186 Int_t eventId, nTracks, iMass, iCharge;
187 Double_t bx, by, px, py, pz;
196 *
fInputFile >> eventId >> b >> bx >> by >> nTracks;
198 for (Int_t iTrack = 0; iTrack < nTracks; iTrack++) {
200 *
fInputFile >> pdgType >> iMass >> iCharge >> px >> py >> pz >> etot;
202 if (pdgType > 1000000000)
204 size_t buf_size = 20;
206 snprintf(
buffer, buf_size - 1,
"Ion_%d_%d", iMass, iCharge);
209 FairIon* ion =
new FairIon(ionName, iCharge, iMass, iCharge);
218 FairRunSim* run = FairRunSim::Instance();
219 map<TString, FairIon*>::iterator mapIt;
221 FairIon* ion = (*mapIt).second;