Geant4 Cross Reference |
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 hadronic/Hadr01/src/Histo.cc 26 /// \file hadronic/Hadr01/src/Histo.cc 27 /// \brief Implementation of the Histo class 27 /// \brief Implementation of the Histo class 28 // 28 // >> 29 // $Id: Histo.cc 70761 2013-06-05 12:30:51Z gcosmo $ 29 // 30 // 30 //-------------------------------------------- 31 //--------------------------------------------------------------------------- 31 // 32 // 32 // ClassName: Histo - Generic histogram/ntup 33 // ClassName: Histo - Generic histogram/ntuple manager class 33 // 34 // 34 // 35 // 35 // Author: V.Ivanchenko 30.10.03 36 // Author: V.Ivanchenko 30.10.03 36 // 37 // 37 //-------------------------------------------- 38 //---------------------------------------------------------------------------- 38 // 39 // 39 40 40 //....oooOO0OOooo........oooOO0OOooo........oo 41 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 41 //....oooOO0OOooo........oooOO0OOooo........oo 42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 42 43 43 #include "Histo.hh" 44 #include "Histo.hh" 44 << 45 #include "HistoMessenger.hh" 45 #include "HistoMessenger.hh" 46 << 47 #include "G4RootAnalysisManager.hh" 46 #include "G4RootAnalysisManager.hh" 48 47 49 //....oooOO0OOooo........oooOO0OOooo........oo 48 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 50 //....oooOO0OOooo........oooOO0OOooo........oo 49 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 51 50 52 Histo::Histo() 51 Histo::Histo() 53 : fManager(nullptr), << 52 : fManager(0), 54 fHistName("test"), << 53 fMessenger(0), 55 fTupleName("tuple"), << 54 fHistName("test"), 56 fTupleTitle("test"), << 55 fHistType("root"), 57 fNHisto(0), << 56 fTupleName("tuple"), 58 fVerbose(0), << 57 fTupleTitle("test"), 59 fDefaultAct(true), << 58 fNHisto(0), 60 fHistoActive(false), << 59 fVerbose(0), 61 fNtupleActive(false) << 60 fDefaultAct(true), >> 61 fHistoActive(false), >> 62 fNtupleActive(false) 62 { 63 { 63 fMessenger = new HistoMessenger(this); 64 fMessenger = new HistoMessenger(this); 64 } 65 } 65 66 66 //....oooOO0OOooo........oooOO0OOooo........oo 67 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 67 68 68 Histo::~Histo() 69 Histo::~Histo() 69 { 70 { 70 delete fMessenger; 71 delete fMessenger; >> 72 delete fManager; 71 } 73 } 72 74 73 //....oooOO0OOooo........oooOO0OOooo........oo 75 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 74 76 75 void Histo::Book() 77 void Histo::Book() 76 { 78 { 77 if (!(fHistoActive || fNtupleActive)) { << 79 if(!(fHistoActive || fNtupleActive)) { return; } 78 return; << 79 } << 80 80 81 // Always creating analysis manager 81 // Always creating analysis manager 82 fManager = G4RootAnalysisManager::Instance() << 82 fManager = G4RootAnalysisManager::Instance(); 83 83 84 // Creating a tree mapped to a new hbook fil 84 // Creating a tree mapped to a new hbook file. 85 G4String nam = fHistName + ".root"; << 85 G4String nam = fHistName + "." + fHistType; 86 86 87 // Open file histogram file 87 // Open file histogram file 88 if (!fManager->OpenFile(nam)) { << 88 if(!fManager->OpenFile(nam)) { 89 G4cout << "Histo::Book: ERROR open file <" 89 G4cout << "Histo::Book: ERROR open file <" << nam << ">" << G4endl; 90 fHistoActive = false; 90 fHistoActive = false; 91 fNtupleActive = false; 91 fNtupleActive = false; 92 return; << 92 return; 93 } 93 } 94 G4cout << "### Histo::Save: Opended file <" << 94 G4cout << "### Histo::Save: Opended file <" << nam << "> for " 95 << G4endl; << 95 << fNHisto << " histograms " << G4endl; 96 96 97 // Creating an 1-dimensional histograms in t 97 // Creating an 1-dimensional histograms in the root directory of the tree 98 for (G4int i = 0; i < fNHisto; ++i) { << 98 for(G4int i=0; i<fNHisto; ++i) { 99 if (fActive[i]) { << 99 if(fActive[i]) { 100 G4String ss = "h" + fIds[i]; 100 G4String ss = "h" + fIds[i]; 101 fHisto[i] = fManager->CreateH1(ss, fTitl << 101 fHisto[i] = 102 if (fVerbose > 0) { << 102 fManager->CreateH1(ss, fTitles[i], fBins[i], fXmin[i], fXmax[i]); 103 G4cout << "Created histogram #" << i < << 103 if(fVerbose > 0) { 104 << fTitles[i] << G4endl; << 104 G4cout << "Created histogram #" << i << " id= " << fHisto[i] >> 105 << " " << ss << " " << fTitles[i] << G4endl; 105 } 106 } 106 } 107 } 107 } 108 } 108 // Creating a tuple factory, whose tuples wi 109 // Creating a tuple factory, whose tuples will be handled by the tree 109 if (fNtupleActive) { << 110 if(fNtupleActive) { 110 fManager->CreateNtuple(fTupleName, fTupleT << 111 fManager->CreateNtuple(fTupleName,fTupleTitle); 111 G4int i; 112 G4int i; 112 G4int n = fNtupleI.size(); 113 G4int n = fNtupleI.size(); 113 for (i = 0; i < n; ++i) { << 114 for(i=0; i<n; ++i) { 114 if (fTupleI[i] == -1) { << 115 if(fTupleI[i] == -1) { 115 fTupleI[i] = fManager->CreateNtupleICo << 116 fTupleI[i] = fManager->CreateNtupleIColumn(fNtupleI[i]); 116 } 117 } 117 } 118 } 118 n = fNtupleF.size(); 119 n = fNtupleF.size(); 119 for (i = 0; i < n; ++i) { << 120 for(i=0; i<n; ++i) { 120 if (fTupleF[i] == -1) { << 121 if(fTupleF[i] == -1) { 121 fTupleF[i] = fManager->CreateNtupleFCo << 122 fTupleF[i] = fManager->CreateNtupleFColumn(fNtupleF[i]); 122 } 123 } 123 } 124 } 124 n = fNtupleD.size(); 125 n = fNtupleD.size(); 125 for (i = 0; i < n; ++i) { << 126 for(i=0; i<n; ++i) { 126 if (fTupleD[i] == -1) { << 127 if(fTupleD[i] == -1) { 127 fTupleD[i] = fManager->CreateNtupleDCo << 128 fTupleD[i] = fManager->CreateNtupleDColumn(fNtupleD[i]); 128 } 129 } 129 } 130 } 130 } 131 } 131 } << 132 } 132 133 133 //....oooOO0OOooo........oooOO0OOooo........oo 134 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 134 135 135 void Histo::Save() 136 void Histo::Save() 136 { 137 { 137 if (!(fHistoActive || fNtupleActive)) { << 138 if(!(fHistoActive || fNtupleActive)) { return; } 138 return; << 139 139 } << 140 // Creating a tree mapped to a new hbook file. >> 141 G4String nam = fHistName + "." + fHistType; 140 142 141 // Write histogram file 143 // Write histogram file 142 if (!fManager->Write()) { << 144 if(!fManager->Write()) { 143 G4cout << "Histo::Save: FATAL ERROR writin << 145 G4cout << "Histo::Save: FATAL ERROR writing ROOT file" << G4endl; 144 exit(1); 146 exit(1); 145 } 147 } 146 if (fVerbose > 0) { << 148 if(fVerbose > 0) { 147 G4cout << "### Histo::Save: Histograms and 149 G4cout << "### Histo::Save: Histograms and Ntuples are saved" << G4endl; 148 } 150 } 149 if (fManager->CloseFile() && fVerbose > 0) { << 151 if(fManager->CloseFile() && fVerbose > 0) { 150 G4cout << "Histo::Save: File is closed" << << 152 G4cout << " File is closed" << G4endl; 151 } 153 } 152 fManager->Clear(); << 154 delete G4RootAnalysisManager::Instance(); 153 } << 155 fManager = 0; >> 156 } 154 157 155 //....oooOO0OOooo........oooOO0OOooo........oo 158 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 156 159 157 void Histo::Add1D(const G4String& id, const G4 << 160 void Histo::Add1D(const G4String& id, const G4String& name, G4int nb, 158 G4double u) << 161 G4double x1, G4double x2, G4double u) 159 { 162 { 160 if (fVerbose > 0) { << 163 if(fVerbose > 0) { 161 G4cout << "Histo::Add1D: New histogram wil << 164 G4cout << "Histo::Add1D: New histogram will be booked: #" 162 << " " << x1 << " " << x2 << " " << 165 << id << " <" << name >> 166 << " " << nb << " " << x1 << " " << x2 << " " << u >> 167 << G4endl; 163 } 168 } 164 ++fNHisto; 169 ++fNHisto; 165 x1 /= u; 170 x1 /= u; 166 x2 /= u; 171 x2 /= u; 167 fActive.push_back(fDefaultAct); 172 fActive.push_back(fDefaultAct); 168 fBins.push_back(nb); 173 fBins.push_back(nb); 169 fXmin.push_back(x1); 174 fXmin.push_back(x1); 170 fXmax.push_back(x2); 175 fXmax.push_back(x2); 171 fUnit.push_back(u); 176 fUnit.push_back(u); 172 fIds.push_back(id); 177 fIds.push_back(id); 173 fTitles.push_back(name); 178 fTitles.push_back(name); 174 fHisto.push_back(-1); 179 fHisto.push_back(-1); 175 } 180 } 176 181 177 //....oooOO0OOooo........oooOO0OOooo........oo 182 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 178 183 179 void Histo::SetHisto1D(G4int i, G4int nb, G4do << 184 void >> 185 Histo::SetHisto1D(G4int i, G4int nb, G4double x1, G4double x2, G4double u) 180 { 186 { 181 if (i >= 0 && i < fNHisto) { << 187 if(i>=0 && i<fNHisto) { 182 if (fVerbose > 0) { << 188 if(fVerbose > 0) { 183 G4cout << "Histo::SetHisto1D: #" << i << << 189 G4cout << "Histo::SetHisto1D: #" << i >> 190 << " " << nb << " " << x1 << " " << x2 << " " << u 184 << G4endl; 191 << G4endl; 185 } 192 } 186 fBins[i] = nb; 193 fBins[i] = nb; 187 fXmin[i] = x1; 194 fXmin[i] = x1; 188 fXmax[i] = x2; 195 fXmax[i] = x2; 189 fUnit[i] = u; 196 fUnit[i] = u; 190 fActive[i] = true; 197 fActive[i] = true; 191 fHistoActive = true; 198 fHistoActive = true; 192 } << 199 } else { 193 else { << 200 G4cout << "Histo::SetHisto1D: WARNING! wrong histogram index " 194 G4cout << "Histo::SetHisto1D: WARNING! wro << 201 << i << G4endl; 195 } 202 } 196 } 203 } 197 204 198 //....oooOO0OOooo........oooOO0OOooo........oo 205 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 199 206 200 void Histo::Activate(G4int i, G4bool val) 207 void Histo::Activate(G4int i, G4bool val) 201 { 208 { 202 if (fVerbose > 1) { << 209 if(fVerbose > 1) { 203 G4cout << "Histo::Activate: Histogram: #" << 210 G4cout << "Histo::Activate: Histogram: #" << i << " " 204 } << 211 << val << G4endl; 205 if (i >= 0 && i < fNHisto) { << 212 } 206 fActive[i] = val; << 213 if(i>=0 && i<fNHisto) { 207 if (val) { << 214 fActive[i] = val; 208 fHistoActive = true; << 215 if(val) { fHistoActive = true; } 209 } << 210 } 216 } 211 } 217 } 212 218 213 //....oooOO0OOooo........oooOO0OOooo........oo 219 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 214 220 215 void Histo::Fill(G4int i, G4double x, G4double 221 void Histo::Fill(G4int i, G4double x, G4double w) 216 { 222 { 217 if (!fHistoActive) { << 223 if(!fHistoActive) { return; } 218 return; << 224 if(fVerbose > 1) { 219 } << 225 G4cout << "Histo::Fill: Histogram: #" << i << " at x= " << x 220 if (fVerbose > 1) { << 226 << " weight= " << w 221 G4cout << "Histo::Fill: Histogram: #" << i << 227 << G4endl; 222 } << 228 } 223 if (i >= 0 && i < fNHisto) { << 229 if(i>=0 && i<fNHisto) { 224 if (fActive[i]) { << 230 if(fActive[i]) { fManager->FillH1(fHisto[i], x/fUnit[i], w); } 225 fManager->FillH1(fHisto[i], x / fUnit[i] << 231 } else { 226 } << 227 } << 228 else { << 229 G4cout << "Histo::Fill: WARNING! wrong his 232 G4cout << "Histo::Fill: WARNING! wrong histogram index " << i << G4endl; 230 } 233 } 231 } 234 } 232 235 233 //....oooOO0OOooo........oooOO0OOooo........oo 236 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 234 237 235 void Histo::ScaleH1(G4int i, G4double x) 238 void Histo::ScaleH1(G4int i, G4double x) 236 { 239 { 237 if (!fHistoActive) { << 240 if(!fHistoActive) { return; } 238 return; << 241 if(fVerbose > 0) { 239 } << 242 G4cout << "Histo::Scale: Histogram: #" << i 240 if (fVerbose > 0) { << 243 << " by factor " << x << G4endl; 241 G4cout << "Histo::Scale: Histogram: #" << << 244 } 242 } << 245 if(i>=0 && i<fNHisto) { 243 if (i >= 0 && i < fNHisto) { << 246 if(fActive[i]) { fManager->GetH1(fHisto[i])->scale(x); } 244 if (fActive[i]) { << 247 } else { 245 fManager->GetH1(fHisto[i])->scale(x); << 246 } << 247 } << 248 else { << 249 G4cout << "Histo::Scale: WARNING! wrong hi 248 G4cout << "Histo::Scale: WARNING! wrong histogram index " << i << G4endl; 250 } 249 } 251 } 250 } 252 251 253 //....oooOO0OOooo........oooOO0OOooo........oo 252 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 254 253 255 void Histo::AddTuple(const G4String& w1) 254 void Histo::AddTuple(const G4String& w1) 256 { 255 { 257 fTupleTitle = w1; 256 fTupleTitle = w1; 258 } 257 } 259 258 260 //....oooOO0OOooo........oooOO0OOooo........oo 259 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 261 260 262 void Histo::AddTupleI(const G4String& w1) 261 void Histo::AddTupleI(const G4String& w1) 263 { 262 { 264 fNtupleActive = true; 263 fNtupleActive = true; 265 fNtupleI.push_back(w1); 264 fNtupleI.push_back(w1); 266 fTupleI.push_back(-1); 265 fTupleI.push_back(-1); 267 } 266 } 268 267 269 //....oooOO0OOooo........oooOO0OOooo........oo 268 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 270 269 271 void Histo::AddTupleF(const G4String& w1) 270 void Histo::AddTupleF(const G4String& w1) 272 { 271 { 273 fNtupleActive = true; 272 fNtupleActive = true; 274 fNtupleF.push_back(w1); 273 fNtupleF.push_back(w1); 275 fTupleF.push_back(-1); 274 fTupleF.push_back(-1); 276 } 275 } 277 276 278 //....oooOO0OOooo........oooOO0OOooo........oo 277 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 279 278 280 void Histo::AddTupleD(const G4String& w1) 279 void Histo::AddTupleD(const G4String& w1) 281 { 280 { 282 fNtupleActive = true; 281 fNtupleActive = true; 283 fNtupleD.push_back(w1); 282 fNtupleD.push_back(w1); 284 fTupleD.push_back(-1); 283 fTupleD.push_back(-1); 285 } 284 } 286 285 287 //....oooOO0OOooo........oooOO0OOooo........oo 286 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 288 287 289 void Histo::FillTupleI(G4int i, G4int x) 288 void Histo::FillTupleI(G4int i, G4int x) 290 { 289 { 291 if (!fNtupleActive) { << 290 if(!fNtupleActive) { return; } 292 return; << 293 } << 294 G4int n = fNtupleI.size(); 291 G4int n = fNtupleI.size(); 295 if (i >= 0 && i < n) { << 292 if(i >= 0 && i < n) { 296 if (fVerbose > 1) { << 293 if(fVerbose > 1) { 297 G4cout << "Histo::FillTupleI: i= " << i << 294 G4cout << "Histo::FillTupleI: i= " << i << " id= " << fTupleI[i] 298 << "> = " << x << G4endl; << 295 << " <" << fNtupleI[i] << "> = " << x << G4endl; 299 } << 296 } 300 fManager->FillNtupleIColumn(fTupleI[i], x) << 297 fManager->FillNtupleIColumn(fTupleI[i], x); 301 } << 298 } else { 302 else { << 299 G4cout << "Histo::FillTupleI: WARNING! wrong ntuple index " 303 G4cout << "Histo::FillTupleI: WARNING! wro << 300 << i << G4endl; 304 } 301 } 305 } 302 } 306 303 307 //....oooOO0OOooo........oooOO0OOooo........oo 304 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 308 305 309 void Histo::FillTupleF(G4int i, G4float x) 306 void Histo::FillTupleF(G4int i, G4float x) 310 { 307 { 311 if (!fNtupleActive) { << 308 if(!fNtupleActive) { return; } 312 return; << 313 } << 314 G4int n = fNtupleF.size(); 309 G4int n = fNtupleF.size(); 315 if (i >= 0 && i < n) { << 310 if(i >= 0 && i < n) { 316 if (fVerbose > 1) { << 311 if(fVerbose > 1) { 317 G4cout << "Histo::FillTupleF: i= " << i << 312 G4cout << "Histo::FillTupleF: i= " << i << " id= " << fTupleF[i] 318 << "> = " << x << G4endl; << 313 << " <" << fNtupleF[i] << "> = " << x << G4endl; 319 } << 314 } 320 fManager->FillNtupleFColumn(fTupleF[i], x) << 315 fManager->FillNtupleFColumn(fTupleF[i], x); 321 } << 316 } else { 322 else { << 317 G4cout << "Histo::FillTupleF: WARNING! wrong ntuple index " 323 G4cout << "Histo::FillTupleF: WARNING! wro << 318 << i << G4endl; 324 } 319 } 325 } 320 } 326 321 327 //....oooOO0OOooo........oooOO0OOooo........oo 322 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 328 323 329 void Histo::FillTupleD(G4int i, G4double x) 324 void Histo::FillTupleD(G4int i, G4double x) 330 { 325 { 331 if (!fNtupleActive) { << 326 if(!fNtupleActive) { return; } 332 return; << 333 } << 334 G4int n = fNtupleD.size(); 327 G4int n = fNtupleD.size(); 335 if (i >= 0 && i < n) { << 328 if(i >= 0 && i < n) { 336 if (fVerbose > 1) { << 329 if(fVerbose > 1) { 337 G4cout << "Histo::FillTupleD: i= " << i << 330 G4cout << "Histo::FillTupleD: i= " << i << " id= " << fTupleD[i] 338 << "> = " << x << G4endl; << 331 << " <" << fNtupleD[i] << "> = " << x << G4endl; 339 } << 332 } 340 fManager->FillNtupleDColumn(fTupleD[i], x) << 333 fManager->FillNtupleDColumn(fTupleD[i], x); 341 } << 334 } else { 342 else { << 335 G4cout << "Histo::FillTupleD: WARNING! wrong ntuple index " 343 G4cout << "Histo::FillTupleD: WARNING! wro << 336 << i << G4endl; 344 } 337 } 345 } 338 } 346 339 347 //....oooOO0OOooo........oooOO0OOooo........oo 340 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 348 341 349 void Histo::AddRow() 342 void Histo::AddRow() 350 { 343 { 351 if (!fNtupleActive) { << 344 if(!fNtupleActive) { return; } 352 return; << 353 } << 354 fManager->AddNtupleRow(); 345 fManager->AddNtupleRow(); 355 } << 346 } 356 347 357 //....oooOO0OOooo........oooOO0OOooo........oo 348 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 358 349 359 void Histo::SetFileName(const G4String& nam) << 350 void Histo::SetFileName(const G4String& nam) 360 { 351 { 361 fHistName = nam; 352 fHistName = nam; 362 fHistoActive = true; 353 fHistoActive = true; 363 } 354 } 364 355 365 //....oooOO0OOooo........oooOO0OOooo........oo 356 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 357 >> 358 void Histo::SetFileType(const G4String& nam) >> 359 { >> 360 if(nam == "root" || nam == "ROOT" ) { fHistType = "root"; } >> 361 else if(nam == "xml" || nam == "XML") { fHistType = "xml"; } >> 362 else if(nam == "ascii" || nam == "ASCII" || >> 363 nam == "Csv" || nam == "csv" || nam == "CSV") >> 364 { fHistType = "ascii"; } >> 365 } >> 366 >> 367 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 368 366 369