KaliVeda
Toolkit for HIC analysis
KVIDCutContour.cpp
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  SetTitle("cut contour");
26 }
27 
28 
29 
32 
34  : KVIDContour(g)
35 {
36  // Copy constructor
38  SetTitle("cut contour");
39 }
40 
41 
42 
45 
47  : KVIDContour(g)
48 {
49  // Copy the TCutG contour
51  SetTitle("cut contour");
52 }
53 
54 
55 
58 
60 {
61  // Destructor
62 }
63 
64 
65 
68 
70 {
71  // \ return type of selection made by contour
72 
73  if(IsExclusive())
74  return "reject interior";
75  return "accept interior";
76 }
77 
78 
79 
80 
83 
85  const Char_t* name_prefix)
86 {
87  // Write fExclusive
88 
90  file << fExclusive << endl;
91 }
92 
93 
94 
95 
98 
100 {
101  // Read fExclusive
102 
104  file >> fExclusive;
105 }
106 
107 
108 
109 
110 
char Char_t
constexpr Bool_t kFALSE
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 for excluding/including regions in particle identification maps.
KVIDCutContour()
Default constructor.
Bool_t IsExclusive() const
kTRUE for exclusive contour, kFALSE for inclusive contour
void ReadAsciiFile_extras(std::ifstream &) override
Read fExclusive.
virtual ~KVIDCutContour()
Destructor.
Bool_t fExclusive
set to kTRUE if want to accept points OUTSIDE the contour
const Char_t * GetSelectionType() const override
\ return type of selection made by contour
void WriteAsciiFile_extras(std::ofstream &, const Char_t *name_prefix="") override
Write fExclusive.
virtual void ReadAsciiFile_extras(std::ifstream &)
Definition: KVIDentifier.h:46
virtual void WriteAsciiFile_extras(std::ofstream &, const Char_t *="")
Definition: KVIDentifier.h:42
void SetTitle(const char *title="") override
Definition: KVIDentifier.h:154
ClassImp(TPyArg)