// -*- mode: c++ -*- // // $Id: BrTpcSequencePPModule.h,v 1.1 2001/07/06 10:20:17 pchristi Exp $ // $Author: pchristi $ // $Date: 2001/07/06 10:20:17 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTpcSequencePPModule #define BRAT_BrTpcSequencePPModule #ifndef BRAT_BrModule #include "BrModule.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef BRAT_BrDetectorParamsTPC #include "BrDetectorParamsTPC.h" #endif #ifndef BRAT_BrDataTable #include "BrDataTable.h" #endif #ifndef BRAT_BrTpcSequence #include "BrTpcSequence.h" #endif class BrTpcSequencePPModule : public BrModule { private: BrDataTable *fSeqTable; // input table Int_t fMinSeqLength; // Minimum length of seq Int_t fPadCutLow; // Minimum pad number Int_t fPadCutHigh; // Maximum pad number Int_t fTimeCutLow; // Minimum time bin number Int_t fTimeCutHigh; // Maximum time bin number Short_t fMinAdc; // Minimum Adc value BrDetectorParamsTPC *fTpcParams; // Detector parameters void ApplyTimeAndAdcCuts(BrTpcSequence *seq, TObjArray *outTable); public: BrTpcSequencePPModule(); BrTpcSequencePPModule(const Char_t* name, const Char_t* title); virtual ~BrTpcSequencePPModule () {} virtual void DefineHistograms(); virtual void Init(); virtual void Event(BrEventNode* inNode, BrEventNode* outNode); virtual void Print(Option_t* option="B") const; // *MENU* void SetMinSeqLength(Int_t val = 3) {fMinSeqLength = val;} void SetPadCutLow(Int_t val = 0) {fPadCutLow = val;} void SetPadCutHigh(Int_t val = 144) {fPadCutHigh = val;} void SetTimeCutLow(Int_t val = 20) {fTimeCutLow = val;} void SetTimeCutHigh(Int_t val = 158) {fTimeCutHigh = val;} void SetMinAdc(Short_t val = 0) {fMinAdc = val;} ClassDef(BrTpcSequencePPModule,0) // BRAT TpcSequence preprocessor module }; #endif //____________________________________________________________________ // // $Log: BrTpcSequencePPModule.h,v $ // Revision 1.1 2001/07/06 10:20:17 pchristi // Added a new version of the tpc sequence preprocessor. It is more flexible and less messy (I hope). // //