// -*- mode: c++ -*- // $Id: BrSiDigModule.h,v 1.8 2002/04/22 16:58:36 cholm Exp $ // #ifndef BRAT_BrSiDigModule_h #define BRAT_BrSiDigModule_h #ifndef BRAT_BrModule #include "BrModule.h" #endif #ifndef BRAT_BrDetectorVolume #include "BrDetectorVolume.h" #endif #ifndef BRAT_BrSiParameters #include "BrSiParameters.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef BRAT_BrMultCalibration #include "BrMultCalibration.h" #endif #ifndef ROOT_TH2 #include "TH2.h" #endif class BrSiDigModule : public BrModule { protected: #ifdef BR_MULT_CAL_TMP BrMultTmpCalibration* fCalibration; #else BrMultCalibration* fCalibration; #endif Bool_t fUseCalibrations; // BrDetectorVolume* fVolumeParams; //! volume information BrSiParameters* fDetectorParams; //! parameter information Int_t GeantFERATable[36]; // hole the channel // conversion number from Geant to Raw data fie forat TH2D* fSingleVsHits; TH2D* fSingleVsEnergy; TH2D* fSingleVsEnergyPerHit; TH2D* fSingleVsAdc; TH2D* fSingleVsAdcPerHit; public: BrSiDigModule(void); BrSiDigModule(const Char_t *Name, const Char_t *Title); virtual ~BrSiDigModule(void); // // Methods // virtual void DefineHistograms(); virtual void Init(void); virtual void Event(BrEventNode* inputTable, BrEventNode* outputTable); virtual void UseCalibrations(Bool_t use=kFALSE) { fUseCalibrations = use; } virtual BrSiParameters* GetSiParameters() const { return fDetectorParams;} virtual BrDetectorVolume* GetDetectorVolume() const { return fVolumeParams;} BrDetectorVolume* DetectorVolume(){return fVolumeParams;} void ListDetectorParameters() const; void Print(Option_t* option="B") const; ClassDef(BrSiDigModule,0) // BRAHMS Mult Si digitization routine } ; #endif // BRAT_BrSiDigModule_h // // $Log: BrSiDigModule.h,v $ // Revision 1.8 2002/04/22 16:58:36 cholm // Some fixes for the modes using the calibrations rahter than // parameters. Also changed a lot of // // if (DebuLevel() > ...) // cout << .... // // to // // Debug(..., ..., ...) // // and similar for Info. // // Revision 1.7 2001/09/26 02:37:14 sanders // Modified to allow TmpCalibration // // Revision 1.6 2001/09/20 13:41:44 cholm // Removed the provisions for using temporary ASCII files altogther, // since they should not be used any more. // // Revision 1.5 2001/08/30 12:37:12 cholm // Added option to use calibration gains, pedestals, and so on, rather // than the ones in the ASCII parameter files. This is to make the // digitised data more closely resemple actual data. It gives much // better results, especially since the dual range ADC gab is simulated // too. // // Revision 1.4 2001/08/24 18:51:13 cholm // Made members protected, so class may reuse the code. // // Revision 1.3 2001/08/12 13:33:05 cholm // Changed CTOR prototype to comply with BrModule CTOR (const Char_t*'s instead // of just Char_t*'s). // // Revision 1.2 2001/08/10 15:48:27 cholm // Added histograms and state information // // Revision 1.1.1.1 2001/06/21 14:55:07 hagel // Initial revision of brat2 // // Revision 1.2 2001/03/07 12:20:03 cholm // * Made the method BrModule::Info() const obsolete in favour of // BrModule::Print(Option_t* option="B") const. // // Revision 1.1 2001/01/29 20:25:44 cholm // Renamed class BrDigitizeMultSi to BrSiDigModule to fit naming scheme. // //