X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALSDigitizer.h;h=a4a979ce07a98abfa11d5363b36bc7974332ea9a;hb=b50ba418f8ad3dd5a7ab0a1b265cbfcebeaf02f1;hp=24acce0f8246965e91523454b66560c0136ad667;hpb=62741b41ca9a389bc9e3f6f650f6bf8df5bfb125;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALSDigitizer.h b/EMCAL/AliEMCALSDigitizer.h index 24acce0f824..a4a979ce07a 100644 --- a/EMCAL/AliEMCALSDigitizer.h +++ b/EMCAL/AliEMCALSDigitizer.h @@ -12,43 +12,41 @@ // // Modif: // August 2002 Yves Schutz: clone PHOS as closely as possible and intoduction -// of new IO (à la PHOS) +// July 2003 Yves Schutz: new IO (à la PHOS) // --- ROOT system --- #include "TTask.h" -#include "TString.h" +class TFile ; + // --- Standard library --- // --- AliRoot header files --- +#include "AliConfig.h" class AliEMCALSDigitizer: public TTask { public: AliEMCALSDigitizer() ; // ctor - AliEMCALSDigitizer(const char* headerFile,const char* hdigitsTitle = "Default", const Bool_t toSplit = kFALSE) ; - virtual ~AliEMCALSDigitizer() ; // dtor + AliEMCALSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::fgkDefaultEventFolderName) ; + AliEMCALSDigitizer(const AliEMCALSDigitizer & sd) ; + virtual ~AliEMCALSDigitizer() {;} // dtor - Float_t Calibrate(Int_t amp)const {return (amp - fA)/fB ; } - Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); } + Float_t Calibrate(Int_t amp)const {return (amp - fA)/fB ; } + Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); } virtual void Exec(Option_t *option); - const char * GetSDigitsBranch()const{return GetName();} - const Int_t GetSDigitsInRun() const {return fSDigitsInRun ;} - const Float_t GetPedestalParameter()const {return fA;} - const Float_t GetCalibrationParameter()const{return fB;} - virtual void Print(Option_t* option) const ; - void SetSDigitsBranch(const char * title ) ; - void SetPedestalParameter(Float_t A){fA = A ;} - void SetSlopeParameter(Float_t B){fB = B ;} - void UseHitsFrom(const char * filename) ; + Int_t GetSDigitsInRun() const {return fSDigitsInRun ;} + virtual void Print() const ; + void SetEventFolderName(TString name) { fEventFolderName = name ; } + Bool_t operator == (const AliEMCALSDigitizer & sd) const ; -// const Int_t Segment2TowerID(Int_t SegmentID){ -// return Layer2TowerID(SegmentID,0); -// } + const AliEMCALSDigitizer & operator = (const AliEMCALSDigitizer & /*sd*/) {return *this ;} + private: void Init() ; void InitParameters() ; void PrintSDigits(Option_t * option) ; + void Unload() const ; private: Float_t fA ; // Pedestal parameter @@ -57,11 +55,11 @@ private: Float_t fECPrimThreshold ; // To store primary if EC Shower Elos > threshold Float_t fHCPrimThreshold ; // To store primary if HC Shower Elos > threshold Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized) + TString fEventFolderName; // event folder name + Bool_t fInit ; //! tells if initialisation wennt OK, will revent exec if not Int_t fSDigitsInRun ; //! Total number of sdigits in one run - TFile * fSplitFile ; //! file in which SDigits will eventually be stored - Bool_t fToSplit ; //! Says that sigits should be written into splip file - ClassDef(AliEMCALSDigitizer,4) // description + ClassDef(AliEMCALSDigitizer,5) // description };