emcClusterContentv1M.h

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