35 #ifndef CHEM4_ScoreSpecies_h
36 #define CHEM4_ScoreSpecies_h 1
67 fTimeToRecord.insert(time);
73 fTimeToRecord.clear();
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;
149 typedef std::map<Species, SpeciesInfo> InnerSpeciesMap;
150 typedef std::map<double, InnerSpeciesMap> SpeciesMap;
151 SpeciesMap fSpeciesInfoPerTime;
153 #ifdef _ScoreSpecies_FOR_ALL_EVENTS
154 typedef std::map<Species, SpeciesInfoSOA> InnerSpeciesMapPerEvent;
155 typedef std::map<double, InnerSpeciesMapPerEvent> SpeciesMapPerEvent;
156 SpeciesMapPerEvent fSpeciesInfoPerEvent;
159 std::set<G4double> fTimeToRecord;
173 virtual void clear();
void WriteWithAnalysisManager(G4VAnalysisManager *)
int GetNumberOfRecordedEvents() const
virtual G4bool ProcessHits(G4Step *, G4TouchableHistory *)
SpeciesInfo(const SpeciesInfo &right)
virtual void Initialize(G4HCofThisEvent *)
SpeciesInfo & operator=(const SpeciesInfo &right)
void AddTimeToRecord(double time)
virtual void EndOfEvent(G4HCofThisEvent *)
virtual void OutputAndClear()
virtual void AbsorbResultsFromWorkerScorer(G4VPrimitiveScorer *)
SpeciesMap GetSpeciesInfo()
ScoreSpecies(G4String name, G4int depth=0)