/[PAMELA software]/PamCut/TofCuts/TofDedxS1Cut/TofDedxS1Cut.h
ViewVC logotype

Contents of /PamCut/TofCuts/TofDedxS1Cut/TofDedxS1Cut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed May 27 13:30:09 2009 UTC (15 years, 6 months ago) by pam-fi
Branch: DEV
CVS Tags: v0r00, Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1
Branch point for: V8
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First import

1 /*
2 * TofDedxS1Cut.h
3 *
4 * Created on: 13-mar-2009
5 * Author: Nicola Mori, S. Ricciarini
6 */
7
8 /*! @file TofDedxS1Cut.h The TofDedxS1Cut class definition file */
9
10 #ifndef TOFDEDXS1CUT_H_
11 #define TOFDEDXS1CUT_H_
12
13 #include "../../PamCutBase/PamCutBase.h"
14
15
16 /*! @brief The TofQual cut.
17 * This cut is done for each S1 layer: if there is one and only one hit paddle for the layer, then the dE/dX of the paddle (referred to a specified track) must be less than a fixed threshold. NOTE: 'hit paddle' means that both TDC signals are present AND they are both 'good' (according to TOF definition of 'good' TDC signal)
18 *
19 */
20
21 class TofDedxS1Cut: public PamCut {
22
23 public:
24 /*! @brief Constructor.
25 *
26 * The parameters are: maximum dE/dX for S1 layers and the TOF-index for the track which is necessary to input to derive the dE/dX for S1 layers.
27 *
28 * @param cutName The cut's name.
29 * @param maxDedxS1 The maximum dE/dX for each S1 layer, for which the event is accepted
30 * @param trackTof Pointer to the TOF-index indicating the track to be used when evaluating the dE/dX for S1 layers (default value for TOF_index is 0, corresponding to the TOF stand-alone track [no TRK information to build the TOF stand-alone track]). The pointer to the TOF_index for TRK-track as given by TrkPhSinCut can be used.
31 *
32 */
33 TofDedxS1Cut(const char *cutName, float maxDedxS1, int *trackTof=NULL):
34 PamCut(cutName), _maxDedxS1(maxDedxS1), _trackTof(trackTof) {
35 }
36 /*! @brief Destructor. */
37 ~TofDedxS1Cut() {
38 }
39
40 /*! @brief The TofDedxS1 check.
41 *
42 * @param event The event to analyze.
43 * @return #CUTOK if for each layer of S1 with one and only one hit paddle, the paddle dE/dX is less than a fixed threshold
44 * @return 0 otherwise
45 */
46 int Check(PamLevel2 *event);
47
48 private:
49
50 float _maxDedxS1;
51 int *_trackTof;
52 int _nHitPadPair[3]; // Number of hit paddles on each pair of layers
53
54 };
55
56 #endif /* TOFDEDXS1CUT_H_ */

  ViewVC Help
Powered by ViewVC 1.1.23