/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Tof/TofRecEvent/TofRecEvent-00-02-14/TofRecEvent/RecBTofCalHit.h

Go to the documentation of this file.
00001 /* 
00002  * Class : RecBTofCalHit
00003  * This class is a Event data model for Reconstrcted input for Barrel Tof calibration
00004  * Created  by  Lin li Jiang (USTC)     2005/3/24   05:21 
00005  * Changed  by  Lin li Jiang (USTC)     2005/12/12  19:38 
00006  * 
00007  */
00008 #ifndef RECBTOFCALHIT_H
00009 #define RECBTOFCALHIT_H
00010 
00011 #include "GaudiKernel/ContainedObject.h"
00012 #include "GaudiKernel/ObjectVector.h"
00013 #include "GaudiKernel/SmartRef.h"
00014 #include "EventModel/EventModel.h"
00015 #include "Identifier/Identifier.h"
00016 
00017 extern const  CLID &CLID_RecBTofCalHit;
00018 
00019 
00020 class RecBTofCalHit : virtual public ContainedObject {
00021 
00022 public:
00023   RecBTofCalHit();//{} 
00024   virtual ~RecBTofCalHit(){} 
00025 
00026   virtual const CLID& clID()  const { return  RecBTofCalHit::classID();}
00027   static  const CLID& classID() { return CLID_RecBTofCalHit; }
00028 
00029 public:
00030   int         run()      const {  return  m_run;      }
00031   int         event()    const {  return  m_event;    }
00032   int         mod()      const {  return  m_imod;     }
00033   int         qual()     const {  return  m_qual;     }
00034   double      tpred()    const {  return  m_tpred;    }
00035   double      tdc1()     const {  return  m_tdc1;     }
00036   double      tdc2()     const {  return  m_tdc2;     }
00037   double      adc1()     const {  return  m_adc1;     }
00038   double      adc2()     const {  return  m_adc2;     }
00039   double      zHit()     const {  return  m_zHit;     }
00040   double      dzHit()    const {  return  m_dzHit;    }
00041   double      deltaPhi() const {  return  m_deltaPhi; }
00042   double      sinTheta() const {  return  m_sintheta; }
00043   double      p()        const {  return  m_p;        }
00044   double      Q()        const {  return  m_Q;        }
00045   double      path()     const {  return  m_path;     }
00046 //add 9/23/06
00047 public:
00048   double     tpred(int index) const { if(index<0||index>=5) index=0;return m_texp[index];}
00049   void       setTpred(int idx,double t) {if(idx<0||idx>=5) idx=0; m_texp[idx]=t; }
00050 private:
00051   double m_texp[5];//0 e-,1 muon,2 Kaon,3 pion,4 proton
00052 //end add
00053 public: 
00054   void  setRun(int run)              { m_run      = run;      }
00055   void  setEvent(int event)          { m_event    = event;    }
00056   void  setMod(int imod)             { m_imod     = imod;     }
00057   void  setQual(int qual)            { m_qual     = qual;     }
00058   void  setTpred(double tpred)       { m_tpred    = tpred;    }
00059   void  setTdc1(double tdc1)         { m_tdc1     = tdc1;     }
00060   void  setTdc2(double tdc2)         { m_tdc2     = tdc2;     }
00061   void  setAdc1(double adc1)         { m_adc1     = adc1;     }
00062   void  setAdc2(double adc2)         { m_adc2     = adc2;     } 
00063   void  setZHit(double zHit)         { m_zHit     = zHit;     }
00064   void  setdZHit(double dzHit)       { m_dzHit    = dzHit;    }
00065   void  setDeltaPhi(double deltaPhi) { m_deltaPhi = deltaPhi; }
00066   void  setsinTheta(double sint)     { m_sintheta = sint;     }
00067   void  setP(double p)               { m_p        = p;        }
00068   void  setQ(double q)               { m_Q        = q;        }
00069   void  setPath(double l)            { m_path     = l;        }
00070 private:
00071   int    m_run;
00072   int    m_event;
00073   int    m_imod;
00074   int    m_qual;
00075   double m_tpred;
00076   double m_tdc1;
00077   double m_tdc2;
00078   double m_adc1;
00079   double m_adc2;
00080   double m_zHit;
00081   double m_dzHit;
00082   double m_deltaPhi;
00083   double m_sintheta;
00084   double m_p;
00085   double m_Q;
00086   double m_path;
00087 public:
00088   RecBTofCalHit* next() const { return m_bch;}
00089   void setnext(RecBTofCalHit* n) { m_bch=n;}
00090 private:
00091   RecBTofCalHit* m_bch;
00092 };
00093 
00094 typedef ObjectVector<RecBTofCalHit> RecBTofCalHitCol;
00095 
00096 #endif //RECBTOFCalHit_H
00097 
00098 

Generated on Tue Nov 29 23:14:39 2016 for BOSS_7.0.2 by  doxygen 1.4.7