00001 #ifndef __EMCCLUSTERLOCALEXTV1_H__
00002 #define __EMCCLUSTERLOCALEXTV1_H__
00003
00004 #include "EmcClusterLocalExt.h"
00005 #include <iostream>
00006
00007 class dEmcClusterLocalExtWrapper;
00008 class TClonesArray;
00009
00015 class EmcClusterLocalExtv1 : public EmcClusterLocalExt
00016 {
00017 public:
00018 EmcClusterLocalExtv1();
00019 virtual ~EmcClusterLocalExtv1();
00020
00021 void Reset();
00022 int isValid() const;
00023 void identify(std::ostream &os = std::cout) const;
00024
00025 void FillFromWrapper(dEmcClusterLocalExtWrapper *wrap);
00026
00027 unsigned int get_EmcNCluster() const {return EmcNCluster;}
00028 void set_EmcNCluster(const unsigned int nclus) {EmcNCluster = nclus; return;}
00029
00030 int set_TClonesArraySize(const unsigned int nclus);
00031 void AddEmcCluster(const unsigned int iclus);
00032
00033 short get_arm(const unsigned int iclus) const;
00034
00035 short get_clusno(const unsigned int iclus) const;
00036 void set_clusno(const unsigned int iclus, const short ival);
00037
00038 short get_id(const unsigned int iclus) const;
00039 void set_id(const unsigned int iclus, const short ival);
00040
00041 short get_ind(const unsigned int itower, const short i) const;
00042
00043 short get_method(const unsigned int iclus) const;
00044 void set_method(const unsigned int iclus, const short ival);
00045
00046 short get_nsh(const unsigned int iclus) const;
00047 void set_nsh(const unsigned int iclus, const short ival);
00048
00049 short get_sector(const unsigned int iclus) const;
00050
00051 short get_twrhit(const unsigned int iclus) const;
00052 void set_twrhit(const unsigned int iclus, const short ival);
00053
00054 short get_type(const unsigned int iclus) const;
00055 void set_type(const unsigned int iclus, const short ival);
00056
00057
00058 int get_deadmap(const unsigned int iclus) const;
00059 void set_deadmap(const unsigned int iclus, const int ival);
00060
00061 int get_index(const unsigned int iclus) const;
00062 void set_index(const unsigned int iclus, const int ival);
00063
00064 int get_warnmap(const unsigned int iclus) const;
00065 void set_warnmap(const unsigned int iclus, const int ival);
00066
00067 int get_twrlist(const unsigned int iclus, const short i) const;
00068 void set_twrlist(const unsigned int iclus, const short i, const int ival);
00069
00070
00071
00072 float get_chi2(const unsigned int iclus) const;
00073 void set_chi2(const unsigned int iclus, const float rval);
00074
00075 float get_chi2_sh(const unsigned int iclus) const;
00076 void set_chi2_sh(const unsigned int iclus, const float rval);
00077
00078 float get_de(const unsigned int iclus) const;
00079 void set_de(const unsigned int iclus, const float rval);
00080
00081 float get_dtof(const unsigned int iclus) const;
00082 void set_dtof(const unsigned int iclus, const float rval);
00083
00084 float get_e(const unsigned int iclus) const;
00085 void set_e(const unsigned int iclus, const float rval);
00086
00087 float get_ecore(const unsigned int iclus) const;
00088 void set_ecore(const unsigned int iclus, const float rval);
00089
00090 float get_ecent(const unsigned int iclus) const;
00091 void set_ecent(const unsigned int iclus, const float rval);
00092
00093 float get_ecorr(const unsigned int iclus) const;
00094 void set_ecorr(const unsigned int iclus, const float rval);
00095
00096 float get_etofmax(const unsigned int iclus) const;
00097 void set_etofmax(const unsigned int iclus, const float rval);
00098
00099 float get_etofmin(const unsigned int iclus) const;
00100 void set_etofmin(const unsigned int iclus, const float rval);
00101
00102 float get_e9(const unsigned int iclus) const;
00103 void set_e9(const unsigned int iclus, const float rval);
00104
00105 float get_phi(const unsigned int iclus) const;
00106 void set_phi(const unsigned int iclus, const float rval);
00107
00108 float get_pid(const unsigned int iclus) const;
00109 void set_pid(const unsigned int iclus, const float rval);
00110
00111 float get_prob_neuhad(const unsigned int iclus) const;
00112 void set_prob_neuhad(const unsigned int iclus, const float rval);
00113
00114 float get_prob_photon(const unsigned int iclus) const;
00115 void set_prob_photon(const unsigned int iclus, const float rval);
00116
00117 float get_prob_photon_sh(const unsigned int iclus) const;
00118 void set_prob_photon_sh(const unsigned int iclus, const float rval);
00119
00120 float get_qual(const unsigned int iclus) const;
00121 void set_qual(const unsigned int iclus, const float rval);
00122
00123 float get_re9(const unsigned int iclus) const;
00124 void set_re9(const unsigned int iclus, const float rval);
00125
00126 float get_theta(const unsigned int iclus) const;
00127 void set_theta(const unsigned int iclus, const float rval);
00128
00129 float get_tof(const unsigned int iclus) const;
00130 void set_tof(const unsigned int iclus, const float rval);
00131
00132 float get_tofcorr(const unsigned int iclus) const;
00133 void set_tofcorr(const unsigned int iclus, const float rval);
00134
00135 float get_tofmax(const unsigned int iclus) const;
00136 void set_tofmax(const unsigned int iclus, const float rval);
00137
00138 float get_tofmaxcorr(const unsigned int iclus) const;
00139 void set_tofmaxcorr(const unsigned int iclus, const float rval);
00140
00141 float get_tofmean(const unsigned int iclus) const;
00142 void set_tofmean(const unsigned int iclus, const float rval);
00143
00144 float get_tofmin(const unsigned int iclus) const;
00145 void set_tofmin(const unsigned int iclus, const float rval);
00146
00147 float get_tofmincorr(const unsigned int iclus) const;
00148 void set_tofmincorr(const unsigned int iclus, const float rval);
00149
00150
00151
00152 float get_de_sh(const unsigned int iclus, const short i) const;
00153 void set_de_sh(const unsigned int iclus, const short i, const float rval);
00154
00155 float get_disp(const unsigned int iclus, const short i) const;
00156 void set_disp(const unsigned int iclus, const short i, const float rval);
00157
00158 float get_dxyz(const unsigned int iclus, const short i) const;
00159 void set_dxyz(const unsigned int iclus, const short i, const float rval);
00160
00161 float get_ecorr_sh(const unsigned int iclus, const short i) const;
00162 void set_ecorr_sh(const unsigned int iclus, const short i, const float rval);
00163
00164 float get_e_sh(const unsigned int iclus, const short i) const;
00165 void set_e_sh(const unsigned int iclus, const short i, const float rval);
00166
00167 float get_padisp(const unsigned int iclus, const short i) const;
00168 void set_padisp(const unsigned int iclus, const short i, const float rval);
00169
00170 float get_partesum(const unsigned int iclus, const short i) const;
00171 void set_partesum(const unsigned int iclus, const short i, const float rval);
00172
00173 float get_unitv(const unsigned int iclus, const short i) const;
00174 void set_unitv(const unsigned int iclus, const short i, const float rval);
00175
00176 float get_xyz(const unsigned int iclus, const short i) const;
00177 void set_xyz(const unsigned int iclus, const short i, const float rval);
00178
00179 float get_yz_cg(const unsigned int iclus, const short i) const;
00180 void set_yz_cg(const unsigned int iclus, const short i, const float rval);
00181
00182 float get_dxyz_sh(const unsigned int iclus, const short i, const short j) const;
00183 void set_dxyz_sh(const unsigned int iclus, const short i, const short j, const float rval);
00184
00185 float get_xyz_sh(const unsigned int iclus, const short i, const short j) const;
00186 void set_xyz_sh(const unsigned int iclus, const short i, const short j, const float rval);
00187
00188 protected:
00189 TClonesArray *GetEmcClus() const {return EmcClus;}
00190
00191 unsigned int EmcNCluster;
00192 TClonesArray *EmcClus;
00193
00194 ClassDef(EmcClusterLocalExtv1,1)
00195
00196 };
00197
00198 #endif