Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomRun.hh File Reference

Definition of the DicomRun class. More...

#include "G4Run.hh"
#include "G4Event.hh"
#include "G4THitsMap.hh"
#include <vector>
Include dependency graph for DicomRun.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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.

92 {
93  for(unsigned i = main.size(); i < data.size(); ++i) {
94  main.push_back(data.at(i));
95  }
96 }
int main(int argc, char **argv)
Definition: genwindef.cpp:30
const XML_Char const XML_Char * data
Definition: expat.h:268

Here is the caller graph for this function:

template<typename T >
unsigned Copy ( std::vector< T * > &  main,
const std::vector< T * > &  data 
)
inline

Definition at line 99 of file DicomRun.hh.

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

Definition at line 109 of file DicomRun.hh.

110 {
111  G4cout << G4endl;
112  for(unsigned i = 0; i < data.size(); ++i) {
113  G4cout << "\t\t" << i << " \t\t " << data.at(i) << G4endl;
114  }
115  G4cout << G4endl;
116 }
const XML_Char const XML_Char * data
Definition: expat.h:268
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the caller graph for this function: