]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Header$ |
2 | ||
3 | #ifndef ALIEVE_VSDCreator_H | |
4 | #define ALIEVE_VSDCreator_H | |
5 | ||
6 | #include <Reve/VSD.h> | |
7 | ||
8 | class AliTPCParam; | |
9 | class AliRunLoader; | |
10 | ||
11 | #include <map> | |
12 | ||
13 | namespace Alieve { | |
14 | ||
15 | class VSDCreator : public Reve::VSD | |
16 | { | |
265ecb21 | 17 | VSDCreator(const VSDCreator&); // Not implemented |
18 | VSDCreator& operator=(const VSDCreator&); // Not implemented | |
19 | ||
5a5a1232 | 20 | public: |
21 | enum KineType_e { KT_Standard, KT_ProtonProton }; | |
22 | ||
23 | protected: | |
24 | void MakeItsDigitsInfo(); | |
25 | Reve::GenInfo* GetGeninfo(Int_t label); | |
26 | AliTPCParam* GetTpcParam(const Reve::Exc_t& eh); | |
27 | ||
28 | KineType_e mKineType; // X{GS} 7 PhonyEnum() | |
29 | TString mDataDir; // X{G} | |
30 | Int_t mEvent; // X{G} | |
31 | ||
5a5a1232 | 32 | Float_t mTPCHitRes; // X{gs} |
265ecb21 | 33 | Float_t mTRDHitRes; // X{gs} |
5a5a1232 | 34 | |
35 | Int_t mDebugLevel; | |
36 | ||
37 | std::map<Int_t, Reve::GenInfo*> mGenInfoMap; //! | |
38 | ||
5a5a1232 | 39 | public: |
265ecb21 | 40 | VSDCreator(const Text_t* name="Alieve::VSDCreator", const Text_t* title=""); |
5a5a1232 | 41 | virtual ~VSDCreator() {} |
42 | ||
43 | void CreateVSD(const Text_t* data_dir, Int_t event, | |
44 | const Text_t* vsd_file); // X{Ed} | |
45 | ||
46 | void CreateTrees(); | |
47 | ||
48 | // -------------------------------------------------------------- | |
49 | // Conversion functions. | |
50 | ||
51 | void ConvertKinematics(); | |
52 | void ConvertHits(); | |
53 | void ConvertClusters(); | |
54 | void ConvertTPCClusters(); | |
55 | void ConvertITSClusters(); | |
56 | void ConvertV0(); | |
57 | void ConvertKinks(); | |
58 | void ConvertRecTracks(); | |
59 | void ConvertGenInfo(); | |
60 | ||
61 | // -------------------------------------------------------------- | |
62 | // Get/Set crap | |
63 | Int_t GetDebugLevel() const { return mDebugLevel; } | |
64 | void SetDebugLevel(Int_t dl) { mDebugLevel = dl; } | |
65 | ||
66 | // -------------------------------------------------------------- | |
67 | // Globals. | |
68 | ||
69 | AliRunLoader* pRunLoader; | |
70 | ||
71 | ClassDef(VSDCreator, 1); | |
72 | }; // endclass VSDCreator | |
73 | ||
74 | } | |
75 | ||
76 | #endif |