]>
Commit | Line | Data |
---|---|---|
38300302 | 1 | #ifndef ALIITSBEAMTESTDIGITIZER_H |
2 | #define ALIITSBEAMTESTDIGITIZER_H | |
3 | ||
4 | //////////////////////////////////////////////////// | |
5 | // Class to manage the // | |
6 | // ITS beam test conversion from rawdata // | |
7 | // to digits. It executes the digitization for // | |
8 | // SPD, SDD and SSD. // | |
9 | // Origin: E. Crescio crescio@to.infn.it // | |
10 | // J. Conrad Jan.Conrad@cern.ch // | |
11 | //////////////////////////////////////////////////// | |
12 | #include <TTask.h> | |
13 | ||
14 | class AliITSBeamTest; | |
15 | class AliITSBeamTestDigSDD; | |
16 | class AliRawReaderDate; | |
17 | class AliRunLoader; | |
18 | class AliITSLoader; | |
19 | class AliITS; | |
20 | class AliITSEventHeader; | |
21 | class AliRawDataHeader; | |
22 | ||
23 | class AliITSBeamTestDigitizer : public TTask { | |
24 | ||
25 | public: | |
26 | ||
27 | AliITSBeamTestDigitizer(); | |
28 | AliITSBeamTestDigitizer(const Text_t* name,const Text_t* title); | |
29 | AliITSBeamTestDigitizer(const Text_t* name,const Text_t* title, Int_t run); | |
30 | AliITSBeamTestDigitizer(const char* filename); | |
31 | AliITSBeamTestDigitizer(const AliITSBeamTestDigitizer& bt); | |
32 | AliITSBeamTestDigitizer& operator=(AliITSBeamTestDigitizer &bt); | |
33 | ||
34 | virtual ~AliITSBeamTestDigitizer(); | |
35 | ||
36 | void SetDigitsFileName(const TString& name) {fDigitsFileName=name;} | |
37 | void SetRawdataFileName(const TString& name) {fRawdataFileName=name;} | |
38 | void SetNumberOfEventsPerFile(Int_t nev); | |
39 | ||
40 | void SetStartEventNumber(Int_t evin) {fEvIn=evin;} | |
41 | void SetStopEventNumber(Int_t evfin) {fEvFin=evfin;} | |
42 | void SetFlagHeader(Bool_t flag=kFALSE){fFlagHeader=flag;} | |
43 | void SetFlagInit(Bool_t flag=kFALSE){fFlagInit=flag;} | |
44 | void SelectEvents(Int_t eventtype) {fDATEEvType=eventtype;} | |
45 | void SetBeamTestPeriod(BeamtestPeriod_t per=kNov04) {fPeriod=per;} | |
46 | void SetRunNumber(Int_t run) {fRunNumber=run;} | |
47 | ||
48 | void SetActive(const TString& subdet,Bool_t value); | |
49 | ||
50 | void ExecDigitization(); | |
51 | void Init(); | |
52 | ||
53 | Int_t GetRunNumber() const {return fRunNumber;} | |
54 | Bool_t GetFlagInit() const {return fFlagInit;} | |
55 | BeamtestPeriod_t GetBeamTestPeriod() const {return fPeriod;} | |
56 | ||
57 | ||
58 | protected: | |
59 | ||
60 | ||
61 | Int_t fEvIn; //starting event to be read | |
62 | Int_t fEvFin; //last event to be read | |
63 | Int_t fRunNumber; //run number | |
64 | Int_t fDATEEvType; //date eventtype (JC) | |
65 | ||
66 | Bool_t fFlagHeader; //flag for the hader | |
67 | Bool_t fFlagInit; //flag for initialization | |
68 | ||
69 | TString fDigitsFileName; //Digits file name | |
70 | TString fRawdataFileName; //Raw data file name | |
71 | BeamtestPeriod_t fPeriod; //Beam test period | |
72 | ||
73 | AliITSBeamTest* fBt; //! Local pointer to ITS beam test class. | |
74 | ||
75 | AliRunLoader* fRunLoader; // Local pointer to run loader | |
76 | AliITSLoader* fLoader; // Pointer to ITS loader | |
77 | ||
78 | const AliRawDataHeader* fHeader; //!current data header | |
79 | ||
80 | static const TString fgkDefaultDigitsFileName; // default name for dig. file | |
81 | ||
82 | ClassDef(AliITSBeamTestDigitizer,1) // An Alice SDD beam test digitization class | |
83 | ||
84 | }; | |
85 | ||
86 | ||
87 | #endif | |
88 | ||
89 |