00001 #ifndef _FunctionDef_H
00002 #define _FunctionDef_H 1
00003
00010 #include <vector>
00011 #include "StructDef.h"
00012
00013 class TFile;
00014
00015 namespace FunctionDef{
00016
00022 std::vector<float> calculatePedestals(run& aRun);
00023
00028 void writePedestalFile(const char* aFile, std::vector<float>& pedValues);
00029
00030
00031
00032
00033 std::vector<float> readPedestalFile(const char* aFile);
00034
00039 bool createRunFromRawData(int nEventsToRead,
00040 run& dataRun);
00041
00042 };
00043
00044 #endif