X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALSDigitizer.h;h=c53129e37b6551b5c6e85821faefc60955e469f6;hb=7d6880f2c549805cf3f102af55f41ff4480d544c;hp=9c88d82078e26cbc52f176f733d8b116202f16ae;hpb=e44d51bd90cd986df876ac6a123585717f3e84d4;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALSDigitizer.h b/EMCAL/AliEMCALSDigitizer.h index 9c88d82078e..c53129e37b6 100644 --- a/EMCAL/AliEMCALSDigitizer.h +++ b/EMCAL/AliEMCALSDigitizer.h @@ -4,7 +4,7 @@ * See cxx source for full Copyright notice */ /* $Id$ */ //_________________________________________________________________________ -// This is a TTask that makes SDigits out of Hits +// This is a class that makes SDigits out of Hits // A Summable Digits is the sum of all hits originating // from one in one tower of the EMCAL // A threshold for assignment of the primary to SDigit is applied @@ -20,7 +20,7 @@ //_________________________________________________________________________ // --- ROOT system --- -#include "TTask.h" +#include "TNamed.h" class TBrowser; // --- Standard library --- @@ -28,18 +28,19 @@ class TBrowser; // --- AliRoot header files --- #include "AliConfig.h" -class AliEMCALSDigitizer: public TTask { +class AliEMCALSDigitizer: public TNamed { public: AliEMCALSDigitizer() ; // ctor AliEMCALSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ; AliEMCALSDigitizer(const AliEMCALSDigitizer & sd) ; + AliEMCALSDigitizer& operator = (const AliEMCALSDigitizer& source) ; virtual ~AliEMCALSDigitizer(); // dtor Float_t Digitize(Float_t energy)const; //convert energy in GeV to int amplitude Float_t Calibrate(Float_t amp)const; //opposite of Digitize() - virtual void Exec(Option_t *option); + virtual void Digitize(Option_t *option=""); Int_t GetSDigitsInRun() const {return fSDigitsInRun ;} virtual void Print(Option_t *option="") const; void Print1(Option_t *option="all"); // *MENU* @@ -47,7 +48,6 @@ public: void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; } Bool_t operator == (const AliEMCALSDigitizer & sd) const ; - const AliEMCALSDigitizer & operator = (const AliEMCALSDigitizer & /*sd*/) {return *this ;} virtual void Browse(TBrowser* b); @@ -61,7 +61,7 @@ private: Float_t fA ; // Pedestal parameter Float_t fB ; // Slope Digitizition parameters Float_t fECPrimThreshold ; // To store primary if EC Shower Elos > threshold - Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized) + Bool_t fDefaultInit; //! Says if the object was created by defaut ctor (only parameters are initialized) TString fEventFolderName; // event folder name Bool_t fInit ; //! tells if initialisation went OK, will revent exec if not Int_t fSDigitsInRun ; //! Total number of sdigits in one run @@ -70,7 +70,7 @@ private: Float_t fSampling; // See AliEMCALGeometry TClonesArray* fHits; //-> Temporal array with hits - ClassDef(AliEMCALSDigitizer,7) // description + ClassDef(AliEMCALSDigitizer,8) // description }; #endif // AliEMCALSDIGITIZER_H