00001
00006 #include "CSCChamber.h"
00007 #include "CSCHit.h"
00008
00009 #define NUMLAYER 8 // 4 X + 4Y
00010 #define NUMHIT 30 // max per layer
00011
00034 class CSCHitList{
00035
00036 private:
00037 CSCHit* hit[NUMLAYER][NUMHIT];
00038 int numHits[NUMLAYER];
00039 void AddHit (int layer, CSCCluster* cluster, int i);
00040
00041
00042 public:
00044 CSCHitList();
00045
00046
00048 ~CSCHitList();
00049
00050
00052 void Print();
00053
00054
00059 int GetNumHits (int layer) {return numHits[layer];};
00060
00069 CSCHit* GetHit(int layer, int hitNumber);
00070
00071
00072
00087 int FindHits (CSCCluster* cluster, double signif = 3.1);
00088
00089
00090
00091
00100 void FindHits (CSCChamber* csc, double signif = 3.1);
00101
00102
00106 void Clear();
00107
00108
00121 void FindMatch(int layer, int hitNum);
00122
00128 void FindMatch (CSCHit * hit);
00129
00130
00136 CSCHit* CSCHitList::GetLargestHit(int layer);
00137
00138 };
00139