77 G4int Nmfd = mfdName.size();
78 for (
G4int idet = 0; idet < Nmfd ; idet++){
93 G4String fullCollectionName = detName+
"/"+collectionName;
96 if ( collectionID >= 0 ){
97 G4cout <<
"++ "<<fullCollectionName<<
" id " << collectionID
101 fCollName.push_back(fullCollectionName);
102 fCollID.push_back(collectionID);
106 G4cout <<
"** collection " << fullCollectionName
107 <<
" not found. "<<
G4endl;
121 G4int Nmap = fRunMap.size();
122 for (
G4int i = 0; i < Nmap; i++){
123 if(fRunMap[i] ) fRunMap[i]->clear();
148 G4int Ncol = fCollID.size();
149 for (
G4int i = 0; i < Ncol ; i++ ){
151 if ( fCollID[i] >= 0 ){
158 *fRunMap[i] += *EvtMap;
174 G4String fullName = detName+
"/"+colName;
183 G4int Ncol = fCollName.size();
184 for (
G4int i = 0; i < Ncol; i++){
185 if ( fCollName[i] == fullName ){
201 for (
G4int i = 0; i <
n ; i++ ){
204 G4cout <<
" PrimitiveScorer RUN "
207 std::map<G4int,G4double*>::iterator itr = RunMap->
GetMap()->begin();
208 for(; itr != RunMap->
GetMap()->end(); itr++) {
209 G4cout <<
" copy no.: " << itr->first
210 <<
" Run Value : " << *(itr->second)
221 const B02Run * localRun =
static_cast<const B02Run *
>(aRun);
225 G4int nCol = localRun->fCollID.size();
226 for (
G4int i = 0; i < nCol ; i++ ){
227 if ( localRun->fCollID[i] >= 0 ){
228 *fRunMap[i] += *localRun->fRunMap[i];
virtual void Merge(const G4Run *)
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
G4THitsMap< G4double > * GetHitsMap(G4int i)
virtual void Merge(const G4Run *)
virtual void RecordEvent(const G4Event *)
G4GLOB_DLL std::ostream G4cout
G4VPrimitiveScorer * GetPrimitive(G4int id) const
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
B02Run(const std::vector< G4String > mfdName)
static G4SDManager * GetSDMpointer()
G4int GetNumberOfHitsMap() const
std::map< G4int, T * > * GetMap() const
Definition of the B02Run class.
G4HCofThisEvent * GetHCofThisEvent() const
G4int GetNumberOfPrimitives() const