00001
00002
00003
00004
00005
00006 #ifndef _TMUIHITO_H_
00007 #define _TMUIHITO_H_
00008
00009
00010
00011 #include<TDataType.h>
00012 #include<PHKey.hh>
00013 #include<PHException.h>
00014 #include<MUIOO.h>
00015 #include<PHPoint.h>
00016
00017
00019
00020
00032 class TMuiHitO : public PHKey {
00033
00034 public:
00035
00037
00038
00040 TMuiHitO(){;}
00041
00043 virtual ~TMuiHitO(){;}
00044
00046 TMuiHitO(const Key& key) :
00047 PHKey(key){;}
00048
00050 TMuiHitO(const Key&,
00051 UShort_t arm,
00052 UShort_t plane,
00053 UShort_t panel,
00054 UShort_t orientation,
00055 UShort_t twopack,
00056 UShort_t index){;}
00057
00059
00060
00061
00063
00064
00065 virtual void set_arm( UShort_t arm) {}
00066
00068 virtual void set_plane( UShort_t plane) {}
00069
00071 virtual void set_panel( UShort_t panel) {}
00072
00074 virtual void set_orientation( UShort_t orientation) {}
00075
00077 virtual void set_twopack( UShort_t twopack) {}
00078
00080 virtual UShort_t get_arm() const {return 0;}
00081
00083 virtual UShort_t get_plane() const {return 0;}
00084
00086 virtual UShort_t get_panel() const {return 0;}
00087
00089 virtual UShort_t get_orientation() const {return 0;}
00090
00092 virtual UShort_t get_twopack() const {return 0;}
00093
00095 virtual UShort_t get_index() const {return 0;}
00096
00098
00100
00101
00102 virtual void print(std::ostream& os = std::cout) const {}
00103
00105
00106 ClassDef(TMuiHitO,1)
00107
00108 };
00109
00110
00111 class TMuiHitO_v1 : public TMuiHitO {
00112
00113 public:
00114
00115 TMuiHitO_v1();
00116
00117 virtual ~TMuiHitO_v1(){;}
00118
00119 TMuiHitO_v1(const Key&,
00120 UShort_t arm,
00121 UShort_t plane,
00122 UShort_t panel,
00123 UShort_t orientation,
00124 UShort_t twopack,
00125 UShort_t index);
00126
00127
00128 TMuiHitO_v1(const TMuiHitO*);
00129
00130 TMuiHitO_v1(const TMuiHitO&);
00131
00132 void set_arm( UShort_t arm) { _arm=arm;}
00133
00134 void set_plane( UShort_t plane) { _plane=plane;}
00135
00136 void set_panel( UShort_t panel) { _panel=panel;}
00137
00138 void set_orientation( UShort_t orientation) { _orientation=orientation;}
00139
00140 void set_twopack( UShort_t twopack) { _twopack=twopack;}
00141
00142 void set_index( UShort_t index) { _index=index;}
00143
00144 UShort_t get_arm() const {return _arm;}
00145
00146 UShort_t get_plane() const {return _plane;}
00147
00148 UShort_t get_panel() const {return _panel;}
00149
00150 UShort_t get_orientation() const {return _orientation;}
00151
00152 UShort_t get_twopack() const {return _twopack;}
00153
00154 UShort_t get_index() const {return _index;}
00155
00156 void print(std::ostream& os = std::cout) const {
00157 MUIOO::PRINT(os,GetName());
00158 os << " index: " << _index << std::endl;
00159 os << " arm: " << _arm << std::endl;
00160 os << " plane: " << _plane << std::endl;
00161 os << " panel: " << _panel << std::endl;
00162 os << " orientation: " << _orientation << std::endl;
00163 os << " twopack: " << _twopack << std::endl;
00164 MUIOO::PRINT(os,"**");
00165 }
00166
00167 private:
00168
00169 UShort_t _arm;
00170 UShort_t _plane;
00171 UShort_t _panel;
00172 UShort_t _orientation;
00173 UShort_t _twopack;
00174 UShort_t _index;
00175
00176 ClassDef(TMuiHitO_v1,1)
00177 };
00178
00179 #endif
00180
00181
00182
00183
00184
00185
00186
00187
00188