Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
DicomRun.hh File Reference

Definition of the DicomRun class. More...

#include "G4Run.hh"
#include "G4Event.hh"
#include "G4THitsMap.hh"
#include <vector>

Go to the source code of this file.

Data Structures

class  DicomRun
 

Functions

template<typename T >
void copy (std::vector< T > &main, const std::vector< T > &data)
 
template<typename T >
unsigned copy (std::vector< T * > &main, const std::vector< T * > &data)
 
template<typename T >
void print (const std::vector< T > &data)
 

Detailed Description

Definition of the DicomRun class.

Definition in file DicomRun.hh.

Function Documentation

template<typename T >
void copy ( std::vector< T > &  main,
const std::vector< T > &  data 
)
inline

Definition at line 91 of file DicomRun.hh.

Referenced by G3VolTableEntry::ClearG3PosCopy(), inflate(), inflateBack(), inflateCopy(), DicomRun::Merge(), G4INCL::NuclearDensity::NuclearDensity(), G4VHadDecayAlgorithm::PrintVector(), and updatewindow().

92 {
93  //std::cout << "Main size :: " << main.size() << G4endl;
94  //std::cout << "Data size :: " << data.size() << G4endl;
95  for(unsigned i = main.size(); i < data.size(); ++i) {
96  main.push_back(data.at(i));
97  }
98 }
int main(int argc, char **argv)
Definition: genwindef.cpp:30
const XML_Char const XML_Char * data
template<typename T >
unsigned copy ( std::vector< T * > &  main,
const std::vector< T * > &  data 
)
inline

Definition at line 101 of file DicomRun.hh.

102 {
103  unsigned size_diff = data.size() - main.size();
104  for(unsigned i = main.size(); i < data.size(); ++i) {
105  main.push_back(new T(*data.at(i)));
106  }
107  return size_diff;
108 }
int main(int argc, char **argv)
Definition: genwindef.cpp:30
const XML_Char const XML_Char * data
template<typename T >
void print ( const std::vector< T > &  data)
inline