Last change
on this file since 14474 was 14474, checked in by Jens Buss, 12 years ago |
init: CSV File Handler
|
-
Property svn:executable
set to
*
|
File size:
1.8 KB
|
Line | |
---|
1 | #ifndef CSV_H
|
---|
2 | #define CSV_H
|
---|
3 |
|
---|
4 |
|
---|
5 | // SYSTEM INCLUDES
|
---|
6 | //
|
---|
7 |
|
---|
8 | // PROJECT INCLUDES
|
---|
9 | #include <TROOT.h>
|
---|
10 | #include <TH1F.h>
|
---|
11 | #include <TString.h>
|
---|
12 | //
|
---|
13 |
|
---|
14 | // LOCAL INCLUDES
|
---|
15 | #include "pulse.h"
|
---|
16 | #include "pixel.h"
|
---|
17 | #include "pixelsum.h"
|
---|
18 | //
|
---|
19 |
|
---|
20 | // FORWARD REFERENCES
|
---|
21 | //
|
---|
22 |
|
---|
23 | /** Assignment operator.
|
---|
24 | * @todo do me
|
---|
25 | * @warning not implemented
|
---|
26 | * @param from THe value to assign to this object.
|
---|
27 | *
|
---|
28 | * @return A reference to this object.
|
---|
29 | */
|
---|
30 |
|
---|
31 | /**
|
---|
32 | */
|
---|
33 |
|
---|
34 | class Csv
|
---|
35 | {
|
---|
36 | public:
|
---|
37 |
|
---|
38 | // LIFECYCLE
|
---|
39 |
|
---|
40 | /** Default constructor.
|
---|
41 | */
|
---|
42 | Csv(TString path, TString fileName);
|
---|
43 | Csv(TString path, TString fileName, int verbLevel);
|
---|
44 | Csv(TString path, TString fileName, TString suffix, int verbLevel);
|
---|
45 |
|
---|
46 |
|
---|
47 | // /** Copy constructor.
|
---|
48 | // *
|
---|
49 | // * @param from The value to copy to this object.
|
---|
50 | // */
|
---|
51 | /** Destructor.
|
---|
52 | */
|
---|
53 | ~Csv();
|
---|
54 |
|
---|
55 |
|
---|
56 | // OPERATORS
|
---|
57 |
|
---|
58 | /** Assignment operator.
|
---|
59 | *
|
---|
60 | * @param from THe value to assign to this object.
|
---|
61 | *
|
---|
62 | * @return A reference to this object.
|
---|
63 | */
|
---|
64 | // XX& operator=(const XX& from);
|
---|
65 |
|
---|
66 | // OPERATIONS
|
---|
67 | private:
|
---|
68 | void BuildPath();
|
---|
69 | void CloseCsv();
|
---|
70 | void OpenCsv();
|
---|
71 | public:
|
---|
72 | bool WritePixelToCsv(
|
---|
73 | Pixel* pixel,
|
---|
74 | TString overlayMethod,
|
---|
75 | int order
|
---|
76 | );
|
---|
77 | void WritePointSet(
|
---|
78 | Pixel* pixel,
|
---|
79 | TString overlayMethod,
|
---|
80 | int order
|
---|
81 | );
|
---|
82 | void WritePulseAttributes(
|
---|
83 | Pixel* pixel,
|
---|
84 | Pulse* pulse,
|
---|
85 | TString overlayMethod
|
---|
86 | );
|
---|
87 | void WritePointSetExplain();
|
---|
88 |
|
---|
89 | // ACCESS
|
---|
90 | public:
|
---|
91 | void GetFilename();
|
---|
92 | void GetPath();
|
---|
93 |
|
---|
94 |
|
---|
95 | // INQUIRY
|
---|
96 | private:
|
---|
97 | TString mDirectory;
|
---|
98 | TString mFilename;
|
---|
99 | TString mSuffix;
|
---|
100 | TString mPath;
|
---|
101 | ofstream mCsvFile;
|
---|
102 | int mVerbLevel;
|
---|
103 | };
|
---|
104 |
|
---|
105 | #endif // CSV_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.