]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PHOS/AliPHOSSDigitizer.h
Removing useless const to avoid warnings on alphacxx6
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSDigitizer.h
... / ...
CommitLineData
1#ifndef ALIPHOSSDigitizer_H
2#define ALIPHOSSDigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7/* $Id$ */
8
9/* History of cvs commits:
10 *
11 * $Log$
12 */
13
14//_________________________________________________________________________
15// Task Class for making SDigits in PHOS
16// A Summable Digits is the sum of all hits originating
17// from one primary in one active cell
18//*--
19//*-- Author: Dmitri Peressounko(SUBATECH & KI)
20
21
22// --- ROOT system ---
23#include "TTask.h"
24class TFile ;
25
26// --- Standard library ---
27
28// --- AliRoot header files ---
29
30class AliPHOSSDigitizer: public TTask {
31
32public:
33 AliPHOSSDigitizer() ; // ctor
34 AliPHOSSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
35 AliPHOSSDigitizer(const AliPHOSSDigitizer & sd) ; // cpy ctor
36 virtual ~AliPHOSSDigitizer(); // dtor
37
38 Float_t Calibrate(Int_t amp)const {return (amp - fA)/fB ; }
39 Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); }
40 virtual void Exec(Option_t *option);
41 Int_t GetSDigitsInRun() const {return fSDigitsInRun ;}
42 virtual void Print(const Option_t * = "") const ;
43 void SetEventFolderName(TString name) { fEventFolderName = name ; }
44 void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
45
46 Bool_t operator == (const AliPHOSSDigitizer & sd) const ;
47 AliPHOSSDigitizer & operator = (const AliPHOSSDigitizer & /*sd*/) {return *this ;}
48
49private:
50 void Init() ;
51 void InitParameters() ;
52 void PrintSDigits(Option_t * option) ;
53 void Unload() const ;
54
55
56private:
57 Float_t fA ; // Pedestal parameter
58 Float_t fB ; // Slope Digitizition parameters
59 Float_t fPrimThreshold ; // To store primari if Elos > threshold
60 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
61 TString fEventFolderName; // event folder name
62 Bool_t fInit ; //! tells if initialisation wennt OK, will revent exec if not
63 Int_t fSDigitsInRun ; //! Total number of sdigits in one run
64 Int_t fFirstEvent; // first event to process
65 Int_t fLastEvent; // last event to process
66
67 ClassDef(AliPHOSSDigitizer,3) // description
68
69};
70
71#endif // AliPHOSSDigitizer_H