source: trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QDecayChan.hh @ 836

Last change on this file since 836 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 4.4 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: G4QDecayChan.hh,v 1.23 2006/06/29 20:06:07 gunter Exp $
28// GEANT4 tag $Name:  $
29//
30//      ---------------- G4QDecayChan ----------------
31//             by Mikhail Kossov, Sept 1999.
32//  class header for Decay Channel definition in CHIPS Model
33// ------------------------------------------------------------
34
35#ifndef G4QDecayChan_h
36#define G4QDecayChan_h 1
37
38#include <iostream>
39#include "globals.hh"
40#include "G4QPDGCodeVector.hh"
41
42class G4QDecayChan
43{
44public:
45  // Constructors
46  G4QDecayChan();                                                    // Default Constructor
47  //G4QDecayChan(G4QPDGCodeVector secHadr, G4double probLimit = 1.); // General Constructor
48  G4QDecayChan(G4double pLev, G4int PDG1, G4int PDG2, G4int PDG3=0); // DetailedConstructor
49  G4QDecayChan(const G4QDecayChan& right);                       // Copy ByValueConstructor
50  G4QDecayChan(G4QDecayChan* right);                           // Copy ByPointerConstructor
51
52  ~G4QDecayChan();                                                   // Public Destructor
53
54  // Operators
55  const G4QDecayChan& operator=(const G4QDecayChan& right);
56  G4bool               operator==(const G4QDecayChan& rhs) const;
57  G4bool               operator!=(const G4QDecayChan& rhs) const;
58
59  // Selectors
60  G4double         GetDecayChanLimit() const;   // Get a Decay Channel Probability Limit
61  G4double         GetMinMass() const;          // Get a Minimum Mass for the Decay Channel
62  G4QPDGCodeVector GetVecOfSecHadrons();        // Get a Vector of secondary PDG-particles
63
64  // Modifiers
65  void SetDecayChanLimit(G4double newDecChanLim);// Set a Decay Channel Probability Limit
66  void SetMinMass(G4double newMinMass);          // Set a Minimum Mass for the DecayChannel
67  void SetVecOfSecHadrons(G4QPDGCodeVector hadV);// Set a Vector of secondary PDG-particles
68
69  //private:
70  // Encapsulated functions
71
72private:
73  // the Body
74  G4double aDecayChanLimit;
75  G4double theMinMass;
76  G4QPDGCodeVector aVecOfSecHadrons;
77};
78
79// Not member operators
80std::ostream&   operator<<(std::ostream& lhs, G4QDecayChan& rhs);
81//----------------------------------------------------------------------------------------
82
83inline G4bool G4QDecayChan::operator==(const G4QDecayChan& rhs) const {return this==&rhs;}
84inline G4bool G4QDecayChan::operator!=(const G4QDecayChan& rhs) const {return this!=&rhs;}
85 
86inline G4double G4QDecayChan::GetDecayChanLimit() const    {return aDecayChanLimit;}
87inline G4double G4QDecayChan::GetMinMass() const           {return theMinMass;}
88inline G4QPDGCodeVector G4QDecayChan::GetVecOfSecHadrons() {return aVecOfSecHadrons;}
89
90inline void G4QDecayChan::SetDecayChanLimit(G4double DCL)          {aDecayChanLimit=DCL;}
91inline void G4QDecayChan::SetMinMass(G4double minMass)             {theMinMass=minMass;}
92inline void G4QDecayChan::SetVecOfSecHadrons(G4QPDGCodeVector VSH) {aVecOfSecHadrons=VSH;}
93
94#endif
95
96
97
Note: See TracBrowser for help on using the repository browser.