// -*- mode: c++ -*- // // $Id: BrTriggerFilter.h,v 1.2 2001/12/14 15:38:51 cholm Exp $ // $Author: cholm $ // $Date: 2001/12/14 15:38:51 $ // $Copyright: 2000 BRAHMS Collaboration // #ifndef BRAT_BrTriggerFilter #define BRAT_BrTriggerFilter #ifndef BRAT_BrModule #include "BrModule.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef ROOT_TH1 #include #endif class BrTriggerFilter : public BrModule { private: UInt_t fTriggerMask; Int_t fProcessedEvents; Int_t fAcceptedEvents; TH1F* fAllTriggersHisto; TH1F* fAccTriggersHisto; public: BrTriggerFilter(); BrTriggerFilter(const Char_t* name, const Char_t* title); virtual void AddTrigger(UInt_t triggerBit); virtual void RemoveTrigger(UInt_t triggerBit); virtual void SetTrigger(UInt_t triggerBit, Bool_t on = kTRUE); virtual Bool_t GetTrigger(UInt_t triggerBit) const; virtual void DefineHistograms(); virtual void Init(); virtual void Begin(); virtual void Event(BrEventNode* input, BrEventNode*); virtual void End(); virtual void Finish(); virtual void Print(Option_t* option="B") const; ClassDef(BrTriggerFilter,0) // A trigger filter } ; #endif // // $Log: BrTriggerFilter.h,v $ // Revision 1.2 2001/12/14 15:38:51 cholm // Added some statistics output to finish, and some extra doc. // // Revision 1.1.1.1 2001/06/21 14:55:14 hagel // Initial revision of brat2 // // Revision 1.2 2001/03/07 12:13:13 cholm // Changed Info to Print. // // Revision 1.1 2001/01/19 16:33:37 cholm // Added the class BrTriggerFilter, which is a filter to select events with // only a specific set of events, as defined by user. This is a module, so it // can go in the regular module pipeline, probably just after the input module. // //