]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSDigitizer.h
add a data member to count the number of produced objects by run
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigitizer.h
CommitLineData
990119d6 1#ifndef ALIPHOSDigitizer_H
2#define ALIPHOSDigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// Task Class for making SDigits in PHOS
baef0810 10// Class performs digitization of Summable digits (in the PHOS case this is just
11// sum of contributions of all primary particles into given cell).
12// In addition it performs mixing of summable digits from different events.
990119d6 13//
14//*-- Author: Dmitri Peressounko(SUBATECH & KI)
15
16
17// --- ROOT system ---
18#include "TTask.h"
eb6c38ee 19#include "TObjString.h"
8cb3533f 20class TArrayI ;
990119d6 21// --- Standard library ---
22
23// --- AliRoot header files ---
990119d6 24class AliPHOSSDigitizer ;
25
8cb3533f 26
990119d6 27class AliPHOSDigitizer: public TTask {
28
29public:
30 AliPHOSDigitizer() ; // ctor
7b7c1533 31 AliPHOSDigitizer(const char *headerFile, const char * name = "No Name") ;
baef0810 32 AliPHOSDigitizer(const AliPHOSDigitizer & dtizer) {( (AliPHOSDigitizer &)dtizer ).Copy(*this) ;} // cpy ctor
990119d6 33 virtual ~AliPHOSDigitizer() ;
8cb3533f 34
7b7c1533 35 void Digitize(const Int_t event) ; // Make Digits from SDigits
8cb3533f 36 void Exec(Option_t *option); // Supervising method
37
7b7c1533 38 const Float_t GetCPVNoise() const { return fCPVNoise ;}
39 const Float_t GetCPVThreshold() const { return fCPVDigitThreshold ;}
2b60655b 40 const Int_t GetDigitsInRun() const { return fDigitsInRun ;}
7b7c1533 41 const Float_t GetEMCThreshold() const { return fEMCDigitThreshold;}
42 const Float_t GetPedestal() const { return fPedestal; }
43 const Float_t GetPinNoise() const { return fPinNoise;}
44 const Float_t GetPPSDNoise() const { return fPPSDNoise ;}
45 const Float_t GetPPSDThreshold()const { return fPPSDDigitThreshold ;}
46 const Float_t GetSlope() const { return fSlope; }
47 // const TArrayI * GetCurrentEvents()const { return fIevent ;}
48
49 void MixWith(const char* HeaderFile) ; // Add another one file to mix
8cb3533f 50 virtual void Print(Option_t* option)const ;
51 void Reset() ; //restarts starts event processing from 0 event(s)
52
990119d6 53 void SetCPVNoise(Float_t CPVNoise) {fCPVNoise = CPVNoise;}
54 void SetCPVThreshold(Float_t CPVThreshold) {fCPVDigitThreshold= CPVThreshold;}
8cb3533f 55 void SetEMCThreshold(Float_t EMCThreshold) {fEMCDigitThreshold = EMCThreshold;}
56 void SetPinNoise(Float_t PinNoise ) {fPinNoise = PinNoise;}
990119d6 57 void SetPPSDNoise(Float_t PPSDNoise) {fPPSDNoise = PPSDNoise;}
58 void SetPPSDThreshold(Float_t PPSDThreshold){fPPSDDigitThreshold = PPSDThreshold;}
59
8cb3533f 60 void SetSDigitsBranch(const char* file) ;
61
baef0810 62 AliPHOSDigitizer & operator = (const AliPHOSDigitizer & rvalue) {
63 // assignement operator requested by coding convention but not needed
64 abort() ;
65 return *this ;
66 }
67
990119d6 68private:
7b7c1533 69 void Init() ;
8cb3533f 70 void PrintDigits(Option_t * option) ;
7b7c1533 71 Bool_t ReadSDigits(Int_t evt) ; // Read sdigits for particular events
72 void WriteDigits(Int_t evt) ; // Writes Digits for particular event
990119d6 73
74private:
990119d6 75
8cb3533f 76 Float_t fPedestal ; // Calibration parameters
77 Float_t fSlope ; // read from SDigitizer
78
990119d6 79 Float_t fPinNoise ; // Electronics noise in EMC
80 Float_t fEMCDigitThreshold ; // Threshold for storing digits in EMC
81 Float_t fCPVNoise ; // Noise in CPV
82 Float_t fCPVDigitThreshold ; // Threshold for storing digits in CPV
83 Float_t fPPSDNoise ; // Noise in PPSD
84 Float_t fPPSDDigitThreshold ; // Threshold for storing digits in PPSD
2b60655b 85 Int_t fDigitsInRun ; //! Total number of digits in one run
990119d6 86
87
88 ClassDef(AliPHOSDigitizer,1) // description
89
90};
91
92
93#endif // AliPHOSDigitizer_H