00001 #ifndef TMBLum_H
00002 #define TMBLum_H
00003
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00016
00017 #ifndef ROOT_TObject
00018 #include "TObject.h"
00019 #endif
00020
00021
00022 class TMBLum : public TObject {
00023
00024 public:
00025
00026
00027 TMBLum();
00028
00029
00030 TMBLum(Int_t id, Int_t charge, Int_t time, Int_t slew, Int_t range, Int_t tc );
00031
00032 TMBLum(Int_t id, Float_t charge, Float_t time, Float_t slew, Float_t range, Float_t tc);
00033
00034
00035 TMBLum (const TMBLum& orig):TObject(orig) {
00036 *this = orig;
00037 }
00038
00039
00040
00041 Bool_t IsNorth() const {
00042 Bool_t dummy = kFALSE;
00043 if (_id < 0 || _id > 47){
00044 return dummy;
00045 }
00046 if (_id < 24)
00047 dummy = kTRUE;
00048 return dummy;
00049 }
00050
00051 Bool_t IsSouth() const {
00052 Bool_t dummy = kFALSE;
00053 if (_id < 0 || _id > 47){
00054 return dummy;
00055 }
00056 if (_id > 23)
00057 dummy = kTRUE;
00058 return dummy;
00059 }
00060
00061
00062
00063
00064
00065 TMBLum &operator=(const TMBLum &orig) {
00066 if(this != &orig) {
00067 _time = orig._time;
00068 _id = orig._id;
00069 _charge = orig._charge;
00070 _slew = orig._slew;
00071 _range = orig._range;
00072 _tc = orig._tc;
00073 }
00074 return *this;
00075 }
00076
00077 Int_t charge() const { return _charge;}
00078 Int_t time() const {return _time;}
00079 Int_t id() const {return _id;}
00080 Int_t range() const {return _range;}
00081 Int_t tc() const {return _tc;}
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146 Int_t slew() const {return _slew;}
00147 Float_t phi() const;
00148
00149 void id(Int_t id) { _id = id;}
00150 void charge(Int_t charge) { _charge = charge;}
00151 void time(Int_t time) { _time = time;}
00152 void slew(Int_t slew) {_slew = slew;}
00153 void tc(Int_t tc) {_tc=tc;}
00154
00155 ~TMBLum() {;}
00156
00157 private:
00158 Int_t _time;
00159 Int_t _charge;
00160 Int_t _id;
00161 Int_t _slew;
00162 Int_t _range;
00163 Int_t _tc;
00164 ClassDef(TMBLum, 2)
00165 };
00166
00167 #endif