source: trunk/source/processes/hadronic/models/parton_string/management/include/G4VParticipants.hh@ 1036

Last change on this file since 1036 was 1007, checked in by garnier, 17 years ago

update to geant4.9.2

File size: 3.2 KB
Line 
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// $Id: G4VParticipants.hh,v 1.4 2008/05/19 13:03:20 vuzhinsk Exp $
28// GEANT4 tag $Name: geant4-09-02 $
29//
30
31#ifndef G4VParticipants_h
32#define G4VParticipants_h 1
33
34// ------------------------------------------------------------
35// GEANT 4 class header file
36//
37// ---------------- G4VParticipants ----------------
38// by Gunter Folger, May 1998.
39// abstract class finding participants in a hadron Nucleus collision
40// in Parton String Models.
41// ------------------------------------------------------------
42#include "globals.hh"
43
44class G4V3DNucleus;
45
46#include "G4Fancy3DNucleus.hh"
47
48
49class G4VParticipants
50{
51
52 public:
53 G4VParticipants();
54 G4VParticipants(const G4VParticipants &right);
55 virtual ~G4VParticipants();
56
57 const G4VParticipants & operator=(const G4VParticipants &right);
58 int operator==(const G4VParticipants &right) const;
59 int operator!=(const G4VParticipants &right) const;
60
61 void Init(G4double theZ, G4double theA);
62
63 void SetNucleus(G4V3DNucleus * aNucleus);
64 G4V3DNucleus * GetWoundedNucleus() const;
65
66
67 protected:
68
69
70 G4V3DNucleus *theNucleus;
71
72 private:
73
74};
75
76// Class G4VParticipants
77
78inline G4V3DNucleus * G4VParticipants::GetWoundedNucleus() const
79{
80 return theNucleus;
81}
82
83inline void G4VParticipants::SetNucleus(G4V3DNucleus * aNucleus)
84{
85 theNucleus = aNucleus;
86}
87
88inline void G4VParticipants::Init(G4double theA, G4double theZ)
89{
90 if ( theNucleus == NULL ) theNucleus = new G4Fancy3DNucleus();
91 theNucleus->Init(theA, theZ);
92 theNucleus->SortNucleonsInZ(); // Uzhi 16.05.08 Sorting of nucleon-Z
93}
94
95
96#endif
97
98
Note: See TracBrowser for help on using the repository browser.