34 #include "G4HCofThisEvent.hh"
43 = {
"Calor-A_abs",
"Calor-A_gap",
44 "Calor-B_abs",
"Calor-B_gap",
45 "Calor-C_abs",
"Calor-C_gap"};
48 = {
"eDep",
"nGamma",
"nElectron",
"nPositron",
"trackLength",
"nStep"};
51 = {
"minEkinGamma",
"minEkinElectron",
"minEkinPositron"};
54 = {
"Calor-AP_para",
"Calor-BP_para",
"Calor-CP_para"};
63 fullName = detName[i]+
"/"+primNameSum[j];
68 fullName = detName[i]+
"/"+primNameMin[j];
76 fullName = paraName[i]+
"/"+primNameSum[j];
102 fMapSum[i][j] += *evtMap;
109 std::map<G4int,G4double*>::iterator itr = evtMap->
GetMap()->begin();
110 for(; itr != evtMap->
GetMap()->end(); itr++)
112 G4int key = (itr->first);
114 G4double* mapP = fMapMin[i][j][key];
115 if( mapP && (val>*mapP) )
continue;
116 fMapMin[i][j].
set(key,val);
127 fMapPara[i][j] += *evtMap;
136 for(
G4int i = 0; i < 6; i++) {
137 for(
G4int j = 0; j < 6; j++) {
138 fMapSum[i][j] += localRun->fMapSum[i][j];
141 for(
G4int j = 0; j < 3; j++) {
142 std::map<G4int, G4double*>::iterator itr = localRun->fMapMin[i][j].
GetMap()->begin();
143 for(; itr != localRun->fMapMin[i][j].
GetMap()->end(); itr++) {
144 G4int key = itr->first;
146 G4double * mapP = fMapMin[i][j][key];
147 if(!mapP || val < *mapP) fMapMin[i][j].
set(key, val);
152 for(
G4int i = 0; i < 3; i++) {
153 for(
G4int j = 0; j < 6; j++) {
154 fMapPara[i][j] += localRun->fMapPara[i][j];
165 if(map.
GetSize()==0)
return tot;
166 std::map<G4int,G4double*>::iterator itr = map.
GetMap()->begin();
167 for(; itr != map.
GetMap()->end(); itr++)
168 { tot += *(itr->second); }
178 if(map.
GetSize()==0)
return val;
179 std::map<G4int,G4double*>::iterator itr = map.
GetMap()->begin();
180 for(; itr != map.
GetMap()->end(); itr++)
181 {
if(val>*(itr->second)) val = *(itr->second); }
virtual void Merge(const G4Run *)
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
virtual void Merge(const G4Run *)
virtual size_t GetSize() const
static G4SDManager * GetSDMpointer()
std::map< G4int, T * > * GetMap() const
G4HCofThisEvent * GetHCofThisEvent() const
Definition of the RE06Run class.
G4int set(const G4int &key, T *&aHit) const
virtual void RecordEvent(const G4Event *)