Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/examples/extended/hadronic/Hadr04/src/Run.cc

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/extended/hadronic/Hadr04/src/Run.cc (Version 11.3.0) and /examples/extended/hadronic/Hadr04/src/Run.cc (Version 10.6.p3)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 /// \file Run.cc                                   26 /// \file Run.cc
 27 /// \brief Implementation of the Run class         27 /// \brief Implementation of the Run class
 28 //                                                 28 //
 29 //                                             <<  29 // 
 30 //....oooOO0OOooo........oooOO0OOooo........oo     30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 31 //....oooOO0OOooo........oooOO0OOooo........oo     31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 32                                                    32 
 33 #include "Run.hh"                                  33 #include "Run.hh"
 34                                                << 
 35 #include "DetectorConstruction.hh"                 34 #include "DetectorConstruction.hh"
 36 #include "HistoManager.hh"                     << 
 37 #include "PrimaryGeneratorAction.hh"               35 #include "PrimaryGeneratorAction.hh"
                                                   >>  36 #include "HistoManager.hh"
 38                                                    37 
 39 #include "G4SystemOfUnits.hh"                  << 
 40 #include "G4UnitsTable.hh"                         38 #include "G4UnitsTable.hh"
                                                   >>  39 #include "G4SystemOfUnits.hh"
 41                                                    40 
 42 //....oooOO0OOooo........oooOO0OOooo........oo     41 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 43                                                    42 
 44 Run::Run(DetectorConstruction* det) : fDetecto <<  43 Run::Run(DetectorConstruction* det)
                                                   >>  44 : G4Run(),
                                                   >>  45   fDetector(det), fParticle(0), fEkin(0.),
                                                   >>  46   fNbStep1(0), fNbStep2(0),
                                                   >>  47   fTrackLen1(0.), fTrackLen2(0.),
                                                   >>  48   fTime1(0.),fTime2(0.)
                                                   >>  49 { }
                                                   >>  50 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
                                                   >>  51 
                                                   >>  52 Run::~Run()
                                                   >>  53 { }
 45                                                    54 
 46 //....oooOO0OOooo........oooOO0OOooo........oo     55 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 47                                                    56 
 48 void Run::SetPrimary(G4ParticleDefinition* par     57 void Run::SetPrimary(G4ParticleDefinition* particle, G4double energy)
 49 {                                              <<  58 { 
 50   fParticle = particle;                            59   fParticle = particle;
 51   fEkin = energy;                                  60   fEkin = energy;
 52 }                                              <<  61 } 
 53                                                    62 
 54 //....oooOO0OOooo........oooOO0OOooo........oo     63 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 55                                                    64 
 56 void Run::CountProcesses(const G4VProcess* pro <<  65 void Run::CountProcesses(const G4VProcess* process) 
 57 {                                                  66 {
 58   if (process == nullptr) return;              << 
 59   G4String procName = process->GetProcessName(     67   G4String procName = process->GetProcessName();
 60   std::map<G4String, G4int>::iterator it = fPr <<  68   std::map<G4String,G4int>::iterator it = fProcCounter.find(procName);
 61   if (it == fProcCounter.end()) {              <<  69   if ( it == fProcCounter.end()) {
 62     fProcCounter[procName] = 1;                    70     fProcCounter[procName] = 1;
 63   }                                                71   }
 64   else {                                           72   else {
 65     fProcCounter[procName]++;                  <<  73     fProcCounter[procName]++; 
 66   }                                                74   }
 67 }                                              <<  75 }                 
 68                                                <<  76                   
 69 //....oooOO0OOooo........oooOO0OOooo........oo     77 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 70                                                    78 
 71 void Run::ParticleCount(G4String name, G4doubl     79 void Run::ParticleCount(G4String name, G4double Ekin)
 72 {                                                  80 {
 73   std::map<G4String, ParticleData>::iterator i     81   std::map<G4String, ParticleData>::iterator it = fParticleDataMap.find(name);
 74   if (it == fParticleDataMap.end()) {          <<  82   if ( it == fParticleDataMap.end()) {
 75     fParticleDataMap[name] = ParticleData(1, E     83     fParticleDataMap[name] = ParticleData(1, Ekin, Ekin, Ekin);
 76   }                                                84   }
 77   else {                                           85   else {
 78     ParticleData& data = it->second;               86     ParticleData& data = it->second;
 79     data.fCount++;                                 87     data.fCount++;
 80     data.fEmean += Ekin;                           88     data.fEmean += Ekin;
 81     // update min max                          <<  89     //update min max
 82     G4double emin = data.fEmin;                    90     G4double emin = data.fEmin;
 83     if (Ekin < emin) data.fEmin = Ekin;            91     if (Ekin < emin) data.fEmin = Ekin;
 84     G4double emax = data.fEmax;                    92     G4double emax = data.fEmax;
 85     if (Ekin > emax) data.fEmax = Ekin;        <<  93     if (Ekin > emax) data.fEmax = Ekin; 
 86   }                                            <<  94   }   
 87 }                                                  95 }
 88                                                    96 
 89 //....oooOO0OOooo........oooOO0OOooo........oo     97 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 90                                                    98 
 91 void Run::SumTrackLength(G4int nstep1, G4int n <<  99 void Run::SumTrackLength(G4int nstep1, G4int nstep2, 
                                                   >> 100                          G4double trackl1, G4double trackl2,
 92                          G4double time1, G4dou    101                          G4double time1, G4double time2)
 93 {                                                 102 {
 94   fNbStep1 += nstep1;                          << 103   fNbStep1   += nstep1;  fNbStep2   += nstep2;
 95   fNbStep2 += nstep2;                          << 104   fTrackLen1 += trackl1; fTrackLen2 += trackl2;
 96   fTrackLen1 += trackl1;                       << 105   fTime1 += time1; fTime2 += time2;  
 97   fTrackLen2 += trackl2;                       << 
 98   fTime1 += time1;                             << 
 99   fTime2 += time2;                             << 
100 }                                                 106 }
101                                                   107 
102 //....oooOO0OOooo........oooOO0OOooo........oo    108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
103                                                   109 
104 void Run::Merge(const G4Run* run)                 110 void Run::Merge(const G4Run* run)
105 {                                                 111 {
106   const Run* localRun = static_cast<const Run*    112   const Run* localRun = static_cast<const Run*>(run);
107                                                << 113   
108   // primary particle info                     << 114   //primary particle info
109   //                                              115   //
110   fParticle = localRun->fParticle;                116   fParticle = localRun->fParticle;
111   fEkin = localRun->fEkin;                     << 117   fEkin     = localRun->fEkin;
112                                                << 118   
113   // accumulate sums                              119   // accumulate sums
114   //                                              120   //
115   fNbStep1 += localRun->fNbStep1;              << 121   fNbStep1   += localRun->fNbStep1;
116   fNbStep2 += localRun->fNbStep2;              << 122   fNbStep2   += localRun->fNbStep2;   
117   fTrackLen1 += localRun->fTrackLen1;          << 123   fTrackLen1 += localRun->fTrackLen1;  
118   fTrackLen2 += localRun->fTrackLen2;             124   fTrackLen2 += localRun->fTrackLen2;
119   fTime1 += localRun->fTime1;                  << 125   fTime1     += localRun->fTime1;  
120   fTime2 += localRun->fTime2;                  << 126   fTime2     += localRun->fTime2;
                                                   >> 127   
                                                   >> 128   //map: processes count
                                                   >> 129   std::map<G4String,G4int>::const_iterator itp;
                                                   >> 130   for ( itp = localRun->fProcCounter.begin();
                                                   >> 131         itp != localRun->fProcCounter.end(); ++itp ) {
121                                                   132 
122   // map: processes count                      << 
123   std::map<G4String, G4int>::const_iterator it << 
124   for (itp = localRun->fProcCounter.begin(); i << 
125     G4String procName = itp->first;               133     G4String procName = itp->first;
126     G4int localCount = itp->second;               134     G4int localCount = itp->second;
127     if (fProcCounter.find(procName) == fProcCo << 135     if ( fProcCounter.find(procName) == fProcCounter.end()) {
128       fProcCounter[procName] = localCount;        136       fProcCounter[procName] = localCount;
129     }                                             137     }
130     else {                                        138     else {
131       fProcCounter[procName] += localCount;       139       fProcCounter[procName] += localCount;
132     }                                          << 140     }  
133   }                                               141   }
134                                                << 142    
135   // map: created particles count              << 143   //map: created particles count         
136   std::map<G4String, ParticleData>::const_iter << 144   std::map<G4String,ParticleData>::const_iterator itn;
137   for (itn = localRun->fParticleDataMap.begin( << 145   for (itn = localRun->fParticleDataMap.begin(); 
                                                   >> 146        itn != localRun->fParticleDataMap.end(); ++itn) {
                                                   >> 147     
138     G4String name = itn->first;                   148     G4String name = itn->first;
139     const ParticleData& localData = itn->secon << 149     const ParticleData& localData = itn->second;   
140     if (fParticleDataMap.find(name) == fPartic << 150     if ( fParticleDataMap.find(name) == fParticleDataMap.end()) {
141       fParticleDataMap[name] =                 << 151       fParticleDataMap[name]
142         ParticleData(localData.fCount, localDa << 152        = ParticleData(localData.fCount, 
                                                   >> 153                       localData.fEmean, 
                                                   >> 154                       localData.fEmin, 
                                                   >> 155                       localData.fEmax);
143     }                                             156     }
144     else {                                        157     else {
145       ParticleData& data = fParticleDataMap[na << 158       ParticleData& data = fParticleDataMap[name];   
146       data.fCount += localData.fCount;            159       data.fCount += localData.fCount;
147       data.fEmean += localData.fEmean;            160       data.fEmean += localData.fEmean;
148       G4double emin = localData.fEmin;            161       G4double emin = localData.fEmin;
149       if (emin < data.fEmin) data.fEmin = emin    162       if (emin < data.fEmin) data.fEmin = emin;
150       G4double emax = localData.fEmax;            163       G4double emax = localData.fEmax;
151       if (emax > data.fEmax) data.fEmax = emax << 164       if (emax > data.fEmax) data.fEmax = emax; 
152     }                                          << 165     }   
153   }                                               166   }
154                                                   167 
155   G4Run::Merge(run);                           << 168   G4Run::Merge(run); 
156 }                                              << 169 } 
157                                                   170 
158 //....oooOO0OOooo........oooOO0OOooo........oo    171 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
159                                                   172 
160 void Run::EndOfRun()                           << 173 void Run::EndOfRun() 
161 {                                                 174 {
162   G4int prec = 5, wid = prec + 2;              << 175   G4int prec = 5, wid = prec + 2;  
163   G4int dfprec = G4cout.precision(prec);          176   G4int dfprec = G4cout.precision(prec);
164                                                << 177   
165   // run condition                             << 178   //run condition
166   //                                              179   //
167   G4Material* material = fDetector->GetMateria    180   G4Material* material = fDetector->GetMaterial();
168   G4double density = material->GetDensity();      181   G4double density = material->GetDensity();
169                                                << 182    
170   G4String Particle = fParticle->GetParticleNa << 183   G4String Particle = fParticle->GetParticleName();    
171   G4cout << "\n The run is " << numberOfEvent  << 184   G4cout << "\n The run is " << numberOfEvent << " "<< Particle << " of "
172          << G4BestUnit(fEkin, "Energy") << " t << 185          << G4BestUnit(fEkin,"Energy") << " through " 
173          << G4BestUnit(0.5 * (fDetector->GetSi << 186          << G4BestUnit(0.5*(fDetector->GetSize()),"Length") << " of "
174          << " (density: " << G4BestUnit(densit << 187          << material->GetName() << " (density: " 
175                                                << 188          << G4BestUnit(density,"Volumic Mass") << ")" << G4endl;
176   if (numberOfEvent == 0) {                    << 189 
177     G4cout.precision(dfprec);                  << 190   if (numberOfEvent == 0) { G4cout.precision(dfprec);   return;}
178     return;                                    << 191              
179   }                                            << 192   //frequency of processes
180                                                << 
181   // frequency of processes                    << 
182   //                                              193   //
183   G4cout << "\n Process calls frequency :" <<  << 194   G4cout << "\n Process calls frequency :" << G4endl;  
184   G4int survive = 0;                              195   G4int survive = 0;
185   std::map<G4String, G4int>::iterator it;      << 196   std::map<G4String,G4int>::iterator it;    
186   for (it = fProcCounter.begin(); it != fProcC    197   for (it = fProcCounter.begin(); it != fProcCounter.end(); it++) {
187     G4String procName = it->first;             << 198      G4String procName = it->first;
188     G4int count = it->second;                  << 199      G4int    count    = it->second;
189     G4cout << "\t" << procName << "= " << coun << 200      G4cout << "\t" << procName << "= " << count;
190     if (procName == "Transportation") survive  << 201      if (procName == "Transportation") survive = count;
191   }                                               202   }
192   G4cout << G4endl;                               203   G4cout << G4endl;
193                                                << 204       
194   if (survive > 0) {                              205   if (survive > 0) {
195     G4cout << "\n Nb of incident particles sur    206     G4cout << "\n Nb of incident particles surviving after "
196            << G4BestUnit(0.5 * (fDetector->Get << 207            << G4BestUnit(0.5*(fDetector->GetSize()),"Length") << " of "
197            << fDetector->GetMaterial()->GetNam    208            << fDetector->GetMaterial()->GetName() << " : " << survive << G4endl;
198   }                                               209   }
199                                                   210 
200   // total track length of incident neutron    << 211  // total track length of incident neutron
201   //                                           << 212  //
202   G4cout << "\n Parcours of incident neutron:" << 213  G4cout << "\n Parcours of incident neutron:";
203                                                << 214   
204   G4double meanCollision1 = (G4double)fNbStep1 << 215  G4double meanCollision1  = (G4double)fNbStep1/numberOfEvent;
205   G4double meanCollision2 = (G4double)fNbStep2 << 216  G4double meanCollision2  = (G4double)fNbStep2/numberOfEvent;
206   G4double meanCollisTota = meanCollision1 + m << 217  G4double meanCollisTota  = meanCollision1 + meanCollision2;
207                                                << 218 
208   G4cout << "\n   nb of collisions    E>1*eV=  << 219  G4cout << "\n   nb of collisions    E>1*eV= " << meanCollision1
209          << "      E<1*eV= " << meanCollision2 << 220         << "      E<1*eV= " << meanCollision2
210                                                << 221         << "       total= " << meanCollisTota;        
211   G4double meanTrackLen1 = fTrackLen1 / number << 222         
212   G4double meanTrackLen2 = fTrackLen2 / number << 223  G4double meanTrackLen1  = fTrackLen1/numberOfEvent;
213   G4double meanTrackLtot = meanTrackLen1 + mea << 224  G4double meanTrackLen2  = fTrackLen2/numberOfEvent;
214                                                << 225  G4double meanTrackLtot  =  meanTrackLen1 + meanTrackLen2;  
215   G4cout << "\n   track length        E>1*eV=  << 226 
216          << "  E<1*eV= " << G4BestUnit(meanTra << 227  G4cout 
217          << "   total= " << G4BestUnit(meanTra << 228    << "\n   track length        E>1*eV= " << G4BestUnit(meanTrackLen1,"Length")
218                                                << 229    << "  E<1*eV= " << G4BestUnit(meanTrackLen2, "Length")
219   G4double meanTime1 = fTime1 / numberOfEvent; << 230    << "   total= " << G4BestUnit(meanTrackLtot, "Length");   
220   G4double meanTime2 = fTime2 / numberOfEvent; << 231    
221   G4double meanTimeTo = meanTime1 + meanTime2; << 232  G4double meanTime1  = fTime1/numberOfEvent;
222                                                << 233  G4double meanTime2  = fTime2/numberOfEvent;
223   G4cout << "\n   time of flight      E>1*eV=  << 234  G4double meanTimeTo = meanTime1 + meanTime2;  
224          << "  E<1*eV= " << G4BestUnit(meanTim << 235 
225          << "   total= " << G4BestUnit(meanTim << 236  G4cout 
226                                                << 237    << "\n   time of flight      E>1*eV= " << G4BestUnit(meanTime1,"Time")
227   // particles count                           << 238    << "  E<1*eV= " << G4BestUnit(meanTime2, "Time")
228   //                                           << 239    << "   total= " << G4BestUnit(meanTimeTo, "Time") << G4endl;   
229   G4cout << "\n List of generated particles:"  << 240              
230                                                << 241  //particles count
231   std::map<G4String, ParticleData>::iterator i << 242  //
232   for (itn = fParticleDataMap.begin(); itn !=  << 243  G4cout << "\n List of generated particles:" << G4endl;
                                                   >> 244      
                                                   >> 245  std::map<G4String,ParticleData>::iterator itn;               
                                                   >> 246  for (itn = fParticleDataMap.begin(); itn != fParticleDataMap.end(); itn++) { 
233     G4String name = itn->first;                   247     G4String name = itn->first;
234     ParticleData data = itn->second;              248     ParticleData data = itn->second;
235     G4int count = data.fCount;                    249     G4int count = data.fCount;
236     G4double eMean = data.fEmean / count;      << 250     G4double eMean = data.fEmean/count;
237     G4double eMin = data.fEmin;                   251     G4double eMin = data.fEmin;
238     G4double eMax = data.fEmax;                << 252     G4double eMax = data.fEmax;    
239                                                << 253          
240     G4cout << "  " << std::setw(13) << name <<    254     G4cout << "  " << std::setw(13) << name << ": " << std::setw(7) << count
241            << "  Emean = " << std::setw(wid) < << 255            << "  Emean = " << std::setw(wid) << G4BestUnit(eMean, "Energy")
242            << G4BestUnit(eMin, "Energy") << "  << 256            << "\t( "  << G4BestUnit(eMin, "Energy")
243   }                                            << 257            << " --> " << G4BestUnit(eMax, "Energy") 
244                                                << 258            << ")" << G4endl;           
245   // normalize histograms                      << 259  }
                                                   >> 260  
                                                   >> 261   //normalize histograms      
246   ////G4AnalysisManager* analysisManager = G4A    262   ////G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
247   ////G4double factor = 1./numberOfEvent;         263   ////G4double factor = 1./numberOfEvent;
248   ////analysisManager->ScaleH1(3,factor);         264   ////analysisManager->ScaleH1(3,factor);
249                                                << 265            
250   // remove all contents in fProcCounter, fCou << 266   //remove all contents in fProcCounter, fCount 
251   fProcCounter.clear();                           267   fProcCounter.clear();
252   fParticleDataMap.clear();                       268   fParticleDataMap.clear();
253                                                << 269                           
254   // restore default format                    << 270   //restore default format         
255   G4cout.precision(dfprec);                    << 271   G4cout.precision(dfprec);   
256 }                                                 272 }
257                                                   273 
258 //....oooOO0OOooo........oooOO0OOooo........oo    274 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
259                                                   275