00001
00026 #ifndef BDTESTDATA_H
00027 #define BDTESTDATA_H
00028
00029 #include <TObject.h>
00030
00031 class BDTestData : public TObject {
00032 public:
00034 double earliest;
00036 float tortgt, trtgtd, tor101,tr101d;
00038 int nbunch;
00040 float hitgt[8], vitgt[8];
00042 float xtgt[8], ytgt[8];
00043
00044 float xsigma,ysigma;
00046 float tgtdist;
00048 float horni;
00050 double spilltimend;
00051
00052 BDTestData();
00053 void Reset();
00054 virtual ~BDTestData();
00055
00056 ClassDef(BDTestData,2)
00057 };
00058
00060 void convert_raw_to_bdtest(const char* raw_file, const char* output_file);
00061 void generate_bdtd_plots(const char* input_directory, const char* output_file="");
00062 class RawBeamMonBlock;
00063 class RawBeamMonHeaderBlock;
00064 bool fill_bdtest(BDTestData& td, const RawBeamMonBlock& block,
00065 const RawBeamMonHeaderBlock& head);
00066
00067 #endif // BDTESTDATA_H