00001 /* 00002 * TofPatternCut.h 00003 * 00004 * Created on: 10-mar-2009 00005 * Author: Elena Vannuccini 00006 */ 00007 00010 #ifndef TOFPATTERNCUT_H_ 00011 #define TOFPATTERNCUT_H_ 00012 00013 #include "../../PamCutBase/PamCutBase.h" 00014 00025 class TofPatternCut: public PamCut { 00026 00027 public: 00029 TofPatternCut(const char *cutName) : 00030 PamCut(cutName), _standalone(false), _notrk(0) { 00031 } 00033 ~TofPatternCut() { 00034 } 00035 00041 int Check(PamLevel2 *event); 00042 00048 int GetNHitPMTsOutsideTrack(PamLevel2 *event, int plane); 00049 00051 inline void SetStandalone(int yes) { 00052 if (yes) 00053 _standalone = true; 00054 else 00055 _standalone = false; 00056 } 00057 00059 inline void SetTrackNumber(int n) { 00060 _notrk = n; 00061 } 00062 00063 00064 private: 00065 00066 bool _standalone; 00067 int _notrk; 00068 00069 }; 00070 #endif /* TOFPATTERNCUT_H_ */