ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4AtomicBond.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file 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