]>
Commit | Line | Data |
---|---|---|
52c19022 | 1 | #ifndef ALITRDGTUSIM_H |
2 | #define ALITRDGTUSIM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliTRDgtuSim.h 27496 2008-07-22 08:35:45Z cblume $ */ | |
7 | ||
8 | // -------------------------------------------------------- | |
5f006bd7 | 9 | // |
52c19022 | 10 | // GTU simulation |
11 | // | |
12 | // -------------------------------------------------------- | |
13 | ||
14 | #include "TObject.h" | |
15 | ||
16 | class AliRunLoader; | |
17 | class AliLoader; | |
18 | class AliESDEvent; | |
19 | ||
20 | class AliTRDgtuTMU; | |
c1ad4629 | 21 | class AliTRDfeeParam; |
52c19022 | 22 | class TTree; |
23 | class TList; | |
24 | ||
25 | class AliTRDgtuSim : public TObject { | |
26 | public: | |
27 | AliTRDgtuSim(AliRunLoader *rl = 0x0); | |
28 | ~AliTRDgtuSim(); | |
29 | ||
36dc3337 | 30 | Bool_t LoadTracklets(AliLoader * const loader); |
44eafcf2 | 31 | Bool_t LoadTracklets(const AliESDEvent * const esd); |
52c19022 | 32 | |
33 | Bool_t RunGTU(AliLoader *loader, AliESDEvent *esd = 0x0); | |
34 | Bool_t RunGTUFromTrackletFile(TString filename, Int_t event, Int_t noev = 1); | |
35 | ||
36 | TTree* GetTreeOfTracks() { return fTrackTree; } | |
5f006bd7 | 37 | Bool_t WriteTracksToTree(TList *listOfTracks, Int_t event = 0); |
36dc3337 | 38 | Bool_t WriteTracksToDataFile(TList *listOfTracks, Int_t event); |
39 | Bool_t WriteTreesToFile() const; | |
40 | Bool_t WriteTracksToESD(const TList *const listOfTracks, AliESDEvent *esd); | |
2cf67435 | 41 | Bool_t WriteTracksToLoader(const TList *const listOfTracks); |
52c19022 | 42 | |
43 | protected: | |
44 | AliRunLoader *fRunLoader; //! | |
c1ad4629 | 45 | AliTRDfeeParam *fFeeParam; //! |
52c19022 | 46 | AliTRDgtuTMU *fTMU; // pointer to TMU simulation class |
47 | TClonesArray *fTrackletArray; // array of tracklets | |
48 | TTree *fTrackTree; // tree to hold the tracks of one event, used for writing in WriteTracksToFile() | |
49 | TTree *fTrackletTree; // tree to hold the gtu tracklets | |
50 | ||
44eafcf2 | 51 | void AppendBits(ULong64_t &word, Int_t nBits, Int_t val) const { word = (word << nBits) | (val & ~(~0 << nBits)); } |
52 | ||
52c19022 | 53 | private: |
54 | AliTRDgtuSim& operator=(const AliTRDgtuSim &rhs); // not implemented | |
55 | AliTRDgtuSim(const AliTRDgtuSim &rhs); // not implemented | |
56 | ||
57 | ClassDef(AliTRDgtuSim, 1); | |
58 | }; | |
59 | ||
60 | #endif |