source: fact/tools/rootmacros/PulseTemplates/csv.h@ 14533

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