For Pythia with tune don't switch off MI in ConfigHeavyFlavor
[u/mrichter/AliRoot.git] / ITS / AliITSBeamTestDigitizer.h
CommitLineData
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 //
5ba31760 11// //
12// The choice of the beam test period is by //
13// deafult Nov04 (Integrated ITS beam test of //
14// November 2004). To choose the SDD beam test //
15// of August 2004 call the constructor: //
16// AliITSBeamTestDigitizer("name","title","Aug04"//
17// //
38300302 18////////////////////////////////////////////////////
19#include <TTask.h>
20
5ba31760 21
38300302 22class AliITSBeamTestDigSDD;
23class AliRawReaderDate;
24class AliRunLoader;
25class AliITSLoader;
38300302 26class AliITSEventHeader;
27class AliRawDataHeader;
28
5ba31760 29
38300302 30class AliITSBeamTestDigitizer : public TTask {
31
32 public:
33
34 AliITSBeamTestDigitizer();
5ba31760 35 AliITSBeamTestDigitizer(const Text_t* name,const Text_t* title,
3db964b1 36 const Char_t* opt="Nov04",const char* filename="galice.root");
5ba31760 37 AliITSBeamTestDigitizer(const Text_t* name,const Text_t* title,
3db964b1 38 Int_t run, const Char_t* opt="Nov04",const char* filename="galice.root");
38300302 39 AliITSBeamTestDigitizer(const AliITSBeamTestDigitizer& bt);
5ba31760 40 AliITSBeamTestDigitizer& operator=(const AliITSBeamTestDigitizer &source);
38300302 41
42 virtual ~AliITSBeamTestDigitizer();
43
44 void SetDigitsFileName(const TString& name) {fDigitsFileName=name;}
45 void SetRawdataFileName(const TString& name) {fRawdataFileName=name;}
46 void SetNumberOfEventsPerFile(Int_t nev);
47
48 void SetStartEventNumber(Int_t evin) {fEvIn=evin;}
49 void SetStopEventNumber(Int_t evfin) {fEvFin=evfin;}
50 void SetFlagHeader(Bool_t flag=kFALSE){fFlagHeader=flag;}
51 void SetFlagInit(Bool_t flag=kFALSE){fFlagInit=flag;}
52 void SelectEvents(Int_t eventtype) {fDATEEvType=eventtype;}
53 void SetBeamTestPeriod(BeamtestPeriod_t per=kNov04) {fPeriod=per;}
54 void SetRunNumber(Int_t run) {fRunNumber=run;}
8ace09b6 55 void SetOptDate(Bool_t opt=kFALSE) {fOptDate=opt;}
38300302 56
57 void SetActive(const TString& subdet,Bool_t value);
58
59 void ExecDigitization();
7d62fb64 60 void Init(const char* filename);
38300302 61
62 Int_t GetRunNumber() const {return fRunNumber;}
63 Bool_t GetFlagInit() const {return fFlagInit;}
8ace09b6 64 Bool_t GetOptDate() const {return fOptDate;}
38300302 65 BeamtestPeriod_t GetBeamTestPeriod() const {return fPeriod;}
7d62fb64 66
38300302 67
68 protected:
69
70
71 Int_t fEvIn; //starting event to be read
72 Int_t fEvFin; //last event to be read
73 Int_t fRunNumber; //run number
74 Int_t fDATEEvType; //date eventtype (JC)
75
76 Bool_t fFlagHeader; //flag for the hader
77 Bool_t fFlagInit; //flag for initialization
8ace09b6 78 Bool_t fOptDate; //option for reading date format files
79 //(default: reads root files)
38300302 80
81 TString fDigitsFileName; //Digits file name
82 TString fRawdataFileName; //Raw data file name
83 BeamtestPeriod_t fPeriod; //Beam test period
84
38300302 85 AliRunLoader* fRunLoader; // Local pointer to run loader
86 AliITSLoader* fLoader; // Pointer to ITS loader
87
88 const AliRawDataHeader* fHeader; //!current data header
89
90 static const TString fgkDefaultDigitsFileName; // default name for dig. file
91
7d62fb64 92 ClassDef(AliITSBeamTestDigitizer,3) // An Alice SDD beam test digitization class
38300302 93
94 };
95
96
97#endif
98
99