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++){
126 G4String fullCollectionName = detName+
"/"+collectionName;
129 if ( collectionID >= 0 ){
130 G4cout <<
"++ "<<fullCollectionName<<
" id " << collectionID
134 fCollName.push_back(fullCollectionName);
135 fCollID.push_back(collectionID);
138 G4cout <<
"** collection " << fullCollectionName <<
" not found. "
166 G4int Ncol = fCollID.size();
167 for (
G4int i = 0; i < Ncol ; i++ ){
169 if ( fCollID[i] >= 0 ){
176 *fRunMap[i] += *EvtMap;
191 Copy(fCollName, localRun->fCollName);
192 Copy(fCollID, localRun->fCollID);
193 unsigned ncopies =
Copy(fRunMap, localRun->fRunMap);
196 G4cout <<
"DicomRun :: Num copies = " << ncopies <<
G4endl;
197 for(
unsigned i = ncopies; i < fRunMap.size(); ++i) {
198 *fRunMap[i] += *localRun->fRunMap[i];
213 G4String fullName = detName+
"/"+colName;
226 G4int Ncol = fCollName.size();
227 for (
G4int i = 0; i < Ncol; i++){
228 if ( fCollName[i] == fullName ){
238 "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 *)
void Copy(std::vector< T > &main, const std::vector< T > &data)
virtual void RecordEvent(const G4Event *)
void ConstructMFD(const std::vector< G4String > &)
Definition of the DicomRun class.
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