// $Id: BrDigitizeTPC.h,v 1.3 1998/05/13 20:31:20 hagel Exp $ // $Log: BrDigitizeTPC.h,v $ // Revision 1.3 1998/05/13 20:31:20 hagel // Changes to compile under Solaris // // Revision 1.2 1998/04/01 22:10:58 hagel // Changes for adding local tracking // // Revision 1.1.1.1 1998/03/04 21:34:02 brahmlib // Brat tpc // // // #ifndef _BRDIGITIZETPC #define _BRDIGITIZETPC /////////////////////////////////////////////////////////////////////// // // // BrDigitizeTPC // // // // BRAHMS TPC digitization class - slow simulator // // // // TPhDetector manages information and operations related to the // // detector geometry // // // // Author : F.Videbaek // // Created : // // Version : 1.0 // // Changed : // // // /////////////////////////////////////////////////////////////////////// //ROOT Classes class TH1F; //Brat Classes // //#include "BratDefines.h" //#include "BrModule.h" class BrEventNode; class BrDetectorParamsTPC; class BrDetectorVolume; class BrDataTable; #include "BrModule.h" #define max_irow 20 class BrDigitizeTPC : public BrModule { public: // constructors and destructors // BrDigitizeTPC(); BrDigitizeTPC(Char_t *Name,Char_t *Title); virtual ~BrDigitizeTPC(); // // Methods // virtual void Init(); virtual void Event(BrEventNode* InputTable,BrEventNode* OutputTable); private: TH1F* d_Hhits; BrDetectorParamsTPC* fParams_p; BrDetectorVolume* fVolumeParams_p; BrDataTable *padres[max_irow]; public: virtual BrDetectorParamsTPC* GetDetectorParamsTPC(){ return fParams_p;} virtual BrDetectorVolume* GetDetectorVolume() const { return fVolumeParams_p;} virtual void SetDetectorVolume(BrDetectorVolume* vol){ fVolumeParams_p = vol;} void SetDetectorParamsTPC(BrDetectorParamsTPC* par); void SetDetectorParamsTPC(const BrDetectorParamsTPC& par); void ListDetectorParameters(); void BrDigitizeTPC::EventStatisticsStart(); void BrDigitizeTPC::EventStatisticsEnd(); void BrDigitizeTPC::ListEventStatistics(); // void SetDetectorParamsTPC(BrDetectorParamsTPC& par){(BrDetectorParamsTPC*)fParams_p=par;}; private: TStopwatch fTimer; Double_t fCpuTime; Int_t fNumGeantHits; Int_t fNumDigTPC; Int_t fNumTPCHit; ClassDef(BrDigitizeTPC,1) // BRAHMS TPC digitization routine }; #endif