ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/examples/extended/medical/DICOM2/include/Dicom2Run.hh>
Public Types | |
typedef G4VTHitsVector < G4StatAnalysis, std::vector < G4StatAnalysis > > | Dicom2RunVector |
Private Attributes | |
std::vector< G4String > | fCollName |
std::vector< G4int > | fCollID |
std::vector< Dicom2RunVector * > | fRunMap |
Additional Inherited Members | |
Protected Attributes inherited from G4Run | |
G4int | runID |
G4int | numberOfEvent |
G4int | numberOfEventToBeProcessed |
G4HCtable * | HCtable |
G4DCtable * | DCtable |
G4String | randomNumberStatus |
std::vector< const G4Event * > * | eventVector |
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.
View newest version in sPHENIX GitHub at line 52 of file Dicom2Run.hh
typedef G4VTHitsVector<G4StatAnalysis, std::vector<G4StatAnalysis> > Dicom2Run::Dicom2RunVector |
Definition at line 56 of file Dicom2Run.hh.
View newest version in sPHENIX GitHub 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.
View newest version in sPHENIX GitHub at line 69 of file Dicom2Run.cc
Dicom2Run::Dicom2Run | ( | const std::vector< G4String > | mfdName | ) |
Definition at line 77 of file Dicom2Run.cc.
View newest version in sPHENIX GitHub at line 77 of file Dicom2Run.cc
References ConstructMFD().
|
virtual |
Definition at line 87 of file Dicom2Run.cc.
View newest version in sPHENIX GitHub at line 87 of file Dicom2Run.cc
Definition at line 104 of file Dicom2Run.cc.
View newest version in sPHENIX GitHub at line 104 of file Dicom2Run.cc
References DicomRun::ConstructMFD(), fCollID, fCollName, G4SDManager::FindSensitiveDetector(), fRunMap, G4cout, G4endl, G4SDManager::GetCollectionID(), G4VPrimitiveScorer::GetName(), G4MultiFunctionalDetector::GetNumberOfPrimitives(), G4MultiFunctionalDetector::GetPrimitive(), and G4SDManager::GetSDMpointer().
Referenced by Dicom2Run().
|
inline |
Definition at line 75 of file Dicom2Run.hh.
View newest version in sPHENIX GitHub at line 75 of file Dicom2Run.hh
References fRunMap.
Referenced by Dicom2RunAction::EndOfRunAction(), and GetHitsVector().
Dicom2Run::Dicom2RunVector * Dicom2Run::GetHitsVector | ( | const G4String & | detName, |
const G4String & | colName | ||
) | const |
Definition at line 231 of file Dicom2Run.cc.
View newest version in sPHENIX GitHub at line 231 of file Dicom2Run.cc
References GetHitsVector().
Dicom2Run::Dicom2RunVector * Dicom2Run::GetHitsVector | ( | const G4String & | fullName | ) | const |
Definition at line 243 of file Dicom2Run.cc.
View newest version in sPHENIX GitHub at line 243 of file Dicom2Run.cc
References fCollName, fRunMap, G4Exception(), and JustWarning.
|
inline |
Definition at line 71 of file Dicom2Run.hh.
View newest version in sPHENIX GitHub at line 71 of file Dicom2Run.hh
References fRunMap.
Reimplemented from DicomRun.
Definition at line 208 of file Dicom2Run.cc.
View newest version in sPHENIX GitHub at line 208 of file Dicom2Run.cc
References Copy(), fCollID, fCollName, fRunMap, and DicomRun::Merge().
Reimplemented from DicomRun.
Definition at line 165 of file Dicom2Run.cc.
View newest version in sPHENIX GitHub at line 165 of file Dicom2Run.cc
References fCollID, fRunMap, G4cout, G4endl, G4HCofThisEvent::GetHC(), G4Event::GetHCofThisEvent(), and DicomRun::RecordEvent().
|
private |
Definition at line 87 of file Dicom2Run.hh.
View newest version in sPHENIX GitHub at line 87 of file Dicom2Run.hh
Referenced by ConstructMFD(), Merge(), RecordEvent(), and ~Dicom2Run().
|
private |
Definition at line 86 of file Dicom2Run.hh.
View newest version in sPHENIX GitHub at line 86 of file Dicom2Run.hh
Referenced by ConstructMFD(), GetHitsVector(), Merge(), and ~Dicom2Run().
|
private |
Definition at line 88 of file Dicom2Run.hh.
View newest version in sPHENIX GitHub at line 88 of file Dicom2Run.hh
Referenced by ConstructMFD(), GetHitsVector(), GetNumberOfHitsMap(), Merge(), RecordEvent(), and ~Dicom2Run().