#include <TofPatternCut.h>
Public Member Functions | |
TofPatternCut (const char *cutName) | |
Constructor. | |
~TofPatternCut () | |
Destructor. | |
int | Check (PamLevel2 *event) |
The ToF-pattern check. | |
int | GetNHitPMTsOutsideTrack (PamLevel2 *event, int plane) |
Counts the number of hit PMTs (with tdc signal) outside track. | |
void | SetStandalone (int yes) |
Set standalone ToF track. | |
void | SetTrackNumber (int n) |
Set (physical) track number (0,1,...). Default is 0 (the first). | |
Private Attributes | |
bool | _standalone |
int | _notrk |
Requirements:
Definition at line 25 of file TofPatternCut.h.
TofPatternCut::TofPatternCut | ( | const char * | cutName | ) | [inline] |
TofPatternCut::~TofPatternCut | ( | ) | [inline] |
int TofPatternCut::Check | ( | PamLevel2 * | event | ) | [virtual] |
The ToF-pattern check.
event | The event to analyze. |
Implements PamCut.
Definition at line 12 of file TofPatternCut.cpp.
References _notrk, _standalone, CUTOK, and GetNHitPMTsOutsideTrack().
int TofPatternCut::GetNHitPMTsOutsideTrack | ( | PamLevel2 * | event, | |
int | plane | |||
) |
Counts the number of hit PMTs (with tdc signal) outside track.
event | The event to analyze. | |
plane | Plane number (0-5 = S11-S32). |
to avoid adc pile-up
Definition at line 182 of file TofPatternCut.cpp.
References _notrk, and _standalone.
Referenced by Check().
void TofPatternCut::SetStandalone | ( | int | yes | ) | [inline] |
void TofPatternCut::SetTrackNumber | ( | int | n | ) | [inline] |
Set (physical) track number (0,1,...). Default is 0 (the first).
Definition at line 59 of file TofPatternCut.h.
References _notrk.
int TofPatternCut::_notrk [private] |
Definition at line 67 of file TofPatternCut.h.
Referenced by Check(), GetNHitPMTsOutsideTrack(), and SetTrackNumber().
bool TofPatternCut::_standalone [private] |
Definition at line 66 of file TofPatternCut.h.
Referenced by Check(), GetNHitPMTsOutsideTrack(), and SetStandalone().