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  void SetZ(Int_t /*atnum*/) override
29  {
30  ;
31  };
32  void SetA(Int_t /*atnum*/) override
33  {
34  ;
35  };
36  void SetAandZ(Int_t /*atnum*/, Int_t /*ztnum*/) override
37  {
38  ;
39  };
40  void SetMassFormula(Int_t /*mf*/) override
41  {
42  ;
43  };
44 
45  void WriteAsciiFile_extras(std::ofstream&, const Char_t* name_prefix = "") override;
46  void ReadAsciiFile_extras(std::ifstream&) override;
47 
48 public:
49 
52  KVIDCutContour(const TCutG&);
53  virtual ~KVIDCutContour();
54 
55  Int_t GetA() const override
56  {
57  return 0;
58  };
59  Int_t GetZ() const override
60  {
61  return 0;
62  };
63  Int_t GetMassFormula()const override
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  void SetName(const char* name) override
88  {
90  }; // *MENU*
91 
92  ClassDefOverride(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 ClassDefOverride(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.
Bool_t IsExclusive() const
kTRUE for exclusive contour, kFALSE for inclusive contour
void ReadAsciiFile_extras(std::ifstream &) override
Read fExclusive.
void SetMassFormula(Int_t) override
virtual ~KVIDCutContour()
Destructor.
Bool_t fExclusive
set to kTRUE if want to accept points OUTSIDE the contour
Int_t GetMassFormula() const override
Int_t GetZ() const override
Int_t GetA() const override
Bool_t TestPoint(Double_t x, Double_t y) override
void SetAandZ(Int_t, Int_t) override
void SetName(const char *name) override
This is redeclared to make it appear in context menus for KVIDContourLines.
void SetZ(Int_t) override
void SetExclusive(Bool_t e=kTRUE)
Make contour exclusive i.e. only accept points outside contour.
void WriteAsciiFile_extras(std::ofstream &, const Char_t *name_prefix="") override
Write fExclusive.
void SetA(Int_t) override
void SetName(const char *name) override
virtual Int_t IsInside(Double_t x, Double_t y) const
Double_t y[n]
Double_t x[n]