KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVIDCutContour.h
Go to the documentation of this file.
1 /*
2 $Id: KVIDCutContour.h,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 
9 
10 #ifndef __KVIDCUTCONTOUR_H
11 #define __KVIDCUTCONTOUR_H
12 
13 #include "KVIDContour.h"
14 
22 class KVIDCutContour : public KVIDContour {
23 protected:
24 
26 
27  virtual void SetZ(Int_t /*atnum*/)
28  {
29  ;
30  };
31  virtual void SetA(Int_t /*atnum*/)
32  {
33  ;
34  };
35  virtual void SetAandZ(Int_t /*atnum*/, Int_t /*ztnum*/)
36  {
37  ;
38  };
39  virtual void SetMassFormula(Int_t /*mf*/)
40  {
41  ;
42  };
43 
44  virtual void WriteAsciiFile_extras(std::ofstream&, const Char_t* name_prefix = "");
45  virtual void ReadAsciiFile_extras(std::ifstream&);
46 
47 public:
48 
51  KVIDCutContour(const TCutG&);
52  virtual ~KVIDCutContour();
53 
54  virtual Int_t GetA() const
55  {
56  return 0;
57  };
58  virtual Int_t GetZ() const
59  {
60  return 0;
61  };
62  virtual Int_t GetMassFormula()const
63  {
64  return 0;
65  };
66 
68  {
73 
74  return fExclusive ? !IsInside(x, y) : IsInside(x, y);
75  };
76 
78  void SetExclusive(Bool_t e = kTRUE); // *TOGGLE*
79 
82  {
83  return fExclusive;
84  };
86  virtual void SetName(const char* name)
87  {
89  }; // *MENU*
90 
91  ClassDef(KVIDCutContour, 1) //Graphical contour for excluding/including regions in particle identification maps
92 };
93 
94 #endif
int Int_t
char Char_t
bool Bool_t
double Double_t
#define ClassDef(name, id)
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 Int_t GetZ() const
Bool_t IsExclusive() const
kTRUE for exclusive contour, kFALSE for inclusive contour
virtual void ReadAsciiFile_extras(std::ifstream &)
Read fExclusive.
virtual void SetA(Int_t)
virtual void SetName(const char *name)
This is redeclared to make it appear in context menus for KVIDContourLines.
virtual ~KVIDCutContour()
Destructor.
virtual void SetAandZ(Int_t, Int_t)
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.
virtual void SetZ(Int_t)
virtual Int_t GetMassFormula() const
virtual void SetMassFormula(Int_t)
virtual Bool_t TestPoint(Double_t x, Double_t y)
void SetExclusive(Bool_t e=kTRUE)
Make contour exclusive i.e. only accept points outside contour.
virtual Int_t GetA() const
virtual void SetName(const char *name)
virtual Int_t IsInside(Double_t x, Double_t y) const
Double_t y[n]
Double_t x[n]