-
Notifications
You must be signed in to change notification settings - Fork 0
/
OutputWriter.hh
40 lines (28 loc) · 897 Bytes
/
OutputWriter.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef OUTPUTWRITER_HH
#define OUTPUTWRITER_HH
#include <vector>
#include <string>
#include <map>
class TFile;
class FilledObservable;
class JetrateDataStructure;
class DifferentialDataStructure;
class MatrixDataStructure;
class OutputWriter {
public:
OutputWriter( const std::string & filename );
~OutputWriter();
void write( const std::vector<FilledObservable*> & );
template <typename T>
void writeMaps( const std::map<std::string,std::map<std::string,T>> & );
template <typename T>
void writeMap( const std::map<std::string,T> &, const std::string & );
private:
void writeJetrate( const JetrateDataStructure*,
const std::string & );
void writeDifferentialDistribution( const DifferentialDataStructure*,
const std::string & );
void writeMatrix( MatrixDataStructure*, const std::string &, const std::string & );
TFile* outputfile;
};
#endif