#ifndef EMCDIGIPAR_H #define EMCDIGIPAR_H #include "TObject.h" #include "CbmParSet.h" #include "fstream" class EmcDigiPar : public CbmParSet { protected: public: EmcDigiPar(const char* name="EmcDigiPar", const char* title="Emc Digitisation Parameters", const char* context="TestDefaultContext"); ~EmcDigiPar(); Int_t getSize() { return 0; } Bool_t init(CbmParIo* input); Int_t write(CbmParIo* output); void clear(); void printParam(); void readline(const char*, Int_t*); void readline(const char*,Int_t*,fstream *); void putAsciiHeader(TString&); Bool_t writeline(char*, Int_t, Int_t); // Accessors methods Double_t GetEnergyThresholdHit() {return eneThr;}; Int_t GetNBits() {return nBits;}; Double_t GetDetectedPhotonsPerMeV() {return detectedPhotonsPerMeV;}; Double_t GetEnergyRange() {return energyRange;}; //GeV Double_t GetExcessNoiseFactor() {return excessNoiseFactor;}; Double_t GetFirstSamplePhase () {return firstSamplePhase;}; Int_t GetNumber_of_samples_in_waveform () {return number_of_samples_in_waveform;}; Double_t GetShaping_diff_time() {return Shaping_diff_time;}; Double_t GetShaping_int_time() {return Shaping_int_time;}; Double_t GetCrystal_time_constant () {return crystal_time_constant;}; Double_t GetIncoherent_elec_noise_width_GeV() {return incoherent_elec_noise_width_GeV;}; Double_t GetSampleRate() {return sampleRate;}; Bool_t GetUse_shaped_noise() {return use_shaped_noise;}; Bool_t GetUse_photon_statistic() {return use_photon_statistic;}; Double_t GetThreshold () {return threshold;}; private: double eneThr, detectedPhotonsPerMeV,energyRange,excessNoiseFactor,firstSamplePhase,Shaping_diff_time,Shaping_int_time, crystal_time_constant,incoherent_elec_noise_width_GeV,sampleRate,threshold; int nBits,number_of_samples_in_waveform; bool use_shaped_noise, use_photon_statistic; ClassDef(EmcDigiPar,1) // Container for the Emc Digitisation parameters }; #endif /*!EMCDIGIPAR_H*/