87 G4int Nmap = fRunMap.size();
88 for (
G4int i = 0; i < Nmap; i++){
89 if(fRunMap[i] ) fRunMap[i]->clear();
108 G4int Nmfd = mfdName.size();
109 for (
G4int idet = 0; idet < Nmfd ; idet++){
124 G4String fullCollectionName = detName+
"/"+collectionName;
127 if ( collectionID >= 0 ){
128 G4cout <<
"++ "<<fullCollectionName<<
" id " << collectionID <<
G4endl;
131 fCollName.push_back(fullCollectionName);
132 fCollID.push_back(collectionID);
135 G4cout <<
"** collection " << fullCollectionName <<
" not found. "<<
G4endl;
161 G4int Ncol = fCollID.size();
162 for (
G4int i = 0; i < Ncol ; i++ ){
164 if ( fCollID[i] >= 0 ){
171 *fRunMap[i] += *EvtMap;
188 copy(fCollName, localRun->fCollName);
189 copy(fCollID, localRun->fCollID);
190 unsigned ncopies =
copy(fRunMap, localRun->fRunMap);
193 std::cout <<
"DicomRun :: Num copies = " << ncopies <<
G4endl;
194 for(
unsigned i = ncopies; i < fRunMap.size(); ++i) {
195 *fRunMap[i] += *localRun->fRunMap[i];
211 G4String fullName = detName+
"/"+colName;
224 G4int Ncol = fCollName.size();
225 for (
G4int i = 0; i < Ncol; i++){
226 if ( fCollName[i] == fullName ){
236 "GetHitsMap failed to locate the requested HitsMap");
virtual void Merge(const G4Run *)
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
virtual void Merge(const G4Run *)
virtual void RecordEvent(const G4Event *)
void ConstructMFD(const std::vector< G4String > &)
Definition of the DicomRun class.
void copy(std::vector< T > &main, const std::vector< T > &data)
G4GLOB_DLL std::ostream G4cout
G4VPrimitiveScorer * GetPrimitive(G4int id) const
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4SDManager * GetSDMpointer()
virtual void RecordEvent(const G4Event *)
G4THitsMap< G4double > * GetHitsMap(G4int i) const
G4HCofThisEvent * GetHCofThisEvent() const
G4int GetNumberOfPrimitives() const