Updating macro to check the various methods of the AliMUONMCDataInterface
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSDigitizer.h
CommitLineData
990119d6 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
88cb7938 6
990119d6 7/* $Id$ */
8
702ab87e 9/* History of cvs commits:
10 *
11 * $Log$
c65c502a 12 * Revision 1.29 2007/10/10 09:05:10 schutz
13 * Changing name QualAss to QA
14 *
b8274834 15 * Revision 1.28 2007/09/30 17:08:20 schutz
16 * Introducing the notion of QA data acquisition cycle (needed by online)
17 *
5b188f2f 18 * Revision 1.27 2007/08/07 14:12:03 kharlov
19 * Quality assurance added (Yves Schutz)
20 *
ddd1a39c 21 * Revision 1.26 2006/08/28 10:01:56 kharlov
22 * Effective C++ warnings fixed (Timur Pocheptsov)
23 *
3663622c 24 * Revision 1.25 2005/11/30 18:56:26 schutz
25 * Small corrections to fix compilation errors
26 *
0a81ea53 27 * Revision 1.24 2005/05/28 14:19:05 schutz
28 * Compilation warnings fixed by T.P.
29 *
702ab87e 30 */
31
990119d6 32//_________________________________________________________________________
33// Task Class for making SDigits in PHOS
baef0810 34// A Summable Digits is the sum of all hits originating
35// from one primary in one active cell
36//*--
990119d6 37//*-- Author: Dmitri Peressounko(SUBATECH & KI)
38
39
40// --- ROOT system ---
41#include "TTask.h"
0a81ea53 42#include "AliConfig.h"
bdc147a9 43class TFile ;
3e357865 44
0a81ea53 45
990119d6 46// --- Standard library ---
47
48// --- AliRoot header files ---
c65c502a 49//class AliPHOSQADataMaker ;
990119d6 50
51class AliPHOSSDigitizer: public TTask {
52
53public:
54 AliPHOSSDigitizer() ; // ctor
e191bb57 55 AliPHOSSDigitizer(const char * alirunFileName, const char * eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
ddd1a39c 56 AliPHOSSDigitizer(const AliPHOSSDigitizer& sd) ;
57 AliPHOSSDigitizer& operator = (const AliPHOSSDigitizer& sd) ;
3663622c 58
797e311f 59 virtual ~AliPHOSSDigitizer(); // dtor
990119d6 60
88cb7938 61 Float_t Calibrate(Int_t amp)const {return (amp - fA)/fB ; }
62 Int_t Digitize(Float_t Energy)const { return (Int_t ) ( fA + Energy*fB); }
fbf811ec 63 virtual void Exec(Option_t *option);
17323043 64 Int_t GetSDigitsInRun() const {return fSDigitsInRun ;}
702ab87e 65 virtual void Print(const Option_t * = "") const ;
88cb7938 66 void SetEventFolderName(TString name) { fEventFolderName = name ; }
212d1c0f 67 void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
88cb7938 68
106fc2fa 69 Bool_t operator == (const AliPHOSSDigitizer & sd) const ;
ddd1a39c 70
71
7acf6008 72private:
c65c502a 73// AliPHOSQADataMaker * GetQADataMaker() const { return fQADM ; }
ddd1a39c 74
7acf6008 75 void Init() ;
8d0f3f77 76 void InitParameters() ;
7acf6008 77 void PrintSDigits(Option_t * option) ;
88cb7938 78 void Unload() const ;
79
990119d6 80
81private:
7b7c1533 82 Float_t fA ; // Pedestal parameter
83 Float_t fB ; // Slope Digitizition parameters
990119d6 84 Float_t fPrimThreshold ; // To store primari if Elos > threshold
fbf811ec 85 Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
88cb7938 86 TString fEventFolderName; // event folder name
87 Bool_t fInit ; //! tells if initialisation wennt OK, will revent exec if not
fbf811ec 88 Int_t fSDigitsInRun ; //! Total number of sdigits in one run
212d1c0f 89 Int_t fFirstEvent; // first event to process
90 Int_t fLastEvent; // last event to process
5b188f2f 91
c65c502a 92// AliPHOSQADataMaker * fQADM ; //!Quality Assurance Data Maker
93// static const Int_t fgkCycles = 9999 ; // QA data accumulation cycle
990119d6 94
5b188f2f 95 ClassDef(AliPHOSSDigitizer,4) // description
990119d6 96
97};
98
99#endif // AliPHOSSDigitizer_H