00001 // HitFitter.h 00002 // fits a hit position in a cluster 00003 // http://positron.ps.uci.edu/~schernau/ROD/2rt 00004 00005 00006 #include "CSCCluster.h" 00007 00008 00009 00010 class HitFitter{ 00011 00012 private: 00013 CSCCluster* cluster; // points back to raw data 00014 double pos; // position in strip pitch 00015 double peak; // peaking time in samples 00016 double amp; // Amplitude in ADC counts 00017 int center; // center strip index in cluster 00018 00019 public: 00020 HitFitter(); //constructor for intialization 00021 ~HitFitter(); //destructor 00022 00023 00024 00025 void Print(); 00026 00027 double GetPos () { return pos;} ; 00028 double GetPeak() { return peak;}; 00029 double GetAmp () { return amp;}; 00030 int Fit(); // calc pos amp, peak. 00031 00032 }; 00033
1.3.9.1