00001 #ifndef __emcClusterContentv4_h__
00002 #define __emcClusterContentv4_h__
00003
00004 #include "emcClusterContent.h"
00005
00008 class emcClusterContentv4 : public emcClusterContent
00009 {
00010 public:
00011
00013 emcClusterContentv4();
00014 emcClusterContentv4(const emcClusterContentv4&);
00015 emcClusterContentv4& operator=(const emcClusterContentv4&);
00016
00017 emcClusterContentv4* clone(void) const;
00018 emcClusterContentv4* create(void) const;
00019
00020 virtual ~emcClusterContentv4();
00021 virtual void Clear(Option_t* option="");
00022
00024
00025 int arm() const { return fArm; }
00026
00027 float chi2() const { return fChi2; }
00028
00029 float corrdispy() const { return fCorrDispy; }
00030 float corrdispz() const { return fCorrDispz; }
00031
00032 unsigned int cutword() const { return fCutword; }
00033
00034 unsigned int deadmap() const { return fDeadmap; }
00035
00036 float dispy() const { return fDispy; }
00037 float dispz() const { return fDispz; }
00038
00039 float dx() const { return fDx; }
00040 float dy() const { return fDy; }
00041 float dz() const { return fDz; }
00042
00043 float e() const { return fE; }
00044 float e9() const { return fE9; }
00045 float ecore() const { return fEcore; }
00046 float ecent() const { return fEcent; }
00047 float etofmin() const { return fEtofmin; }
00048 float etofmax() const { return fEtofmax; }
00049
00050 int id() const { return fId; }
00051
00052 void identify(std::ostream& os=std::cout) const;
00053
00054 int isValid() const;
00055
00056 int iypos() const { return fIypos; }
00057 int izpos() const { return fIzpos; }
00058
00059 float quality() const { return fQuality; }
00060
00061 int multiplicity() const { return fMultiplicity; }
00062
00063 float padispy() const { return fPadispy; }
00064 float padispz() const { return fPadispz; }
00065
00066
00067 float partesum(int index) const;
00068
00069 float prob_photon() const { return fProb_photon; }
00070
00071 float phi() const { return fPhi; }
00072
00073 int pid() const { return fPid; }
00074
00075 void print(std::ostream& out=std::cout) const;
00076
00077 int sector() const { return fSector; }
00078
00079 float simfrac() const { return 0; }
00080
00081 float tof() const { return fTof; }
00082 float tofhad() const { return fTofHad; }
00083 float tofdisp() const { return fTofdisp; }
00084 float tofmin() const { return fTofmin; }
00085 float tofmax() const { return fTofmax; }
00086
00087 float tofcorr() const { return fTofcorr; }
00088 float tofcorrmin() const { return fTofcorrmin; }
00089 float tofcorrmax() const { return fTofcorrmax; }
00090
00091 float theta() const { return fTheta; }
00092
00093 int towerid(int index) const;
00094
00095 int type() const { return fType; }
00096
00097 unsigned int warnmap() const { return fWarnmap; }
00098
00099 float x() const { return fX; }
00100 float y() const { return fY; }
00101 float z() const { return fZ; }
00102
00103 float ycg() const { return fYcg; }
00104 float zcg() const { return fZcg; }
00105
00106 bool has_yz_cg() const { return true; }
00107
00108 short emcpc3 () const { return femcpc3 ;}
00109 short emcpc3neartrk() const { return femcpc3neartrk ;}
00110 float emcpc3dz () const { return femcpc3dz ;}
00111 float emcpc3dphi () const { return femcpc3dphi ;}
00112 short emctrk () const { return femctrk ;}
00113 float emctrkdz () const { return femctrkdz ;}
00114 float emctrkdphi () const { return femctrkdphi ;}
00115 float pemctrk () const { return fpemctrk ;}
00116 short emctrkquality() const { return femctrkquality ;}
00117
00118
00119
00120
00122
00123 void Reset();
00124
00125 void set_arm(int arm) { fArm=arm; }
00126 void set_chi2(float chi2) { fChi2=chi2; }
00127 void set_corrdisp(float corrdispy, float corrdispz) { fCorrDispy=corrdispy; fCorrDispz=corrdispz; }
00128 void set_cutword(unsigned int cw) { fCutword=cw; }
00129 void set_disp(float dispy, float dispz) { fDispy=dispy; fDispz=dispz; }
00130 void set_dxyz(float dx, float dy, float dz) { fDx=dx; fDy=dy; fDz=dz; }
00131 void set_e(float e) { fE=e;}
00132 void set_e9(float e9) { fE9=e9;}
00133 void set_ecore(float ecore) { fEcore=ecore; }
00134 void set_ecent(float ecent) { fEcent=ecent; }
00135 void set_etofmin(float etofmin) { fEtofmin=etofmin; }
00136 void set_etofmax(float etofmax) { fEtofmax=etofmax; }
00137 void set_id(int id) { fId=id; }
00138 void set_ipos(int iy, int iz) { fIypos=iy; fIzpos=iz; }
00139 void set_quality(float qual) { fQuality=qual; }
00140 void set_maps(unsigned int dead, unsigned int warn)
00141 { fDeadmap = dead; fWarnmap=warn; }
00142 void set_multiplicity(int mul);
00143 void set_padisp(float padispy, float padispz)
00144 { fPadispy=padispy; fPadispz=padispz; }
00145 void set_partesum(int index, float value);
00146 void set_prob_photon(float prob) { fProb_photon = prob; }
00147 void set_phi(float phi) { fPhi=phi; }
00148 void set_pid(int pid) { fPid=pid; }
00149 void set_sector(int sector) { fSector=sector; }
00150 void set_tof(float tof) { fTof=tof; }
00151 void set_tofhad(float tofhad) { fTofHad=tofhad; }
00152 void set_tofdisp(float tofdisp) { fTofdisp=tofdisp; }
00153 void set_tofmin(float tofmin) { fTofmin=tofmin; }
00154 void set_tofmax(float tofmax) { fTofmax=tofmax; }
00155 void set_tofcorr(float tofcorr) { fTofcorr=tofcorr; }
00156 void set_tofcorrmin(float tofcorrmin) { fTofcorrmin=tofcorrmin; }
00157 void set_tofcorrmax(float tofcorrmax) { fTofcorrmax=tofcorrmax; }
00158 void set_theta(float theta) { fTheta=theta;}
00159 void set_towerid(int index, int value);
00160 void set_type(int type) { fType=type; }
00161 void set_xyz(float x, float y, float z) { fX=x; fY=y; fZ=z; }
00162 void set_yz_cg(float ycg, float zcg) { fYcg=ycg; fZcg=zcg; }
00163 void set_emcpc3 (short val) {femcpc3 = val;}
00164 void set_emcpc3neartrk(short val) {femcpc3neartrk= val;}
00165 void set_emcpc3dz (float val) {femcpc3dz = val;}
00166 void set_emcpc3dphi (float val) {femcpc3dphi = val;}
00167 void set_emctrk (short val) {femctrk = val;}
00168 void set_emctrkdz (float val) {femctrkdz = val;}
00169 void set_emctrkdphi (float val) {femctrkdphi = val;}
00170 void set_pemctrk (float val) {fpemctrk = val;}
00171 void set_emctrkquality(short val) {femctrkquality= val;}
00172
00173 private:
00174
00175 void copy(emcClusterContentv4& to) const;
00176
00177 private:
00178
00179 unsigned int fDeadmap;
00180 unsigned int fWarnmap;
00181 unsigned int fCutword;
00182
00183 int fArm;
00184 int fId;
00185 int fMultiplicity;
00186 int fPid;
00187 int fSector;
00188 int fIypos;
00189 int fIzpos;
00190 int fType;
00191
00192 float fX;
00193 float fY;
00194 float fZ;
00195 float fDx;
00196 float fDy;
00197 float fDz;
00198 float fDispy;
00199 float fDispz;
00200 float fE;
00201 float fE9;
00202 float fEcent;
00203 float fEcore;
00204 float fEtofmin;
00205 float fEtofmax;
00206 float fChi2;
00207 float fQuality;
00208 float fPadispy;
00209 float fPadispz;
00210 float fProb_photon;
00211 float fPhi;
00212 float fTof;
00213 float fTofdisp;
00214 float fTofmin;
00215 float fTofmax;
00216 float fTofcorr;
00217 float fTofcorrmin;
00218 float fTofcorrmax;
00219 float fTheta;
00220 float fYcg;
00221 float fZcg;
00222 float fCorrDispy;
00223 float fCorrDispz;
00224 float fTofHad;
00225 short femcpc3 ;
00226 short femcpc3neartrk ;
00227 float femcpc3dz ;
00228 float femcpc3dphi ;
00229 short femctrk ;
00230 float femctrkdz ;
00231 float femctrkdphi ;
00232 float fpemctrk ;
00233 short femctrkquality ;
00234
00235 int* fTowerid;
00236
00237 float* fPartesum;
00238
00239 ClassDef(emcClusterContentv4,1)
00240 };
00241
00242 #endif
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256