emcClusterContentv1S.h

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