86 cout <<
" CbmPsdIdealDigitizer::Exec begin " << endl;
88 if (!
fDigiArray) Fatal(
"Exec",
"No PsdDigi array");
108 edep[isec][imod] = 0.;
112 map<pair<int, int>,
double> edepmap;
116 cout <<
" nPoints " << nPoints << endl;
120 for (Int_t iPoint = 0; iPoint < nPoints; iPoint++) {
122 if (!point)
continue;
130 scinID = point->GetDetectorID();
133 sec = (Int_t)((scinID - 1) / 6) + 1;
135 auto insert_result = edepmap.insert(std::make_pair(std::make_pair(modID, sec), point->GetEnergyLoss()));
137 if (!insert_result.second) {
138 (*insert_result.first).second += point->GetEnergyLoss();
169 for (
auto edep_entry : edepmap) {
170 modID = edep_entry.first.first;
171 int secID = edep_entry.first.second;
172 double edep1 = edep_entry.second;
178 cout <<
"-I- CbmPsdIdealDigitizer: " <<
fNDigis <<
" CbmPsdDigi created." << endl;