00001 #ifndef __emcClusterContentv2_h__
00002 #define __emcClusterContentv2_h__
00003
00004 #include "emcClusterContent.h"
00005
00008 class emcClusterContentv2 : public emcClusterContent
00009 {
00010 public:
00011
00013 emcClusterContentv2();
00014 emcClusterContentv2(const emcClusterContentv2&);
00015 emcClusterContentv2& operator=(const emcClusterContentv2&);
00016
00017 emcClusterContentv2* clone(void) const;
00018 emcClusterContentv2* create(void) const;
00019
00020 virtual ~emcClusterContentv2();
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 tof() const { return fTof; }
00080 float tofdisp() const { return fTofdisp; }
00081 float tofmin() const { return fTofmin; }
00082 float tofmax() const { return fTofmax; }
00083
00084 float tofcorr() const { return fTofcorr; }
00085 float tofcorrmin() const { return fTofcorrmin; }
00086 float tofcorrmax() const { return fTofcorrmax; }
00087
00088 float theta() const { return fTheta; }
00089
00090 int towerid(int index) const;
00091
00092 int type() const { return fType; }
00093
00094 unsigned int warnmap() const { return fWarnmap; }
00095
00096 float x() const { return fX; }
00097 float y() const { return fY; }
00098 float z() const { return fZ; }
00099
00100 float ycg() const { return fYcg; }
00101 float zcg() const { return fZcg; }
00102
00103 bool has_yz_cg() const { return true; }
00104
00106
00107 void Reset();
00108
00109 void set_arm(int arm) { fArm=arm; }
00110 void set_chi2(float chi2) { fChi2=chi2; }
00111 void set_corrdisp(float corrdispy, float corrdispz) { fCorrDispy=corrdispy; fCorrDispz=corrdispz; }
00112 void set_cutword(unsigned int cw) { fCutword=cw; }
00113 void set_disp(float dispy, float dispz) { fDispy=dispy; fDispz=dispz; }
00114 void set_dxyz(float dx, float dy, float dz) { fDx=dx; fDy=dy; fDz=dz; }
00115 void set_e(float e) { fE=e;}
00116 void set_e9(float e9) { fE9=e9;}
00117 void set_ecore(float ecore) { fEcore=ecore; }
00118 void set_ecent(float ecent) { fEcent=ecent; }
00119 void set_etofmin(float etofmin) { fEtofmin=etofmin; }
00120 void set_etofmax(float etofmax) { fEtofmax=etofmax; }
00121 void set_id(int id) { fId=id; }
00122 void set_ipos(int iy, int iz) { fIypos=iy; fIzpos=iz; }
00123 void set_quality(float qual) { fQuality=qual; }
00124 void set_maps(unsigned int dead, unsigned int warn)
00125 { fDeadmap = dead; fWarnmap=warn; }
00126 void set_multiplicity(int mul);
00127 void set_padisp(float padispy, float padispz)
00128 { fPadispy=padispy; fPadispz=padispz; }
00129 void set_partesum(int index, float value);
00130 void set_prob_photon(float prob) { fProb_photon = prob; }
00131 void set_phi(float phi) { fPhi=phi; }
00132 void set_pid(int pid) { fPid=pid; }
00133 void set_sector(int sector) { fSector=sector; }
00134 void set_tof(float tof) { fTof=tof; }
00135 void set_tofdisp(float tofdisp) { fTofdisp=tofdisp; }
00136 void set_tofmin(float tofmin) { fTofmin=tofmin; }
00137 void set_tofmax(float tofmax) { fTofmax=tofmax; }
00138 void set_tofcorr(float tofcorr) { fTofcorr=tofcorr; }
00139 void set_tofcorrmin(float tofcorrmin) { fTofcorrmin=tofcorrmin; }
00140 void set_tofcorrmax(float tofcorrmax) { fTofcorrmax=tofcorrmax; }
00141 void set_theta(float theta) { fTheta=theta;}
00142 void set_towerid(int index, int value);
00143 void set_type(int type) { fType=type; }
00144 void set_xyz(float x, float y, float z) { fX=x; fY=y; fZ=z; }
00145 void set_yz_cg(float ycg, float zcg) { fYcg=ycg; fZcg=zcg; }
00146
00147 private:
00148
00149 void copy(emcClusterContentv2& to) const;
00150
00151 private:
00152
00153 unsigned int fDeadmap;
00154 unsigned int fWarnmap;
00155 unsigned int fCutword;
00156
00157 int fArm;
00158 int fId;
00159 int fMultiplicity;
00160 int fPid;
00161 int fSector;
00162 int fIypos;
00163 int fIzpos;
00164 int fType;
00165
00166 float fX;
00167 float fY;
00168 float fZ;
00169 float fDx;
00170 float fDy;
00171 float fDz;
00172 float fDispy;
00173 float fDispz;
00174 float fE;
00175 float fE9;
00176 float fEcent;
00177 float fEcore;
00178 float fEtofmin;
00179 float fEtofmax;
00180 float fChi2;
00181 float fQuality;
00182 float fPadispy;
00183 float fPadispz;
00184 float fProb_photon;
00185 float fPhi;
00186 float fTof;
00187 float fTofdisp;
00188 float fTofmin;
00189 float fTofmax;
00190 float fTofcorr;
00191 float fTofcorrmin;
00192 float fTofcorrmax;
00193 float fTheta;
00194 float fYcg;
00195 float fZcg;
00196 float fCorrDispy;
00197 float fCorrDispz;
00198
00199 int* fTowerid;
00200
00201 float* fPartesum;
00202
00203 ClassDef(emcClusterContentv2,1)
00204 };
00205
00206 #endif