| 1 |
pam-fi |
1.1 |
/* |
| 2 |
|
|
* CATCut.h |
| 3 |
|
|
* |
| 4 |
|
|
* Created on: 13-mar-2009 |
| 5 |
|
|
* Author: Nicola Mori |
| 6 |
|
|
*/ |
| 7 |
|
|
|
| 8 |
|
|
/*! @file CATCut.h The CATCut class definition file */ |
| 9 |
|
|
|
| 10 |
|
|
#ifndef CATCUT_H_ |
| 11 |
|
|
#define CATCUT_H_ |
| 12 |
|
|
|
| 13 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
| 14 |
|
|
|
| 15 |
|
|
/*! @brief The CAT cut. |
| 16 |
|
|
* An event survives this cut only if no CAT scintillator has signal. |
| 17 |
|
|
*/ |
| 18 |
|
|
|
| 19 |
|
|
class CATCut: public PamCut { |
| 20 |
|
|
|
| 21 |
|
|
public: |
| 22 |
|
|
/*! @brief Constructor. |
| 23 |
|
|
* |
| 24 |
|
|
* @param cutName The cut's name. |
| 25 |
|
|
*/ |
| 26 |
|
|
CATCut(const char *cutName) : |
| 27 |
|
|
PamCut(cutName) { |
| 28 |
|
|
} |
| 29 |
|
|
/*! @brief Destructor. */ |
| 30 |
|
|
~CATCut() { |
| 31 |
|
|
} |
| 32 |
|
|
|
| 33 |
|
|
/*! @brief The CAT check. |
| 34 |
|
|
* |
| 35 |
|
|
* @param event The event to analyze. |
| 36 |
|
|
* @return #CUTOK if all the CAT scintillators show no signal |
| 37 |
|
|
* @return 0 if there's a signal on at least one scintillator |
| 38 |
|
|
*/ |
| 39 |
|
|
int Check(PamLevel2 *event); |
| 40 |
|
|
}; |
| 41 |
|
|
#endif /* CATCUT_H_ */ |