KaliVeda
Toolkit for HIC analysis
KVIDCutLine.h
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 
23 class KVIDCutLine : public KVIDLine {
24 protected:
26  virtual void WriteAsciiFile_extras(std::ofstream&, const Char_t* name_prefix = "");
27  virtual void ReadAsciiFile_extras(std::ifstream&);
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 public:
46  KVIDCutLine();
47  virtual ~KVIDCutLine();
48 
54  virtual void SetAcceptedDirection(const Char_t* dir); // *MENU*
55 
56  virtual Int_t GetA() const
57  {
58  return 0;
59  };
60  virtual Int_t GetZ() const
61  {
62  return 0;
63  };
64  virtual Int_t GetMassFormula()const
65  {
66  return 0;
67  }
69  {
75  return WhereAmI(x, y, fAcceptedDirection.Data());
76  };
77 
78  virtual const Char_t* GetAcceptedDirection() const
79  {
80  return fAcceptedDirection.Data();
81  }
82 
84  virtual void SetName(const char* name)
85  {
87  }; // *MENU*
88 
89  ClassDef(KVIDCutLine, 1) //Line in ID grid used to delimit regions where identification is possible
90 };
91 
92 #endif
int Int_t
bool Bool_t
char Char_t
double Double_t
#define ClassDef(name, id)
char name[80]
Line in ID grid used to delimit regions where no identification is possible.
Definition: KVIDCutLine.h:23
virtual const Char_t * GetAcceptedDirection() const
Definition: KVIDCutLine.h:78
KVString fAcceptedDirection
direction relative to cut line corresponding to acceptable region
Definition: KVIDCutLine.h:25
virtual void SetZ(Int_t)
Definition: KVIDCutLine.h:28
virtual Int_t GetMassFormula() const
Definition: KVIDCutLine.h:64
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:84
virtual void SetA(Int_t)
Definition: KVIDCutLine.h:32
virtual ~KVIDCutLine()
Destructor.
Definition: KVIDCutLine.cpp:32
virtual Int_t GetZ() const
Definition: KVIDCutLine.h:60
virtual void SetAandZ(Int_t, Int_t)
Definition: KVIDCutLine.h:36
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:56
virtual Bool_t TestPoint(Double_t x, Double_t y)
Definition: KVIDCutLine.h:68
virtual void SetMassFormula(Int_t)
Definition: KVIDCutLine.h:40
Base class for lines/cuts used for particle identification in 2D data maps.
Definition: KVIDLine.h:143
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:73
const char * Data() const
Double_t y[n]
Double_t x[n]