/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Analysis/ParticleID/ParticleID-00-04-61/ParticleID/Tof2PID.h

Go to the documentation of this file.
00001 #ifndef ParticleID_Tof2PID_H
00002 #define ParticleID_Tof2PID_H
00003 //
00004 // Tof2PID package: particle Identification with Barrel TOF outer layer
00005 //
00006 //
00007 // In 1st version, only the momentum dependent is taken into account
00008 // The corrections are made by: M.Yang, M.S. Chen, L.L. Wang, J.Y. Zhang and Y.Z. Sun
00009 // Author: K.L. He     date: 11/12/2005, created
00010 //
00011 
00012 #include "ParticleID/ParticleIDBase.h"
00013 
00014 class Tof2PID : public ParticleIDBase {
00015 
00016  public:
00017   static Tof2PID *instance();
00018   ~Tof2PID(){;} 
00019   
00020   void init();
00021   void calculate();
00022   bool IsPidInfoValid() const {return (m_ndof > 0); }
00023   double chi(int n) const {return m_chi[n];}
00024   double sigma(int n) const{return m_sigma[n];}
00025   double offset(int n) const{return m_offset[n];}
00026   double prob(int n) const {return m_prob[n];}
00027   int ndof() const {return m_ndof;}
00028   double mass2() const {return m_mass2;}
00029   double ph2() const {return m_ph2;}
00030   double zhit2() const{return m_zhit2;}
00031   double path2() const{return m_path2;}
00032   double tof2() const{return m_tof2;}
00033   int neuronPID() const {return -1;}
00034  protected:
00035 
00036   int particleIDCalculation();
00037   int neuronPIDCalculation() {return -1;}
00038   int LikelihoodCalculation() {return -1;}
00039   double offsetTof2(int n, int cntr, double ptrk, double ztof, double m_ph2,double charge);
00040   double sigmaTof2(int n, int cntr,  double ptrk, double ztof, double m_ph2, double charge);
00041   double sampleQ0(double betagamma,double beta);
00042 
00043  private:
00044   double m_chi[5];
00045   double m_prob[5];
00046   double m_sigma[5];
00047   double m_offset[5];
00048   double m_chimin;
00049   double m_pdfmin;
00050   int m_ndof;
00051   double m_mass2;
00052   double m_ph2;
00053   double m_zhit2;
00054   double m_path2;
00055   double m_tof2;
00056   double m_pars[15];
00057  private:
00058   Tof2PID();
00059   static Tof2PID *m_pointer;
00060 };
00061 
00062 #endif

Generated on Tue Nov 29 22:57:34 2016 for BOSS_7.0.2 by  doxygen 1.4.7