Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/processes/electromagnetic/lowenergy/src/G4LivermoreRayleighModel.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 /processes/electromagnetic/lowenergy/src/G4LivermoreRayleighModel.cc (Version 11.3.0) and /processes/electromagnetic/lowenergy/src/G4LivermoreRayleighModel.cc (Version 11.1.3)


  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 // Author: Sebastien Incerti                       26 // Author: Sebastien Incerti
 27 //         31 March 2012                           27 //         31 March 2012
 28 //         on base of G4LivermoreRayleighModel     28 //         on base of G4LivermoreRayleighModel
 29 //                                                 29 //
 30                                                    30 
 31 #include "G4LivermoreRayleighModel.hh"             31 #include "G4LivermoreRayleighModel.hh"
 32                                                << 
 33 #include "G4AutoLock.hh"                       << 
 34 #include "G4EmParameters.hh"                   << 
 35 #include "G4RayleighAngularGenerator.hh"       << 
 36 #include "G4SystemOfUnits.hh"                      32 #include "G4SystemOfUnits.hh"
                                                   >>  33 #include "G4RayleighAngularGenerator.hh"
                                                   >>  34 #include "G4EmParameters.hh"
                                                   >>  35 #include "G4AutoLock.hh"
 37                                                    36 
 38 //....oooOO0OOooo........oooOO0OOooo........oo     37 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 39                                                    38 
 40 namespace                                      <<  39 using namespace std;
 41 {                                              <<  40 namespace { G4Mutex LivermoreRayleighModelMutex = G4MUTEX_INITIALIZER; }
 42 G4Mutex LivermoreRayleighModelMutex = G4MUTEX_ << 
 43 }                                              << 
 44                                                << 
 45 G4PhysicsFreeVector* G4LivermoreRayleighModel: << 
 46 G4String G4LivermoreRayleighModel::gDataDirect << 
 47                                                    41 
 48 //....oooOO0OOooo........oooOO0OOooo........oo     42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 49                                                    43 
 50 G4LivermoreRayleighModel::G4LivermoreRayleighM <<  44 G4PhysicsFreeVector* G4LivermoreRayleighModel::dataCS[] = {nullptr};
                                                   >>  45 
                                                   >>  46 G4LivermoreRayleighModel::G4LivermoreRayleighModel()
                                                   >>  47   :G4VEmModel("LivermoreRayleigh"),maxZ(100),isInitialised(false)
 51 {                                                  48 {
 52   fParticleChange = nullptr;                       49   fParticleChange = nullptr;
 53   lowEnergyLimit = 10 * CLHEP::eV;             <<  50   lowEnergyLimit  = 10 * CLHEP::eV; 
 54                                                <<  51   
 55   SetAngularDistribution(new G4RayleighAngular     52   SetAngularDistribution(new G4RayleighAngularGenerator());
 56                                                <<  53   
 57   verboseLevel = 0;                            <<  54   verboseLevel= 0;
 58   // Verbosity scale for debugging purposes:       55   // Verbosity scale for debugging purposes:
 59   // 0 = nothing                               <<  56   // 0 = nothing 
 60   // 1 = calculation of cross sections, file o     57   // 1 = calculation of cross sections, file openings...
 61   // 2 = entering in methods                       58   // 2 = entering in methods
 62                                                    59 
 63   if (verboseLevel > 0) {                      <<  60   if(verboseLevel > 0) 
                                                   >>  61   {
 64     G4cout << "G4LivermoreRayleighModel is con     62     G4cout << "G4LivermoreRayleighModel is constructed " << G4endl;
 65   }                                                63   }
                                                   >>  64 
 66 }                                                  65 }
 67                                                    66 
 68 //....oooOO0OOooo........oooOO0OOooo........oo     67 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 69                                                    68 
 70 G4LivermoreRayleighModel::~G4LivermoreRayleigh     69 G4LivermoreRayleighModel::~G4LivermoreRayleighModel()
 71 {                                                  70 {
 72   if (IsMaster()) {                            <<  71   if(IsMaster())
 73     for (G4int i = 0; i <= maxZ; ++i) {        <<  72   {
 74       if (nullptr != dataCS[i]) {              <<  73     for(G4int i = 0; i <= maxZ; ++i)
                                                   >>  74     {
                                                   >>  75       if(dataCS[i])
                                                   >>  76       {
 75         delete dataCS[i];                          77         delete dataCS[i];
 76         dataCS[i] = nullptr;                       78         dataCS[i] = nullptr;
 77       }                                            79       }
 78     }                                              80     }
 79   }                                                81   }
 80 }                                                  82 }
 81                                                    83 
 82 //....oooOO0OOooo........oooOO0OOooo........oo     84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 83                                                    85 
 84 void G4LivermoreRayleighModel::Initialise(cons     86 void G4LivermoreRayleighModel::Initialise(const G4ParticleDefinition* particle,
 85                                           cons <<  87             const G4DataVector& cuts)
 86 {                                                  88 {
 87   if (verboseLevel > 1) {                      <<  89   if (verboseLevel > 1) 
                                                   >>  90   {
 88     G4cout << "Calling Initialise() of G4Liver     91     G4cout << "Calling Initialise() of G4LivermoreRayleighModel." << G4endl
 89            << "Energy range: " << LowEnergyLim <<  92      << "Energy range: "
 90            << " GeV" << G4endl;                <<  93      << LowEnergyLimit() / eV << " eV - "
                                                   >>  94      << HighEnergyLimit() / GeV << " GeV"
                                                   >>  95      << G4endl;
 91   }                                                96   }
 92                                                    97 
 93   if (IsMaster()) {                            <<  98   if(IsMaster()) {
 94     // Initialise element selector                 99     // Initialise element selector
 95     InitialiseElementSelectors(particle, cuts)    100     InitialiseElementSelectors(particle, cuts);
 96                                                   101 
 97     // Access to elements                         102     // Access to elements
                                                   >> 103     const char* path = G4FindDataDir("G4LEDATA");
 98     const G4ElementTable* elemTable = G4Elemen    104     const G4ElementTable* elemTable = G4Element::GetElementTable();
 99     std::size_t numElems = (*elemTable).size() << 105     std::size_t numElems                 = (*elemTable).size();
100     for (std::size_t ie = 0; ie < numElems; ++ << 106     for(std::size_t ie = 0; ie < numElems; ++ie)
                                                   >> 107     {
101       const G4Element* elem = (*elemTable)[ie]    108       const G4Element* elem = (*elemTable)[ie];
102       const G4int Z = std::min(maxZ, elem->Get << 109       const G4int Z         = std::min(maxZ, elem->GetZasInt());
103       if (dataCS[Z] == nullptr) {              << 110       if(dataCS[Z] == nullptr)
104         ReadData(Z);                           << 111       {
                                                   >> 112         ReadData(Z, path);
105       }                                           113       }
106     }                                             114     }
107   }                                               115   }
108   if (isInitialised) {                         << 116   if(isInitialised) { return; }
109     return;                                    << 
110   }                                            << 
111   fParticleChange = GetParticleChangeForGamma(    117   fParticleChange = GetParticleChangeForGamma();
112   isInitialised = true;                           118   isInitialised = true;
113 }                                                 119 }
114                                                   120 
115 //....oooOO0OOooo........oooOO0OOooo........oo    121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
116                                                   122 
117 void G4LivermoreRayleighModel::InitialiseLocal << 123 void G4LivermoreRayleighModel::InitialiseLocal(const G4ParticleDefinition*,
                                                   >> 124                  G4VEmModel* masterModel)
118 {                                                 125 {
119   SetElementSelectors(masterModel->GetElementS    126   SetElementSelectors(masterModel->GetElementSelectors());
120 }                                                 127 }
121                                                   128 
122 //....oooOO0OOooo........oooOO0OOooo........oo    129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
123                                                   130 
124 const G4String& G4LivermoreRayleighModel::Find << 131 void G4LivermoreRayleighModel::ReadData(std::size_t Z, const char* path)
125 {                                                 132 {
126   // no check in this method - environment var << 133   if (verboseLevel > 1) 
127   if (gDataDirectory.empty()) {                << 134   {
128     auto param = G4EmParameters::Instance();   << 135     G4cout << "Calling ReadData() of G4LivermoreRayleighModel" 
129     std::ostringstream ost;                    << 136      << G4endl;
130     if (param->LivermoreDataDir() == "livermor << 137   }
131       ost << param->GetDirLEDATA() << "/liverm << 138 
                                                   >> 139   if(nullptr != dataCS[Z]) { return; }
                                                   >> 140   
                                                   >> 141   const char* datadir = path;
                                                   >> 142 
                                                   >> 143   if(datadir == nullptr)
                                                   >> 144   {
                                                   >> 145     datadir = G4FindDataDir("G4LEDATA");
                                                   >> 146     if(datadir == nullptr)
                                                   >> 147     {
                                                   >> 148       G4Exception("G4LivermoreRayleighModelModel::ReadData()","em0006",
                                                   >> 149       FatalException,
                                                   >> 150       "Environment variable G4LEDATA not defined");
                                                   >> 151       return;
132     }                                             152     }
133     else {                                     << 
134       ost << param->GetDirLEDATA() << "/epics2 << 
135     }                                          << 
136     gDataDirectory = ost.str();                << 
137   }                                               153   }
138   return gDataDirectory;                       << 
139 }                                              << 
140                                                << 
141 //....oooOO0OOooo........oooOO0OOooo........oo << 
142                                                << 
143 void G4LivermoreRayleighModel::ReadData(const  << 
144 {                                              << 
145   if (verboseLevel > 1) {                      << 
146     G4cout << "Calling ReadData() of G4Livermo << 
147   }                                            << 
148   const G4int Z = std::min(ZZ, maxZ);          << 
149                                                << 
150   if (nullptr != dataCS[Z]) {                  << 
151     return;                                    << 
152   }                                            << 
153                                                << 
154   dataCS[Z] = new G4PhysicsFreeVector();          154   dataCS[Z] = new G4PhysicsFreeVector();
155                                                << 155     
156   std::ostringstream ostCS;                       156   std::ostringstream ostCS;
157   ostCS << FindDirectoryPath() << "re-cs-" <<  << 157   if(G4EmParameters::Instance()->LivermoreDataDir() == "livermore"){
                                                   >> 158     ostCS << datadir << "/livermore/rayl/re-cs-" << Z <<".dat";
                                                   >> 159   }else{
                                                   >> 160     ostCS << datadir << "/epics2017/rayl/re-cs-" << Z <<".dat";
                                                   >> 161   }
158                                                   162 
159   std::ifstream finCS(ostCS.str().c_str());       163   std::ifstream finCS(ostCS.str().c_str());
160                                                << 164   
161   if (!finCS.is_open()) {                      << 165   if( !finCS .is_open() ) 
                                                   >> 166   {
162     G4ExceptionDescription ed;                    167     G4ExceptionDescription ed;
163     ed << "G4LivermoreRayleighModel data file  << 168     ed << "G4LivermoreRayleighModel data file <" << ostCS.str().c_str()
164        << G4endl;                              << 169        << "> is not opened!" << G4endl;
165     G4Exception("G4LivermoreRayleighModel::Rea << 170     G4Exception("G4LivermoreRayleighModel::ReadData()","em0003",FatalException,
166                 "G4LEDATA version should be G4 << 171     ed,"G4LEDATA version should be G4EMLOW8.0 or later.");
167     return;                                       172     return;
168   }                                            << 173   } 
169   else {                                       << 174   else 
170     if (verboseLevel > 3) {                    << 175   {
171       G4cout << "File " << ostCS.str() << " is << 176     if(verboseLevel > 3) { 
                                                   >> 177       G4cout << "File " << ostCS.str() 
                                                   >> 178        << " is opened by G4LivermoreRayleighModel" << G4endl;
172     }                                             179     }
173     dataCS[Z]->Retrieve(finCS, true);             180     dataCS[Z]->Retrieve(finCS, true);
174   }                                            << 181   } 
175 }                                                 182 }
176                                                   183 
177 //....oooOO0OOooo........oooOO0OOooo........oo    184 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
178                                                   185 
179 G4double G4LivermoreRayleighModel::ComputeCros << 186 G4double G4LivermoreRayleighModel::ComputeCrossSectionPerAtom(
180                                                << 187                                        const G4ParticleDefinition*,
181                                                << 188                                              G4double GammaEnergy,
                                                   >> 189                                              G4double Z, G4double,
                                                   >> 190                                              G4double, G4double)
182 {                                                 191 {
183   if (verboseLevel > 1) {                      << 192   if (verboseLevel > 1) 
184     G4cout << "G4LivermoreRayleighModel::Compu << 193   {
185   }                                            << 194     G4cout << "G4LivermoreRayleighModel::ComputeCrossSectionPerAtom()" 
186                                                << 195      << G4endl;
187   if (GammaEnergy < lowEnergyLimit) {          << 
188     return 0.0;                                << 
189   }                                               196   }
190                                                   197 
                                                   >> 198   if(GammaEnergy < lowEnergyLimit) { return 0.0; }
                                                   >> 199   
191   G4double xs = 0.0;                              200   G4double xs = 0.0;
192   G4int intZ = G4lrint(Z);                        201   G4int intZ = G4lrint(Z);
193   if (intZ < 1 || intZ > maxZ) {               << 202   if(intZ < 1 || intZ > maxZ) { return xs; }
194     return xs;                                 << 
195   }                                            << 
196                                                   203 
197   G4PhysicsFreeVector* pv = dataCS[intZ];         204   G4PhysicsFreeVector* pv = dataCS[intZ];
198                                                   205 
199   // if element was not initialised               206   // if element was not initialised
200   // do initialisation safely for MT mode         207   // do initialisation safely for MT mode
201   if (nullptr == pv) {                         << 208   if(nullptr == pv) { 
202     InitialiseForElement(nullptr, intZ);       << 209     InitialiseForElement(0, intZ);
203     pv = dataCS[intZ];                            210     pv = dataCS[intZ];
204     if (nullptr == pv) {                       << 211     if(nullptr == pv) { return xs; }
205       return xs;                               << 
206     }                                          << 
207   }                                            << 
208                                                << 
209   auto n = G4int(pv->GetVectorLength() - 1);   << 
210   G4double e = GammaEnergy / MeV;              << 
211   if (e >= pv->Energy(n)) {                    << 
212     xs = (*pv)[n] / (e * e);                   << 
213   }                                            << 
214   else if (e >= pv->Energy(0)) {               << 
215     xs = pv->Value(e) / (e * e);               << 
216   }                                               212   }
217                                                   213 
218   if (verboseLevel > 1) {                      << 214   G4int n = G4int(pv->GetVectorLength() - 1);
219     G4cout << "****** DEBUG: tcs value for Z=" << 215   G4double e = GammaEnergy/MeV;
220     G4cout << "  cs (Geant4 internal unit)=" < << 216   if(e >= pv->Energy(n)) {
221     G4cout << "    -> first E*E*cs value in CS << 217     xs = (*pv)[n]/(e*e);  
222     G4cout << "    -> last  E*E*cs value in CS << 218   } else if(e >= pv->Energy(0)) {
223     G4cout << "******************************* << 219     xs = pv->Value(e)/(e*e);  
                                                   >> 220   }
                                                   >> 221 
                                                   >> 222   if(verboseLevel > 1)
                                                   >> 223   {
                                                   >> 224     G4cout  <<  "****** DEBUG: tcs value for Z=" << Z << " at energy (MeV)=" 
                                                   >> 225       << e << G4endl;
                                                   >> 226     G4cout  <<  "  cs (Geant4 internal unit)=" << xs << G4endl;
                                                   >> 227     G4cout  <<  "    -> first E*E*cs value in CS data file (iu) =" << (*pv)[0] 
                                                   >> 228       << G4endl;
                                                   >> 229     G4cout  <<  "    -> last  E*E*cs value in CS data file (iu) =" << (*pv)[n] 
                                                   >> 230       << G4endl;
                                                   >> 231     G4cout  <<  "*********************************************************" 
                                                   >> 232       << G4endl;
224   }                                               233   }
225   return xs;                                      234   return xs;
226 }                                                 235 }
227                                                   236 
228 //....oooOO0OOooo........oooOO0OOooo........oo    237 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
229                                                   238 
230 void G4LivermoreRayleighModel::SampleSecondari << 239 void G4LivermoreRayleighModel::SampleSecondaries(
231                                                << 240                           std::vector<G4DynamicParticle*>*,
232                                                << 241         const G4MaterialCutsCouple* couple,
233                                                << 242         const G4DynamicParticle* aDynamicGamma,
                                                   >> 243         G4double, G4double)
234 {                                                 244 {
235   if (verboseLevel > 1) {                         245   if (verboseLevel > 1) {
236     G4cout << "Calling SampleSecondaries() of  << 246     G4cout << "Calling SampleSecondaries() of G4LivermoreRayleighModel" 
                                                   >> 247      << G4endl;
237   }                                               248   }
238   G4double photonEnergy0 = aDynamicGamma->GetK    249   G4double photonEnergy0 = aDynamicGamma->GetKineticEnergy();
239                                                << 250   
240   // Select randomly one element in the curren    251   // Select randomly one element in the current material
241   const G4ParticleDefinition* particle = aDyna << 252   const G4ParticleDefinition* particle =  aDynamicGamma->GetDefinition();
242   const G4Element* elm = SelectRandomAtom(coup << 253   const G4Element* elm = SelectRandomAtom(couple,particle,photonEnergy0);
243   G4int Z = elm->GetZasInt();                  << 254   G4int Z = G4lrint(elm->GetZ());
244                                                << 255 
245   // Sample the angle of the scattered photon  << 256   // Sample the angle of the scattered photon  
246   G4ThreeVector photonDirection = GetAngularDi << 257   G4ThreeVector photonDirection = 
247     aDynamicGamma, photonEnergy0, Z, couple->G << 258     GetAngularDistribution()->SampleDirection(aDynamicGamma, 
                                                   >> 259                 photonEnergy0, 
                                                   >> 260                 Z, couple->GetMaterial());
248   fParticleChange->ProposeMomentumDirection(ph    261   fParticleChange->ProposeMomentumDirection(photonDirection);
249 }                                                 262 }
250                                                   263 
251 //....oooOO0OOooo........oooOO0OOooo........oo    264 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
252                                                   265 
253 void G4LivermoreRayleighModel::InitialiseForEl << 266 void 
                                                   >> 267 G4LivermoreRayleighModel::InitialiseForElement(const G4ParticleDefinition*, 
                                                   >> 268                  G4int Z)
254 {                                                 269 {
255   if (nullptr != dataCS[Z]) {                  << 
256     return;                                    << 
257   }                                            << 
258   G4AutoLock l(&LivermoreRayleighModelMutex);     270   G4AutoLock l(&LivermoreRayleighModelMutex);
259   if (nullptr == dataCS[Z]) {                  << 271   if(nullptr == dataCS[Z]) { ReadData(Z); }
260     ReadData(Z);                               << 
261   }                                            << 
262   l.unlock();                                     272   l.unlock();
263 }                                                 273 }
264                                                   274 
265 //....oooOO0OOooo........oooOO0OOooo........oo    275 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
266                                                   276