ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/examples/extended/medical/dna/chem4/include/ScoreSpecies.hh>
Classes | |
struct | SpeciesInfo |
Protected Member Functions | |
virtual G4bool | ProcessHits (G4Step *, G4TouchableHistory *) |
virtual G4bool | ProcessHits (G4Step *, G4TouchableHistory *) |
Protected Member Functions inherited from G4VPrimitiveScorer | |
virtual G4int | GetIndex (G4Step *) |
void | CheckAndSetUnit (const G4String &unit, const G4String &category) |
Private Types | |
typedef const G4MolecularConfiguration | Species |
typedef std::map< Species *, SpeciesInfo > | InnerSpeciesMap |
typedef std::map< double, InnerSpeciesMap > | SpeciesMap |
typedef const G4MolecularConfiguration | Species |
typedef std::map< Species *, SpeciesInfo > | InnerSpeciesMap |
typedef std::map< double, InnerSpeciesMap > | SpeciesMap |
Private Attributes | |
SpeciesMap | fSpeciesInfoPerTime |
std::set< G4double > | fTimeToRecord |
int | fNEvent |
double | fEdep |
G4bool | fOutputToRoot |
G4bool | fOutputToXml |
G4bool | fOutputToCsv |
G4int | fHCID |
G4THitsMap< G4double > * | fEvtMap |
Additional Inherited Members | |
Protected Attributes inherited from G4VPrimitiveScorer | |
G4String | primitiveName |
G4MultiFunctionalDetector * | detector |
G4VSDFilter * | filter |
G4int | verboseLevel |
G4int | indexDepth |
G4String | unitName |
G4double | unitValue |
G4int | fNi |
G4int | fNj |
G4int | fNk |
This is a primitive scorer class for molecular species. The number of species is recorded for all times (predetermined or user chosen). It also scores the energy deposition in order to compute the radiochemical yields.
This is a primitive scorer class for molecular species. The number of species is recorded for all times (log spaced). It also scores the energy deposition in order to compute the radiochemical yields.
Definition at line 55 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 55 of file ScoreSpecies.hh
|
private |
Definition at line 111 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 111 of file ScoreSpecies.hh
|
private |
Definition at line 148 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 148 of file ScoreSpecies.hh
|
private |
Definition at line 110 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 110 of file ScoreSpecies.hh
|
private |
Definition at line 147 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 147 of file ScoreSpecies.hh
|
private |
Definition at line 112 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 112 of file ScoreSpecies.hh
|
private |
Definition at line 149 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 149 of file ScoreSpecies.hh
Definition at line 57 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 57 of file ScoreSpecies.cc
References AddTimeToRecord(), fEdep, fNEvent, and CLHEP::picosecond.
|
virtual |
Definition at line 79 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 79 of file ScoreSpecies.cc
|
virtual |
|
virtual |
Method used in multithreading mode in order to merge the results
|
virtual |
Method used in multithreading mode in order to merge the results
Definition at line 192 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 192 of file ScoreSpecies.cc
References clear(), fEdep, ScoreSpecies::SpeciesInfo::fG, SpeciesInfoSOA::fG, ScoreSpecies::SpeciesInfo::fG2, fNEvent, ScoreSpecies::SpeciesInfo::fNumber, fSpeciesInfoPerTime, and right.
|
inline |
Add a time at which the number of species should be recorded. Default times are set up to 1 microsecond.
Definition at line 62 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 62 of file ScoreSpecies.hh
References fTimeToRecord.
|
inline |
Add a time at which the number of species should be recorded. Default times are set up to 1 microsecond.
Definition at line 64 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 64 of file ScoreSpecies.hh
References fTimeToRecord.
Referenced by ScoreSpecies().
void ScoreSpecies::ASCII | ( | ) |
Write results to an text file
void ScoreSpecies::ASCII | ( | ) |
Write results to an text file
Definition at line 313 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 313 of file ScoreSpecies.cc
References fSpeciesInfoPerTime, and G4endl.
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Reimplemented from G4VPrimitiveScorer.
Definition at line 279 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 279 of file ScoreSpecies.cc
References G4VTHitsMap< T, Map_t >::clear(), fEdep, fEvtMap, fNEvent, and fSpeciesInfoPerTime.
Referenced by AbsorbResultsFromWorkerScorer().
|
inline |
Remove all times to record, must be reset by user.
Definition at line 68 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 68 of file ScoreSpecies.hh
References fTimeToRecord.
|
inline |
Remove all times to record, must be reset by user.
Definition at line 70 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 70 of file ScoreSpecies.hh
References fTimeToRecord.
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Reimplemented from G4VPrimitiveScorer.
Definition at line 289 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 289 of file ScoreSpecies.cc
|
virtual |
Reimplemented from G4VPrimitiveScorer.
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 115 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 115 of file ScoreSpecies.cc
References eV, FatalException, fEdep, ScoreSpecies::SpeciesInfo::fG, SpeciesInfoSOA::fG, ScoreSpecies::SpeciesInfo::fG2, fNEvent, ScoreSpecies::SpeciesInfo::fNumber, fSpeciesInfoPerTime, fTimeToRecord, G4BestUnit, G4cerr, G4cout, G4endl, G4Exception(), G4EventManager::GetConstCurrentEvent(), G4Event::GetEventID(), G4EventManager::GetEventManager(), G4MoleculeCounter::GetNMoleculesAtTime(), G4MoleculeCounter::GetRecordedMolecules(), G4MoleculeCounter::Instance(), molecule(), and G4MoleculeCounter::ResetCounter().
|
inline |
Get number of recorded events
Definition at line 74 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 74 of file ScoreSpecies.hh
References fNEvent.
|
inline |
Get number of recorded events
Definition at line 76 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 76 of file ScoreSpecies.hh
References fNEvent.
|
inline |
Definition at line 134 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 134 of file ScoreSpecies.hh
References fSpeciesInfoPerTime.
|
inline |
Definition at line 180 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 180 of file ScoreSpecies.hh
References fSpeciesInfoPerTime.
|
virtual |
Reimplemented from G4VPrimitiveScorer.
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 100 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 100 of file ScoreSpecies.cc
References G4HCofThisEvent::AddHitsCollection(), fEvtMap, fHCID, G4VPrimitiveScorer::GetCollectionID(), G4VPrimitiveScorer::GetMultiFunctionalDetector(), G4VPrimitiveScorer::GetName(), and G4VSensitiveDetector::GetName().
|
virtual |
|
virtual |
Definition at line 338 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 338 of file ScoreSpecies.cc
References fNEvent, fOutputToCsv, fOutputToRoot, fOutputToXml, fSpeciesInfoPerTime, G4Threading::IsWorkerThread(), G4Analysis::ManagerInstance(), and WriteWithAnalysisManager().
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Reimplemented from G4VPrimitiveScorer.
Definition at line 294 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 294 of file ScoreSpecies.cc
References G4VPrimitiveScorer::detector, G4VTHitsMap< T, Map_t >::entries(), fEvtMap, fNEvent, G4cout, G4endl, G4VTHitsMap< T, Map_t >::GetMap(), G4VPrimitiveScorer::GetName(), G4VSensitiveDetector::GetName(), G4VPrimitiveScorer::GetUnit(), and G4VPrimitiveScorer::GetUnitValue().
|
protectedvirtual |
Implements G4VPrimitiveScorer.
|
protectedvirtual |
Implements G4VPrimitiveScorer.
Definition at line 84 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 84 of file ScoreSpecies.cc
References G4VTHitsMap< T, Map_t >::add(), edep, FALSE, fEdep, fEvtMap, G4VPrimitiveScorer::GetIndex(), G4Step::GetPreStepPoint(), G4Step::GetTotalEnergyDeposit(), G4StepPoint::GetWeight(), and TRUE.
void ScoreSpecies::WriteWithAnalysisManager | ( | G4VAnalysisManager * | analysisManager | ) |
Write results to whatever chosen file format
Definition at line 373 of file ScoreSpecies.cc.
View newest version in sPHENIX GitHub at line 373 of file ScoreSpecies.cc
References G4VAnalysisManager::AddNtupleRow(), G4VAnalysisManager::CloseFile(), G4VAnalysisManager::CreateNtuple(), G4VAnalysisManager::CreateNtupleDColumn(), G4VAnalysisManager::CreateNtupleIColumn(), G4VAnalysisManager::CreateNtupleSColumn(), G4VAnalysisManager::FillNtupleDColumn(), G4VAnalysisManager::FillNtupleIColumn(), G4VAnalysisManager::FillNtupleSColumn(), G4VAnalysisManager::FinishNtuple(), G4String::first(), fNEvent, fSpeciesInfoPerTime, G, G4MolecularConfiguration::GetName(), G4VAnalysisManager::OpenFile(), Acts::VectorHelpers::time(), and G4VAnalysisManager::Write().
Referenced by OutputAndClear().
|
private |
Definition at line 161 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 161 of file ScoreSpecies.hh
Referenced by AbsorbResultsFromWorkerScorer(), clear(), EndOfEvent(), ProcessHits(), and ScoreSpecies().
|
private |
Definition at line 184 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 184 of file ScoreSpecies.hh
Referenced by clear(), Initialize(), PrintAll(), and ProcessHits().
|
private |
Definition at line 183 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 183 of file ScoreSpecies.hh
Referenced by Initialize().
|
private |
Definition at line 160 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 160 of file ScoreSpecies.hh
Referenced by AbsorbResultsFromWorkerScorer(), clear(), EndOfEvent(), GetNumberOfRecordedEvents(), OutputAndClear(), PrintAll(), ScoreSpecies(), and WriteWithAnalysisManager().
|
private |
Definition at line 164 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 164 of file ScoreSpecies.hh
Referenced by OutputAndClear().
|
private |
Definition at line 162 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 162 of file ScoreSpecies.hh
Referenced by OutputAndClear().
|
private |
Definition at line 163 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 163 of file ScoreSpecies.hh
Referenced by OutputAndClear().
|
private |
Definition at line 150 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 150 of file ScoreSpecies.hh
Referenced by AbsorbResultsFromWorkerScorer(), ASCII(), clear(), EndOfEvent(), GetSpeciesInfo(), OutputAndClear(), and WriteWithAnalysisManager().
|
private |
Definition at line 158 of file ScoreSpecies.hh.
View newest version in sPHENIX GitHub at line 158 of file ScoreSpecies.hh
Referenced by AddTimeToRecord(), ClearTimeToRecord(), and EndOfEvent().