KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVIDCutLine.h
Go to the documentation of this file.
1 /*
2 $Id: KVIDCutLine.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 __KVIDCUTLINE_H
11 #define __KVIDCUTLINE_H
12 
13 #include "KVIDLine.h"
14 #include "KVString.h"
15 
22 class KVIDCutLine : public KVIDLine {
23 protected:
25  virtual void WriteAsciiFile_extras(std::ofstream&, const Char_t* name_prefix = "");
26  virtual void ReadAsciiFile_extras(std::ifstream&);
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 public:
45  KVIDCutLine();
46  virtual ~KVIDCutLine();
47 
53  virtual void SetAcceptedDirection(const Char_t* dir); // *MENU*
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  }
68  {
74  return WhereAmI(x, y, fAcceptedDirection.Data());
75  };
76 
77  virtual const Char_t* GetAcceptedDirection() const
78  {
79  return fAcceptedDirection.Data();
80  }
81 
83  virtual void SetName(const char* name)
84  {
85  KVIDLine::SetName(name);
86  }; // *MENU*
87 
88  ClassDef(KVIDCutLine, 1) //Line in ID grid used to delimit regions where identification is possible
89 };
90 
91 #endif
int Int_t
char Char_t
bool Bool_t
double Double_t
#define ClassDef(name, id)
Line in ID grid used to delimit regions where no identification is possible.
Definition: KVIDCutLine.h:22
virtual const Char_t * GetAcceptedDirection() const
Definition: KVIDCutLine.h:77
KVString fAcceptedDirection
direction relative to cut line corresponding to acceptable region
Definition: KVIDCutLine.h:24
virtual void SetZ(Int_t)
Definition: KVIDCutLine.h:27
virtual Int_t GetMassFormula() const
Definition: KVIDCutLine.h:63
virtual void ReadAsciiFile_extras(std::ifstream &)
Read accepted direction for cut.
Definition: KVIDCutLine.cpp:57
virtual void SetName(const char *name)
This is redeclared to make it appear in context menus for KVIDCutLines.
Definition: KVIDCutLine.h:83
virtual void SetA(Int_t)
Definition: KVIDCutLine.h:31
virtual ~KVIDCutLine()
Destructor.
Definition: KVIDCutLine.cpp:32
virtual Int_t GetZ() const
Definition: KVIDCutLine.h:59
virtual void SetAandZ(Int_t, Int_t)
Definition: KVIDCutLine.h:35
virtual void SetAcceptedDirection(const Char_t *dir)
Definition: KVIDCutLine.cpp:74
virtual void WriteAsciiFile_extras(std::ofstream &, const Char_t *name_prefix="")
Write accepted direction for cut.
Definition: KVIDCutLine.cpp:43
KVIDCutLine()
Default constructor.
Definition: KVIDCutLine.cpp:22
virtual Int_t GetA() const
Definition: KVIDCutLine.h:55
virtual Bool_t TestPoint(Double_t x, Double_t y)
Definition: KVIDCutLine.h:67
virtual void SetMassFormula(Int_t)
Definition: KVIDCutLine.h:39
Base class for lines/cuts used for particle identification in 2D data maps.
Definition: KVIDLine.h:142
Bool_t WhereAmI(Double_t px, Double_t py, Option_t *opt)
virtual void SetName(const char *name)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72
const char * Data() const
Double_t y[n]
Double_t x[n]