00001
00002
00003
00004
00005
00006
00007
00010 #ifndef TOFBETARIGCUT_H_
00011 #define TOFBETARIGCUT_H_
00012
00013 #include "../../PamCutBase/PamCutBase.h"
00014
00015 #include <TH2F.h>
00016
00022 class TofBetaRigCut: public PamCut {
00023
00024 public:
00032 TofBetaRigCut(const char *cutName, float threshold, int charge=1, float mass=0.93827203) :
00033 PamCut(cutName), _threshold(threshold), _charge(charge), _mass(mass) {
00034
00035 #ifdef DEBUGPAMCUT
00036
00037 TString hId;
00038 TString hTitle;
00039
00040 for (UInt_t j = 0; j < 2; j++) {
00041 hId.Form("h_trk_vs_tof_betamod_%i", j);
00042 hTitle.Form("TRK |beta| vs TOF |beta| (%i)", j);
00043 h_trk_vs_tof_betamod[j] = new TH2F(hId.Data(), hTitle.Data(), 50, 0, 1, 50, 0, 1);
00044 }
00045
00046 #endif
00047
00048 }
00050 ~TofBetaRigCut() {
00051
00052 #ifdef DEBUGPAMCUT
00053
00054 for (UInt_t j = 0; j < 2; j++) {
00055 h_trk_vs_tof_betamod[j]->Write();
00056 }
00057
00058 #endif
00059
00060 }
00061
00068 int Check(PamLevel2 *event);
00069
00070 private:
00071
00072 #ifdef DEBUGPAMCUT
00073
00074 TH2F* h_trk_vs_tof_betamod[2];
00075
00076 #endif
00077
00078 float _threshold;
00079 int _charge;
00080 float _mass;
00081
00082 };
00083 #endif