#include <Doxymodules_medical.h>
Public Member Functions | |
DicomRun () | |
(Description) DicomRun Class is for accumulating scored quantities which is scored using G4MutiFunctionalDetector and G4VPrimitiveScorer. | |
DicomRun (const std::vector< G4String > mfdName) | |
virtual | ~DicomRun () |
virtual void | RecordEvent (const G4Event *) |
size_t | GetNumberOfHitsMap () const |
G4THitsMap< G4double > * | GetHitsMap (G4int i) const |
G4THitsMap< G4double > * | GetHitsMap (const G4String &detName, const G4String &colName) const |
G4THitsMap< G4double > * | GetHitsMap (const G4String &fullName) const |
void | ConstructMFD (const std::vector< G4String > &) |
virtual void | Merge (const G4Run *) |
Private Attributes | |
std::vector< G4String > | fCollName |
std::vector< G4int > | fCollID |
std::vector< G4THitsMap< G4double > * > | fRunMap |
DicomRun class.
Example implementation for multi-functional-detector and primitive scorer. This DicomRun class has collections which accumulate a event information into a run information.
Definition at line 32 of file Doxymodules_medical.h.
DicomRun::DicomRun | ( | ) |
(Description) DicomRun Class is for accumulating scored quantities which is scored using G4MutiFunctionalDetector and G4VPrimitiveScorer.
Accumulation is done using G4THitsMap object.
The constructor DicomRun(const std::vector<G4String> mfdName) needs a vector filled with MultiFunctionalDetector names which was assigned at instantiation of MultiFunctionalDetector(MFD). Then DicomRun constructor automatically scans primitive scorers in the MFD, and obtains collectionIDs of all collections associated to those primitive scorers. Futhermore, the G4THitsMap objects for accumulating during a RUN are automatically created too. (*) Collection Name is same as primitive scorer name.
The resultant information is kept inside DicomRun objects as data members. std::vector<G4String> fCollName; // Collection Name, std::vector<G4int> fCollID; // Collection ID, std::vector<G4THitsMap<G4double>*> fRunMap; // HitsMap for RUN.
The resualtant HitsMap objects are obtain using access method, GetHitsMap(..).
Definition at line 66 of file DicomRun.cc.
DicomRun::DicomRun | ( | const std::vector< G4String > | mfdName | ) |
Definition at line 74 of file DicomRun.cc.
|
virtual |
Definition at line 83 of file DicomRun.cc.
|
virtual |
Reimplemented in Dicom2Run.
Definition at line 157 of file DicomRun.cc.
|
inline |
Definition at line 67 of file DicomRun.hh.
|
inline |
Definition at line 71 of file DicomRun.hh.
G4THitsMap< G4double > * DicomRun::GetHitsMap | ( | const G4String & | detName, |
const G4String & | colName | ||
) | const |
Definition at line 224 of file DicomRun.cc.
G4THitsMap< G4double > * DicomRun::GetHitsMap | ( | const G4String & | fullName | ) | const |
Definition at line 235 of file DicomRun.cc.
void DicomRun::ConstructMFD | ( | const std::vector< G4String > & | mfdName | ) |
Definition at line 100 of file DicomRun.cc.
|
virtual |
Reimplemented in Dicom2Run.
Definition at line 202 of file DicomRun.cc.
|
private |
Definition at line 82 of file DicomRun.hh.
|
private |
Definition at line 83 of file DicomRun.hh.
|
private |
Definition at line 84 of file DicomRun.hh.