| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

TH2DE.cc File Reference

#include "TH2DE.h"
#include "DetDesc/ILVolume.h"
#include "DetDesc/IPVolume.h"
#include "DetDesc/IDetectorElement.h"
#include "DetDesc/IGeometryInfo.h"
#include "G4TouchableHistory.hh"
#include "G4VPhysicalVolume.hh"
#include <sstream>

Include dependency graph for TH2DE.cc:

Go to the source code of this file.


Functions

static void split (vector< string > &out, const string &src, char del)
static string dumpstr (const G4TouchableHistory *g4hist)

Function Documentation

static void split ( vector< string > &  out,
const string &  src,
char  del 
) [static]

Definition at line 29 of file TH2DE.cc.

00030 {
00031     out.clear();
00032     string::size_type pos = 0, siz = src.size();
00033     while (pos < siz) {
00034         string::size_type found = src.find(del,pos);
00035         if (found == string::npos) {
00036             out.push_back(src.substr(pos,siz-pos));
00037             break;
00038         }
00039         out.push_back(src.substr(pos,found-pos));
00040         pos = found+1;
00041     }
00042 }

static string dumpstr ( const G4TouchableHistory *  g4hist  )  [static]

Definition at line 44 of file TH2DE.cc.

00045 {
00046     stringstream ss;
00047     int siz = g4hist->GetHistoryDepth();
00048     for (int ind=0; ind < siz; ++ind) {
00049         ss << g4hist->GetVolume(ind)->GetName() << "\n";
00050     }
00051     ss << ends;
00052     return ss.str();
00053 }

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:32:09 2011 for G4DataHelpers by doxygen 1.4.7