alignment of sensor wrt hybrid is now allowed (fgkSSDModulVerticalDisalignement)...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRawDigiProducer.h
CommitLineData
88fb5e50 1#ifndef ALIPHOSRAWDIGIPRODUCER_H
2#define ALIPHOSRAWDIGIPRODUCER_H
7bc140a5 3/* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//This class produces PHOS digits of one event
9//using AliPHOSRawDecoder. See cxx source for use case.
88fb5e50 10
11class AliPHOSRawDecoder;
30331de9 12class AliPHOSCalibData ;
13class AliPHOSDigit ;
14class AliPHOSRecoParam ;
15class AliPHOSGeometry ;
16#include "TObject.h"
88fb5e50 17
30331de9 18class AliPHOSRawDigiProducer: public TObject {
88fb5e50 19
20public:
21
30331de9 22 AliPHOSRawDigiProducer() ;
23 AliPHOSRawDigiProducer(const AliPHOSRecoParam* parEmc, const AliPHOSRecoParam* parCpv) ;
24 AliPHOSRawDigiProducer(const AliPHOSRawDigiProducer &dp);
25 AliPHOSRawDigiProducer& operator= (const AliPHOSRawDigiProducer &dp);
26
88fb5e50 27 virtual ~AliPHOSRawDigiProducer() {}
28
7bc140a5 29 void MakeDigits(TClonesArray *digits, AliPHOSRawDecoder* decoder);
88fb5e50 30
30331de9 31protected:
32
33 void GetCalibrationParameters() ; //Extract calibration parameters from DB
34 void CleanDigits(TClonesArray* digits) ; //remove digits below threshold and bad ones
35
36 Bool_t IsInEMC(AliPHOSDigit* digit) const ; //tests if digit belongs to EMC
37 Bool_t IsInCPV(AliPHOSDigit* digit) const ;
38
39 Double_t CalibrateE(Double_t amp, Int_t* relId, Bool_t isLowGain) ; //calibrate energy
40 Double_t CalibrateT(Double_t amp, Int_t* relId, Bool_t isLowGain) ; //calibrate time
41
42private:
43 Float_t fEmcMinE ; // minimum energy of digit to be included into cluster
44 Float_t fCpvMinE ; // minimum energy of digit to be included into cluster
45
46 Int_t fEmcCrystals ; // number of EMC crystalls
47 AliPHOSGeometry * fGeom ; //! PHOS geometry
48 static AliPHOSCalibData * fgCalibData ; //! Calibration database if aval.
49
50 ClassDef(AliPHOSRawDigiProducer,2)
88fb5e50 51};
52
53#endif