Roi.hh
Go to the documentation of this file.00001
00008 #ifndef ROI_h
00009 #define ROI_h
00010
00011 #include "TObject.h"
00012 #include <iostream>
00018 class Roi{
00019 public:
00021 Roi() { Init(); }
00023 Roi(int start, int end, double amax, double amin, double anint, double anpe)
00024 { Init(start, end, amax, amin, anint, anpe); }
00026 virtual ~Roi() {}
00028 void Init(int start=0, int end=0, double amax=0, double amin=0,
00029 double anint=0, double anpe=0)
00030 {start_index = start; end_index = end; max = amax; min = amin;
00031 integral = anint, anpe=0;
00032 }
00033 double start_time;
00034 double end_time;
00035 int start_index;
00036 int end_index;
00037 double max;
00038 double min;
00039 double integral;
00040 double npe;
00041 int min_index;
00042 ClassDef(Roi,3);
00043 };
00045 inline std::ostream& operator<<(std::ostream& out, const Roi& roi){
00046 return out<<"\n\tstart_time "<<roi.start_time
00047 <<"\n\tend_time "<<roi.end_time
00048 <<"\n\tstart_index "<<roi.start_index
00049 <<"\n\tend_index "<<roi.end_index
00050 <<"\n\tmin "<<roi.min
00051 <<"\n\tmax "<<roi.max
00052 <<"\n\tintegral "<<roi.integral
00053 <<"\n\tnpe "<<roi.npe;
00054 }
00055
00056 #endif