KaliVeda
Toolkit for HIC analysis
KVIDZAContour.cpp
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  SetTitle("Z & A contour");
24 }
25 
26 
27 
30 
32  : KVIDContour(g)
33 {
34  // Copy constructor
35  SetZ(g.GetZ());
36  SetMassFormula(g.GetMassFormula());
37  SetA(g.GetA());
38  SetTitle("Z & A contour");
39 }
40 
41 
42 
45 
47  : KVIDContour(g)
48 {
49  // Copy the TCutG
50  SetTitle("Z & A contour");
51 }
52 
53 
54 
57 
59 {
60  // Destructor
61 }
62 
63 
64 
65 
66 
69 
71  const Char_t* name_prefix)
72 {
73  // Write Z & A of contour
74 
76  file << GetZ() << "\t" << GetA() << endl;
77 }
78 
79 
80 
81 
84 
86 {
87  // Read Z & A of contour
88 
90  Int_t Z, A;
91  file >> Z >> A;
92  SetZ(Z);
93  SetA(A);
94 }
95 
96 
int Int_t
char Char_t
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t g
Basic graphical contour class for use in particle identification.
Definition: KVIDContour.h:23
Graphical contour associated with a given nucleus for use in particle identification.
Definition: KVIDZAContour.h:22
void ReadAsciiFile_extras(std::ifstream &) override
Read Z & A of contour.
virtual ~KVIDZAContour()
Destructor.
KVIDZAContour()
Default constructor.
void WriteAsciiFile_extras(std::ofstream &, const Char_t *name_prefix="") override
Write Z & A of contour.
virtual void ReadAsciiFile_extras(std::ifstream &)
Definition: KVIDentifier.h:46
virtual void SetMassFormula(Int_t mf)
Definition: KVIDentifier.h:108
virtual Int_t GetA() const
Definition: KVIDentifier.h:76
virtual void WriteAsciiFile_extras(std::ofstream &, const Char_t *="")
Definition: KVIDentifier.h:42
virtual Int_t GetZ() const
Definition: KVIDentifier.h:80
void SetTitle(const char *title="") override
Definition: KVIDentifier.h:154
virtual void SetA(Int_t atnum)
Definition: KVIDentifier.h:89
virtual void SetZ(Int_t ztnum)
Definition: KVIDentifier.h:84
ClassImp(TPyArg)