// -*- mode: c++ -*- // // $Id: BrDigitizeBB.h,v 1.3 2001/09/14 11:25:07 trulsml Exp $ // #ifndef BRAT_BrDigitizeBB #define BRAT_BrDigitizeBB // // ROOT Classes // class TH1F; class TDirectory; // Brat Classes class BrEventNode; //class BrDetectorParamsBB; class BrDetectorVolume; #ifndef BRAT_BrDetectorParamsBB #include "BrDetectorParamsBB.h" #endif #ifndef BRAT_BrModule # include "BrModule.h" #endif class BrDigitizeBB : public BrModule { public: // constructors and destructors // BrDigitizeBB(); BrDigitizeBB(const Char_t *Name, const Char_t *Title); virtual ~BrDigitizeBB(); // // Methods // virtual void Init(); virtual void Event(BrEventNode* InputTable, BrEventNode* OutputTable); virtual void DefineHistograms(); private: BrDetectorVolume* fVolumeParamsBB_p; // pointer to volume information BrDetectorParamsBB* fParamsBB_p; // pointer to parameter information private: void SetDetectorParamsBB(BrDetectorParamsBB* par); void SetDetectorParamsBB(const BrDetectorParamsBB& par); TDirectory* hdir; //!Histogram directory TH1F** hltdc; //!TDC spectra of left tubes ([0]=all) TH1F** hladc; //!ADC spectra of left tubes TH1F** hpladc; //!ADC primary spectra of left tubes TH1F** hrtdc; //!TDC spectra of right tubes TH1F** hradc; //!ADC spectra of right tubes TH1F** hpradc; //!ADC primary spectra of right tubes TH1F* hlhits; //!Hits per event (left tubes) TH1F* hltubes; //!Tubes hit per event (left tubes) TH1F* hrhits; //!Hits per event (right tubes) TH1F* hrtubes; //!Tubes hit per event (right tubes) public: virtual BrDetectorParamsBB* GetDetectorParamsBB() const { return (BrDetectorParamsBB*) fParamsBB_p;} virtual BrDetectorVolume* GetDetectorVolume() const { return fVolumeParamsBB_p;} BrDetectorVolume* DetectorVolume(){return fVolumeParamsBB_p;} // virtual void SetDetectorVolume(BrDetectorVolume* vol){ fVolumeParamsBB_p = vol;} void ListDetectorParameters() const; void Print(Option_t* option="B") const; public: // ClassDef(BrDigitizeBB,0) // BRAHMS Beam Beam digitization routine }; #endif //////////////////////////////////////////////////////// // // // $Log: BrDigitizeBB.h,v $ // Revision 1.3 2001/09/14 11:25:07 trulsml // Changed class version number from 1 to 0. // // Revision 1.2 2001/08/12 13:32:54 cholm // Changed CTOR prototype to comply with BrModule CTOR (const Char_t*'s instead // of just Char_t*'s). // // Revision 1.1.1.1 2001/06/21 14:55:06 hagel // Initial revision of brat2 // // Revision 1.11 2001/03/07 12:16:35 cholm // * Made the method BrModule::Info() const obsolete in favour of // BrModule::Print(Option_t* option="B") const. // // Revision 1.10 2001/01/17 02:09:12 hagel // Change to make work with BRAT v2 // // Revision 1.9 2000/09/23 19:15:53 videbaek // Improved histograms for looking in details at digitization. // // Revision 1.8 1999/04/01 22:21:30 videbaek // Changed to use BrParameterDbManager for parameters. // See BrDigitize.cxx for additional comments // // Revision 1.7 1999/01/21 23:23:21 hagel // 1. Changed convention for checking includes. Current convention is: // BRAT_Br...... eg BRAT_BrModule ala ROOT. // 2. Added CVS logs to .h files that didn't have them. // 3. Moved checking of include definition to first line for easier reading // 4. Put checks before all includes in the include files as per BRAT specifications // 5. Added BrGeantHeader to Geant Makefile // 6. All changes have been checked to compile on NT ala Cygnus // // Revision 1.6 1999/01/15 15:33:24 videbaek // Small updates for digitize // Made BrRdoModule functional. // // Revision 1.5 1998/09/17 16:16:30 videbaek // Removed Mass() static fct from BrDigitizeBB // // Revision 1.4 1998/08/21 19:49:52 videbaek // Include guards was TOF not BB // // Revision 1.3 1998/07/28 21:29:12 videbaek // several fixes to BB // // Revision 1.2 1998/07/27 16:26:59 videbaek // Stat on modifiing BB - not complete // ////////////////////////////////////////////////////////////////////////////