Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4AtomicBond.hh
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 //
28 //
29 //---------------------------------------------------------------
30 //
31 // G4AtomicBond
32 //
33 // Class Description:
34 //
35 
36 
37 #ifndef G4AtomicBond_H
38 #define G4AtomicBond_H 1
39 
40 #include "globals.hh"
41 #include "G4Element.hh"
42 
44 {
45 public:
46  enum theBondType {Ionic=0, Covalent=1, Metallic=2, NA=-1 };
47 
49  G4Element* firstAtomKind,
50  G4int firstAtomNumber,
51  G4Element* secondAtomKind,
52  G4int secondAtomNumber);
53 
54  virtual ~G4AtomicBond();
55 
56  //
57  // The indexes of the two atoms connected by the bond are stored
58  // theFirstAtomKind is the index in the vector of G4Elements in the array
59  // and theFirstAtomNumber is the index in the vector of G4ThreeVector in
60  // the G4CrystalLattice. For the second atom theSecondAtomKind and
61  // theSecondAtomNumber are used.
62  //
63 private:
66 
69 
70 public:
71  inline G4Element* GetFirstAtomKind() const {return theFirstAtomKind;};
72  void SetFirstAtomKind(G4Element* aElement) {theFirstAtomKind=aElement;};
73 
74  inline G4int GetFirstAtomNumber() const {return theFirstAtomNumber;};
76 
77  inline G4Element* GetSecondAtomKind() const {return theSecondAtomKind;};
78  void SetSecondAtomKind(G4Element* aElement) {theSecondAtomKind=aElement;};
79 
80  inline G4int GetSecondAtomNumber() const {return theSecondAtomNumber;};
82 
83  //
84  // theType stores which kind of bond is the G4AtomicBond object
85  // there are three types: Ionic, Covalent and Metallic
86  // and they are enumerate in the theBondType enum.
87 private:
89 
90 public:
91  inline theBondType GetType() const {return theType;};
92  void SetType(theBondType aType) {theType=aType;};
93 
94  //
95  // theAromaticity stores if the bond is aromatic.
96  //
97 private:
99 
100 public:
101  inline G4bool GetAromaticity() const {return theAromaticity;};
102  void SetAromaticity(G4bool aBool) {theAromaticity=aBool;};
103 
104 
105 };
106 
107 #endif
108 
void SetSecondAtomNumber(G4int aInt)
Definition: G4AtomicBond.hh:81
G4Element * GetFirstAtomKind() const
Definition: G4AtomicBond.hh:71
void SetFirstAtomKind(G4Element *aElement)
Definition: G4AtomicBond.hh:72
G4bool theAromaticity
Definition: G4AtomicBond.hh:92
theBondType GetType() const
Definition: G4AtomicBond.hh:91
void SetFirstAtomNumber(G4int aInt)
Definition: G4AtomicBond.hh:75
G4int GetSecondAtomNumber() const
Definition: G4AtomicBond.hh:80
theBondType theType
Definition: G4AtomicBond.hh:81
G4AtomicBond(theBondType aType, G4Element *firstAtomKind, G4int firstAtomNumber, G4Element *secondAtomKind, G4int secondAtomNumber)
Definition: G4AtomicBond.cc:38
bool G4bool
Definition: G4Types.hh:79
G4Element * theFirstAtomKind
Definition: G4AtomicBond.hh:64
G4bool GetAromaticity() const
void SetSecondAtomKind(G4Element *aElement)
Definition: G4AtomicBond.hh:78
G4Element * GetSecondAtomKind() const
Definition: G4AtomicBond.hh:77
int G4int
Definition: G4Types.hh:78
void SetType(theBondType aType)
Definition: G4AtomicBond.hh:92
G4int theFirstAtomNumber
Definition: G4AtomicBond.hh:65
G4int theSecondAtomNumber
Definition: G4AtomicBond.hh:68
G4int GetFirstAtomNumber() const
Definition: G4AtomicBond.hh:74
void SetAromaticity(G4bool aBool)
G4Element * theSecondAtomKind
Definition: G4AtomicBond.hh:67
virtual ~G4AtomicBond()
Definition: G4AtomicBond.cc:52