32 #include "G4HCofThisEvent.hh"
37 G4String detName[6] = {
"Calor-A_abs",
"Calor-A_gap",
"Calor-B_abs",
"Calor-B_gap",
"Calor-C_abs",
"Calor-C_gap"};
38 G4String primNameSum[6] = {
"eDep",
"nGamma",
"nElectron",
"nPositron",
"trackLength",
"nStep"};
39 G4String primNameMin[3] = {
"minEkinGamma",
"minEkinElectron",
"minEkinPositron"};
40 G4String paraName[3] = {
"Calor-AP_para",
"Calor-BP_para",
"Calor-CP_para"};
49 fullName = detName[i]+
"/"+primNameSum[j];
54 fullName = detName[i]+
"/"+primNameMin[j];
62 fullName = paraName[i]+
"/"+primNameSum[j];
82 mapSum[i][j] += *evtMap;
87 std::map<G4int,G4double*>::iterator itr = evtMap->
GetMap()->begin();
88 for(; itr != evtMap->
GetMap()->end(); itr++)
90 G4int key = (itr->first);
93 if( mapP && (val>*mapP) )
continue;
94 mapMin[i][j].
set(key,val);
103 mapPara[i][j] += *evtMap;
111 std::map<G4int,G4double*>::iterator itr = map.
GetMap()->begin();
112 for(; itr != map.
GetMap()->end(); itr++)
113 { tot += *(itr->second); }
120 std::map<G4int,G4double*>::iterator itr = map.
GetMap()->begin();
121 for(; itr != map.
GetMap()->end(); itr++)
122 {
if(val>*(itr->second)) val = *(itr->second); }