Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 #include "EvtRecEvent/EvtRecTrack.h"
00014 
00015 class Tof2PID : public ParticleIDBase {
00016 
00017  public:
00018   static Tof2PID *instance();
00019   ~Tof2PID(){;} 
00020   
00021   void init();
00022   void calculate();
00023   bool IsPidInfoValid() const {return (m_ndof > 0); }
00024   double chi(int n) const {return m_chi[n];}
00025   double sigma(int n) const{return m_sigma[n];}
00026   double offset(int n) const{return m_offset[n];}
00027   double prob(int n) const {return m_prob[n];}
00028   int ndof() const {return m_ndof;}
00029   double mass2() const {return m_mass2;}
00030   double ph2() const {return m_ph2;}
00031   double zhit2() const{return m_zhit2;}
00032   double path2() const{return m_path2;}
00033   double tof2() const{return m_tof2;}
00034   int neuronPID() const {return -1;}
00035  protected:
00036 
00037   int particleIDCalculation();
00038   int neuronPIDCalculation() {return -1;}
00039   int LikelihoodCalculation() {return -1;}
00040   double offsetTof2(int n, int cntr, double ptrk, double ztof, double m_ph2,double charge);
00041   double sigmaTof2(int n, int cntr,  double ptrk, double ztof, double m_ph2, double charge);
00042   double sampleQ0(double betagamma,double beta);
00043 
00044  private:
00045   double m_chi[5];
00046   double m_prob[5];
00047   double m_sigma[5];
00048   double m_offset[5];
00049   double m_chimin;
00050   double m_pdfmin;
00051   int m_ndof;
00052   double m_mass2;
00053   double m_ph2;
00054   double m_zhit2;
00055   double m_path2;
00056   double m_tof2;
00057   double m_pars[15];
00058  private:
00059   Tof2PID();
00060   static Tof2PID *m_pointer;
00061 };
00062 
00063 #endif

Generated on Wed Feb 2 15:41:19 2011 for BOSS6.5.5 by  doxygen 1.3.9.1