KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVIDZAContour.cpp
Go to the documentation of this file.
1 /*
2 $Id: KVIDZAContour.cpp,v 1.2 2009/03/03 13:36:00 franklan Exp $
3 $Revision: 1.2 $
4 $Date: 2009/03/03 13:36:00 $
5 */
6 
7 //Created by KVClassFactory on Mon Apr 14 14:09:54 2008
8 //Author: franklan
9 
10 #include "KVIDZAContour.h"
11 
12 using namespace std;
13 
15 
16 
17 
21 {
22  // Default constructor
23 }
24 
25 
26 
29 
31  : KVIDContour(g)
32 {
33  // Copy constructor
34  SetZ(g.GetZ());
35  SetMassFormula(g.GetMassFormula());
36  SetA(g.GetA());
37 }
38 
39 
40 
43 
45  : KVIDContour(g)
46 {
47  // Copy the TCutG
48 }
49 
50 
51 
54 
56 {
57  // Destructor
58 }
59 
60 
61 
62 
63 
66 
68  const Char_t* name_prefix)
69 {
70  // Write Z & A of contour
71 
73  file << GetZ() << "\t" << GetA() << endl;
74 }
75 
76 
77 
78 
81 
83 {
84  // Read Z & A of contour
85 
87  Int_t Z, A;
88  file >> Z >> A;
89  SetZ(Z);
90  SetA(A);
91 }
92 
93 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
Basic graphical contour class for use in particle identification.
Definition: KVIDContour.h:22
Graphical contour associated with a given nucleus for use in particle identification.
Definition: KVIDZAContour.h:21
virtual void WriteAsciiFile_extras(std::ofstream &, const Char_t *name_prefix="")
Write Z & A of contour.
virtual ~KVIDZAContour()
Destructor.
virtual void ReadAsciiFile_extras(std::ifstream &)
Read Z & A of contour.
KVIDZAContour()
Default constructor.
virtual void ReadAsciiFile_extras(std::ifstream &)
Definition: KVIDentifier.h:45
virtual void SetMassFormula(Int_t mf)
Definition: KVIDentifier.h:106
virtual Int_t GetA() const
Definition: KVIDentifier.h:74
virtual void WriteAsciiFile_extras(std::ofstream &, const Char_t *="")
Definition: KVIDentifier.h:41
virtual Int_t GetZ() const
Definition: KVIDentifier.h:78
virtual void SetA(Int_t atnum)
Definition: KVIDentifier.h:87
virtual void SetZ(Int_t ztnum)
Definition: KVIDentifier.h:82
const long double g
masses
Definition: KVUnits.h:72