#include <Dicom2Run.hh>
Public Types | |
typedef G4VTHitsVector< G4StatAnalysis, std::vector< G4StatAnalysis > > | Dicom2RunVector |
Public Member Functions | |
Dicom2Run () | |
(Description) Dicom2Run Class is for accumulating scored quantities which is scored using G4MutiFunctionalDetector and G4VPrimitiveScorer. | |
Dicom2Run (const std::vector< G4String > mfdName) | |
virtual | ~Dicom2Run () |
virtual void | RecordEvent (const G4Event *) |
size_t | GetNumberOfHitsMap () const |
Dicom2RunVector * | GetHitsVector (G4int i) const |
Dicom2RunVector * | GetHitsVector (const G4String &detName, const G4String &colName) const |
Dicom2RunVector * | GetHitsVector (const G4String &fullName) const |
void | ConstructMFD (const std::vector< G4String > &) |
virtual void | Merge (const G4Run *) |
Public Member Functions inherited from DicomRun | |
DicomRun () | |
(Description) DicomRun Class is for accumulating scored quantities which is scored using G4MutiFunctionalDetector and G4VPrimitiveScorer. | |
DicomRun (const std::vector< G4String > mfdName) | |
virtual | ~DicomRun () |
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 > &) |
Private Attributes | |
std::vector< G4String > | fCollName |
std::vector< G4int > | fCollID |
std::vector< Dicom2RunVector * > | fRunMap |
Dicom2Run class.
Demonstrates how to use G4StatAnalysis as a vector of objects (instead of vector of pointers to objects) to reduce memory consumption
Definition at line 52 of file Dicom2Run.hh.
typedef G4VTHitsVector<G4StatAnalysis, std::vector<G4StatAnalysis> > Dicom2Run::Dicom2RunVector |
Definition at line 56 of file Dicom2Run.hh.
Dicom2Run::Dicom2Run | ( | ) |
(Description) Dicom2Run Class is for accumulating scored quantities which is scored using G4MutiFunctionalDetector and G4VPrimitiveScorer.
Accumulation is done using G4THitsVector object.
The constructor Dicom2Run(const std::vector<G4String> mfdName) needs a vector filled with MultiFunctionalDetector names which was assigned at instantiation of MultiFunctionalDetector(MFD). Then Dicom2Run constructor automatically scans primitive scorers in the MFD, and obtains collectionIDs of all collections associated to those primitive scorers. Futhermore, the G4THitsVector objects for accumulating during a RUN are automatically created too. (*) Collection Name is same as primitive scorer name.
The resultant information is kept inside Dicom2Run objects as data members. std::vector<G4String> fCollName; // Collection Name, std::vector<G4int> fCollID; // Collection ID, std::vector<Dicom2RunVector*> fRunMap; // HitsVector for RUN.
The resualtant HitsVector objects are obtain using access method, GetHitsVector(..).
Definition at line 69 of file Dicom2Run.cc.
Dicom2Run::Dicom2Run | ( | const std::vector< G4String > | mfdName | ) |
Definition at line 77 of file Dicom2Run.cc.
|
virtual |
|
virtual |
Reimplemented from DicomRun.
Definition at line 165 of file Dicom2Run.cc.
|
inline |
Definition at line 71 of file Dicom2Run.hh.
|
inline |
Definition at line 75 of file Dicom2Run.hh.
Dicom2Run::Dicom2RunVector * Dicom2Run::GetHitsVector | ( | const G4String & | detName, |
const G4String & | colName | ||
) | const |
Definition at line 231 of file Dicom2Run.cc.
Dicom2Run::Dicom2RunVector * Dicom2Run::GetHitsVector | ( | const G4String & | fullName | ) | const |
Definition at line 243 of file Dicom2Run.cc.
void Dicom2Run::ConstructMFD | ( | const std::vector< G4String > & | mfdName | ) |
Definition at line 104 of file Dicom2Run.cc.
|
virtual |
Reimplemented from DicomRun.
Definition at line 208 of file Dicom2Run.cc.
|
private |
Definition at line 86 of file Dicom2Run.hh.
|
private |
Definition at line 87 of file Dicom2Run.hh.
|
private |
Definition at line 88 of file Dicom2Run.hh.