Warning, file /include/Geant4/G4QMDSystem.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 #ifndef G4QMDSystem_hh
0041 #define G4QMDSystem_hh
0042
0043 #include "G4QMDParticipant.hh"
0044
0045 class G4QMDSystem
0046 {
0047 public:
0048
0049 G4QMDSystem();
0050 virtual ~G4QMDSystem();
0051
0052 void SetParticipant( G4QMDParticipant* particle )
0053 {
0054 participants.push_back ( particle );
0055 }
0056
0057 void SetSystem ( G4QMDSystem* , G4ThreeVector , G4ThreeVector );
0058
0059 void SubtractSystem ( G4QMDSystem* );
0060
0061 G4QMDParticipant* EraseParticipant( G4int i )
0062 {
0063 G4QMDParticipant* particle = participants[ i ];
0064 participants.erase(std::find( participants.cbegin(),
0065 participants.cend(), participants[ i ]));
0066 return particle;
0067 }
0068
0069 void DeleteParticipant( G4int i )
0070 {
0071 delete participants[ i ];
0072 participants.erase(std::find ( participants.cbegin(),
0073 participants.cend(), participants[ i ]));
0074 }
0075
0076 void InsertParticipant( G4QMDParticipant* particle , G4int j );
0077
0078 G4int GetTotalNumberOfParticipant()
0079 {
0080 return (G4int)participants.size();
0081 }
0082
0083 G4QMDParticipant* GetParticipant( G4int i )
0084 {
0085 return participants[i];
0086 }
0087
0088 void IncrementCollisionCounter()
0089 {
0090 ++numberOfCollision;
0091 }
0092
0093 G4int GetNOCollision()
0094 {
0095 return numberOfCollision;
0096 }
0097
0098 void ShowParticipants();
0099
0100 void Clear();
0101
0102 protected:
0103 std::vector< G4QMDParticipant* > participants;
0104
0105 private:
0106 G4int numberOfCollision;
0107 };
0108
0109 #endif