| 169 | } |
| 170 | |
| 171 | void G4DigiManager::SetDigiCollection(G4int DCID,G4VDigiCollection* aDC) |
| 172 | { |
| 173 | const G4Event* consEvt = runManager->GetCurrentEvent(); |
| 174 | if(consEvt==NULL) |
| 175 | { |
| 176 | G4cout << "G4DigiManager::SetDigiCollection --- " |
| 177 | << "Event object is not available." << G4endl; |
| 178 | return; |
| 179 | } |
| 180 | |
| 181 | G4Event* evt = (G4Event*)consEvt; |
| 182 | G4DCofThisEvent* DCE = evt->GetDCofThisEvent(); |
| 183 | if(DCE==NULL) |
| 184 | { |
| 185 | DCE = new G4DCofThisEvent(DCtable->entries()); |
| 186 | evt->SetDCofThisEvent(DCE); |
| 187 | if(verboseLevel>0) |
| 188 | { G4cout << "DCofThisEvent object is added to current G4Event." << G4endl; } |
| 189 | } |
| 190 | |
| 191 | DCE->AddDigiCollection(DCID,aDC); |
| 192 | |
| 193 | if(verboseLevel>0) |
| 194 | { |
| 195 | G4cout << aDC->GetName() << " is stored at " << DCID |
| 196 | << "-th slot of G4DCofThisEvent." << G4endl; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | void G4DigiManager::SetVerboseLevel(G4int val) |
| 201 | { |
no test coverage detected