KaliVeda
Toolkit for HIC analysis
KVIDCutLine.cpp
1 /*
2 $Id: KVIDCutLine.cpp,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 
7 //Created by KVClassFactory on Fri Feb 15 15:00:17 2008
8 //Author: franklan
9 
10 #include "KVIDCutLine.h"
11 #include "Riostream.h"
12 #include "KVIDGraph.h"
13 
14 using namespace std;
15 
17 
18 
19 
23 {
24  // Default constructor
25  SetTitle("cut line");
26 }
27 
28 
29 
32 
34 {
35  // Destructor
36 }
37 
38 
39 
42 
44 {
45  // \return give name of selection made by cut
46  if(fAcceptedDirection.IsNull())
47  return "???";
48  return Form("accept %s", GetAcceptedDirection());
49 }
50 
51 
52 
53 
56 
58 {
59  // Write accepted direction for cut
60 
61  if (fAcceptedDirection == "") file << "[undefined accepted direction]" << endl;
62  else file << fAcceptedDirection.Data() << endl;
63 }
64 
65 
66 
67 
70 
72 {
73  // Read accepted direction for cut
74 
75  fAcceptedDirection.ReadLine(file);
76  if (fAcceptedDirection == "[undefined accepted direction]")
77  {
78  fAcceptedDirection = "";
79  }
80 }
81 
82 
83 
84 
85 
char Char_t
char * Form(const char *fmt,...)
Line in ID grid used to delimit regions where no identification is possible.
Definition: KVIDCutLine.h:23
const Char_t * GetSelectionType() const override
Definition: KVIDCutLine.cpp:43
virtual ~KVIDCutLine()
Destructor.
Definition: KVIDCutLine.cpp:33
void WriteAsciiFile_extras(std::ofstream &, const Char_t *name_prefix="") override
Write accepted direction for cut.
Definition: KVIDCutLine.cpp:57
void ReadAsciiFile_extras(std::ifstream &) override
Read accepted direction for cut.
Definition: KVIDCutLine.cpp:71
ClassImp(TPyArg)