KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVIDCutContour.cpp
Go to the documentation of this file.
1 /*
2 $Id: KVIDCutContour.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:10:56 2008
8 //Author: franklan
9 
10 #include "KVIDCutContour.h"
11 #include "KVIDGraph.h"
12 
13 using namespace std;
14 
16 
17 
18 
22 {
23  // Default constructor
24  fExclusive = kFALSE;
25 }
26 
27 
28 
31 
33  : KVIDContour(g)
34 {
35  // Copy constructor
37 }
38 
39 
40 
43 
45  : KVIDContour(g)
46 {
47  // Copy the TCutG contour
49 }
50 
51 
52 
55 
57 {
58  // Destructor
59 }
60 
61 
62 
63 
66 
68  const Char_t* name_prefix)
69 {
70  // Write fExclusive
71 
73  file << fExclusive << endl;
74 }
75 
76 
77 
78 
81 
83 {
84  // Read fExclusive
85 
87  file >> fExclusive;
88 }
89 
90 
91 
94 
96 {
97  // Make contour exclusive i.e. only accept points outside contour
98  fExclusive = e;
99  if (GetParent()) GetParent()->Modified();
100 }
101 
102 
103 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
#define e(i)
char Char_t
const Bool_t kFALSE
bool Bool_t
Basic graphical contour class for use in particle identification.
Definition: KVIDContour.h:22
Graphical contour for excluding/including regions in particle identification maps.
KVIDCutContour()
Default constructor.
virtual void ReadAsciiFile_extras(std::ifstream &)
Read fExclusive.
virtual ~KVIDCutContour()
Destructor.
Bool_t fExclusive
set to kTRUE if want to accept points OUTSIDE the contour
virtual void WriteAsciiFile_extras(std::ofstream &, const Char_t *name_prefix="")
Write fExclusive.
void SetExclusive(Bool_t e=kTRUE)
Make contour exclusive i.e. only accept points outside contour.
void Modified()
Definition: KVIDGraph.h:254
virtual void ReadAsciiFile_extras(std::ifstream &)
Definition: KVIDentifier.h:45
virtual void WriteAsciiFile_extras(std::ofstream &, const Char_t *="")
Definition: KVIDentifier.h:41
KVIDGraph * GetParent() const
Get pointer to parent ID graph.
const long double g
masses
Definition: KVUnits.h:72