#include <CaloNHitCut.h>

Public Member Functions | |
| CaloNHitCut (const char *cutName, CaloAxis *xCaloAxis, CaloAxis *yCaloAxis, int nMinHit=10) | |
| Constructor. | |
| ~CaloNHitCut () | |
| Destructor. | |
| int | Check (PamLevel2 *event) |
| The number of hit planes check. | |
Private Attributes | |
| CaloAxis * | _xCaloAxis |
| CaloAxis * | _yCaloAxis |
| int | _nMinHit |
CUT DEPENDENCIES: CaloTrackCut for the existence of the track (it can also provide the CaloAxis objects).
Definition at line 29 of file CaloNHitCut.h.
| CaloNHitCut::CaloNHitCut | ( | const char * | cutName, | |
| CaloAxis * | xCaloAxis, | |||
| CaloAxis * | yCaloAxis, | |||
| int | nMinHit = 10 | |||
| ) | [inline] |
Constructor.
The CaloAxis arguments are pointers to objects which contain the calorimeter track information for current event.
| cutName | The cut name. | |
| xCaloAxis | The pointer to the CaloAxis object for X axis. | |
| yCaloAxis | The pointer to the CaloAxis object for Y axis. | |
| nMinHit | The minimum number of hits. |
Definition at line 43 of file CaloNHitCut.h.
| CaloNHitCut::~CaloNHitCut | ( | ) | [inline] |
| int CaloNHitCut::Check | ( | PamLevel2 * | event | ) | [virtual] |
The number of hit planes check.
The check is done by looking if there is a charge release near the track, using the CaloAxis class. If a charge greater than 0 is found by invoking CaloAxis::GetQ for at least nMinHit planes (both for X and Y) the condition is fulfilled.
| event | The event to analyze. |
0 otherwise.
Implements PamCut.
Definition at line 12 of file CaloNHitCut.cpp.
References _nMinHit, _xCaloAxis, _yCaloAxis, CUTOK, and CaloAxis::GetQ().
int CaloNHitCut::_nMinHit [private] |
CaloAxis* CaloNHitCut::_xCaloAxis [private] |
CaloAxis * CaloNHitCut::_yCaloAxis [private] |
1.5.9