1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* TofTopS1Cut.h |
3 |
|
|
* |
4 |
|
|
* Created on: 13-mar-2009 |
5 |
|
|
* Author: Nicola Mori |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file PktQualCut.h The PktQualCut class definition file */ |
9 |
|
|
|
10 |
|
|
#ifndef TOFTOPS1CUT_H_ |
11 |
|
|
#define TOFTOPS1CUT_H_ |
12 |
|
|
|
13 |
|
|
#include "../../PamCutBase/PamCutBase.h" |
14 |
|
|
|
15 |
|
|
|
16 |
|
|
/*! @brief The TofTopS1 cut. |
17 |
pam-fi |
1.2 |
* This cut ensures that no more than 2 PMTs are hit for S11 and S12. |
18 |
pam-fi |
1.1 |
*/ |
19 |
|
|
|
20 |
|
|
class TofTopS1Cut: public PamCut { |
21 |
|
|
|
22 |
|
|
public: |
23 |
|
|
/*! @brief Constructor. */ |
24 |
|
|
TofTopS1Cut(const char *cutName): PamCut(cutName){ |
25 |
|
|
} |
26 |
|
|
/*! @brief Destructor. */ |
27 |
|
|
~TofTopS1Cut() { |
28 |
|
|
} |
29 |
|
|
|
30 |
|
|
/*! @brief The TofTopS1 check. |
31 |
|
|
* |
32 |
|
|
* @param event The event to analyze. |
33 |
|
|
* @return #CUTOK if no more than 2 PMTs are hit on each layer of S1 |
34 |
|
|
* @return 0 otherwise |
35 |
|
|
*/ |
36 |
|
|
int Check(PamLevel2 *event); |
37 |
|
|
|
38 |
|
|
private: |
39 |
|
|
|
40 |
|
|
int _nHitPmtPl[2]; // Number of hit PMT on each layer of S1 |
41 |
|
|
|
42 |
|
|
}; |
43 |
|
|
|
44 |
|
|
#endif /* TOFTOPS1CUT_H_ */ |