KaliVeda
Toolkit for HIC analysis
KVIDCutContour.h
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 
23 class KVIDCutContour : public KVIDContour {
24 protected:
25 
27 
28  virtual void SetZ(Int_t /*atnum*/)
29  {
30  ;
31  };
32  virtual void SetA(Int_t /*atnum*/)
33  {
34  ;
35  };
36  virtual void SetAandZ(Int_t /*atnum*/, Int_t /*ztnum*/)
37  {
38  ;
39  };
40  virtual void SetMassFormula(Int_t /*mf*/)
41  {
42  ;
43  };
44 
45  virtual void WriteAsciiFile_extras(std::ofstream&, const Char_t* name_prefix = "");
46  virtual void ReadAsciiFile_extras(std::ifstream&);
47 
48 public:
49 
52  KVIDCutContour(const TCutG&);
53  virtual ~KVIDCutContour();
54 
55  virtual Int_t GetA() const
56  {
57  return 0;
58  };
59  virtual Int_t GetZ() const
60  {
61  return 0;
62  };
63  virtual Int_t GetMassFormula()const
64  {
65  return 0;
66  };
67 
69  {
74 
75  return fExclusive ? !IsInside(x, y) : IsInside(x, y);
76  };
77 
79  void SetExclusive(Bool_t e = kTRUE); // *TOGGLE*
80 
83  {
84  return fExclusive;
85  };
87  virtual void SetName(const char* name)
88  {
90  }; // *MENU*
91 
92  ClassDef(KVIDCutContour, 1) //Graphical contour for excluding/including regions in particle identification maps
93 };
94 
95 #endif
int Int_t
bool Bool_t
char Char_t
double Double_t
#define ClassDef(name, id)
char name[80]
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.
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]