35 #ifndef CHEM4_ScoreSpecies_h
36 #define CHEM4_ScoreSpecies_h 1
104 if(&right ==
this)
return *
this;
115 #ifdef _ScoreSpecies_FOR_ALL_EVENTS
126 fNumber = right.fNumber;
129 fEventID = right.fEventID;
133 if(&right ==
this)
return *
this;
134 fNumber = right.fNumber;
137 fEventID = right.fEventID;
140 std::vector<int> fNumber;
141 std::vector<double> fG;
142 std::vector<double> fG2;
143 std::vector<int> fEventID;
153 #ifdef _ScoreSpecies_FOR_ALL_EVENTS
154 typedef std::map<Species, SpeciesInfoSOA> InnerSpeciesMapPerEvent;
155 typedef std::map<double, InnerSpeciesMapPerEvent> SpeciesMapPerEvent;
156 SpeciesMapPerEvent fSpeciesInfoPerEvent;
173 virtual void clear();
The pointer G4MolecularConfiguration will be shared by all the molecules having the same molecule def...
void WriteWithAnalysisManager(G4VAnalysisManager *)
Write results to whatever chosen file format.
int GetNumberOfRecordedEvents() const
Get number of recorded events.
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
SpeciesInfo(const SpeciesInfo &right)
std::set< G4double > fTimeToRecord
virtual void Initialize(G4HCofThisEvent *)
void ClearTimeToRecord()
Remove all times to record, must be reset by user.
const char * name(G4int ptype)
void ASCII()
Write results to an text file.
SpeciesMap fSpeciesInfoPerTime
This is a primitive scorer class for molecular species.
SpeciesInfo & operator=(const SpeciesInfo &right)
void AddTimeToRecord(double time)
Add a time at which the number of species should be recorded.
virtual void EndOfEvent(G4HCofThisEvent *)
virtual void OutputAndClear()
std::map< double, InnerSpeciesMap > SpeciesMap
std::map< Species, SpeciesInfo > InnerSpeciesMap
virtual void AbsorbResultsFromWorkerScorer(G4VPrimitiveScorer *)
Method used in multithreading mode in order to merge the results.
G4MolecularConfiguration * Species
G4THitsMap< G4double > * fEvtMap
SpeciesMap GetSpeciesInfo()
ScoreSpecies(G4String name, G4int depth=0)