// -*- mode: c++ -*- // // $Id: BrScalerHistModule.h,v 1.1 2002/08/30 17:07:07 hagel Exp $ // $Author: hagel $ // $Date: 2002/08/30 17:07:07 $ // $Copyright: 2000 BRAHMS Collaboration // #ifndef BRAT_BrScalerHistModule #define BRAT_BrScalerHistModule #ifndef BRAT_BrModule #include "BrModule.h" #endif class TH1F; class BrScalerHistModule : public BrModule { public: BrScalerHistModule(); BrScalerHistModule(const Char_t* name, const Char_t* title); enum EMode { k2001AuAu = 1, k2001pp = 2 }; void Init(); void DefineHistograms(); void Event(BrEventNode* input, BrEventNode*); void Finish(); void Print(Option_t* option="B") const; void SetMode(EMode mode=k2001AuAu) {fMode = mode;} private: TString fScalerNames[16]; TH1F* hRate[16]; //! Scaler Rates TH1F *hMrsOverInel; //! Trig 3 over trig 5 TH1F *hFsOverInel; //! Trig 6 over trig 5 Int_t fPreviousScaler[16]; Double_t fFirstScaler[16]; Bool_t fInit; Float_t fLastTicNo; Float_t fFirstTicNo; EMode fMode; public: ClassDef(BrScalerHistModule,0) // A vertex filter } ; #endif // // $Log: BrScalerHistModule.h,v $ // Revision 1.1 2002/08/30 17:07:07 hagel // Initial revision //