56 DicomRun(
const std::vector<G4String> mfdName);
83 std::vector<G4THitsMap<G4double>*>
fRunMap;
91 inline void copy(std::vector<T>&
main,
const std::vector<T>& data)
95 for(
unsigned i = main.size(); i < data.size(); ++i) {
96 main.push_back(data.at(i));
100 template <
typename T>
101 inline unsigned copy(std::vector<T*>&
main,
const std::vector<T*>& data)
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)));
110 template <
typename T>
111 inline void print(
const std::vector<T>& data)
114 for(
unsigned i = 0; i < data.size(); ++i) {
115 G4cout <<
"\t\t" << i <<
" \t\t " << data.at(i) <<
G4endl;
virtual void Merge(const G4Run *)
virtual void RecordEvent(const G4Event *)
void ConstructMFD(const std::vector< G4String > &)
G4int GetNumberOfHitsMap() const
void copy(std::vector< T > &main, const std::vector< T > &data)
int main(int argc, char **argv)
G4GLOB_DLL std::ostream G4cout
DicomRun()
(Description) DicomRun Class is for accumulating scored quantities which is scored using G4MutiFuncti...
std::vector< G4THitsMap< G4double > * > fRunMap
G4THitsMap< G4double > * GetHitsMap(G4int i) const
std::vector< G4String > fCollName
void print(const std::vector< T > &data)
std::vector< G4int > fCollID