#include <CSCHitList.h>
Public Member Functions | |
| CSCHitList () | |
| Constructor for intialization. | |
| ~CSCHitList () | |
| Destructor. | |
| void | Print () |
| Prints the contents of the hit list for debugging. | |
| int | GetNumHits (int layer) |
| CSCHit * | GetHit (int layer, int hitNumber) |
| Provides access to the hits. | |
| int | FindHits (CSCCluster *cluster, double signif=3.1) |
| Finds hits in a cluster and adds them to the list. | |
| void | FindHits (CSCChamber *csc, double signif=3.1) |
| Adds all hits in a chamber to the hit list. | |
| void | Clear () |
| Remove all hits in the hit list. | |
| void | FindMatch (int layer, int hitNum) |
| Find a matching hit based on charge sum. | |
| void | FindMatch (CSCHit *hit) |
| Find a matching hit based on charge sum. | |
| CSCHit * | GetLargestHit (int layer) |
| Search for the largest hit in a layer. | |
The hits are grouped into 8 layers: 0-3 are the X layers, and 4-7 are the Y layers. The number of available hits is obtained by calling GetNumHits().
Filling the hit list is done after pedestal subtraction:
//fill hitlist with cluster data for (chamber=0; chamber<event.GetNumChamber(); chamber++){ CSCChamber* csc = event.GetChamber(chamber); cal.Calibrate(csc); // CalServer looks up pedestals hitList[chamber].FindHits (csc); // find hits } // next chamber
|
|
Remove all hits in the hit list. Call this if you are reusing a hitlist object. |
|
||||||||||||
|
Adds all hits in a chamber to the hit list. The list is cleared of old hits before new hits are added. The clusters should be calibrated first.
|
|
||||||||||||
|
Finds hits in a cluster and adds them to the list. This hitfinding algorithm looks at 3 consequtive strips: The center amplitude must be larger than a threshold, and larger than the left and right strips amplitude. The left or the right amplitude must be larger than the threshold. The default threshold is set to 3.1 times the noise of the channel. The clusters should be calibrated first.
|
|
|
Find a matching hit based on charge sum. This is an alternative interface to FindMatch(int layer, int hitNum).
|
|
||||||||||||
|
Find a matching hit based on charge sum.
|
|
||||||||||||
|
Provides access to the hits.
|
|
|
Search for the largest hit in a layer.
|
|
|
|
1.3.9.1