]>
Commit | Line | Data |
---|---|---|
d810d0de | 1 | // $Id$ |
2 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 | |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
5a5a1232 | 9 | |
a15e6d7d | 10 | #ifndef AliEveVSDCreator_H |
11 | #define AliEveVSDCreator_H | |
5a5a1232 | 12 | |
84aff7a4 | 13 | #include <TEveVSD.h> |
5a5a1232 | 14 | |
5a5a1232 | 15 | #include <map> |
16 | ||
a15e6d7d | 17 | class AliTPCParam; |
18 | class AliRunLoader; | |
5a5a1232 | 19 | |
d810d0de | 20 | class AliEveVSDCreator : public TEveVSD |
5a5a1232 | 21 | { |
5a5a1232 | 22 | public: |
d810d0de | 23 | AliEveVSDCreator(const Text_t* name="AliEveVSDCreator", const Text_t* title=""); |
24 | virtual ~AliEveVSDCreator() {} | |
5a5a1232 | 25 | |
8cc1d3b4 | 26 | void CreateVSD(const Text_t* vsdFile); |
5a5a1232 | 27 | |
28 | void CreateTrees(); | |
29 | ||
30 | // -------------------------------------------------------------- | |
31 | // Conversion functions. | |
32 | ||
33 | void ConvertKinematics(); | |
34 | void ConvertHits(); | |
35 | void ConvertClusters(); | |
36 | void ConvertTPCClusters(); | |
37 | void ConvertITSClusters(); | |
38 | void ConvertV0(); | |
39 | void ConvertKinks(); | |
40 | void ConvertRecTracks(); | |
41 | void ConvertGenInfo(); | |
42 | ||
43 | // -------------------------------------------------------------- | |
5a5a1232 | 44 | |
73c1c0ec | 45 | Int_t GetDebugLevel() const { return fDebugLevel; } |
46 | void SetDebugLevel(Int_t dl) { fDebugLevel = dl; } | |
5a5a1232 | 47 | |
4b456ebb | 48 | protected: |
49 | void MakeItsDigitsInfo(); | |
50 | TEveMCRecCrossRef* GetGeninfo(Int_t label); | |
4b456ebb | 51 | |
52 | Float_t fTPCHitRes; // Resolution for storing TPC hits. | |
53 | Float_t fTRDHitRes; // Resolution for storing TRD hits. | |
54 | ||
55 | Int_t fDebugLevel; // Internal debug level. | |
56 | ||
57 | AliRunLoader *fRunLoader; // Internal run-loader. | |
58 | ||
59 | std::map<Int_t, TEveMCRecCrossRef*> fGenInfoMap; // Map label to MC-Rec cross-ref data structure. | |
60 | ||
61 | private: | |
62 | AliEveVSDCreator(const AliEveVSDCreator&); // Not implemented | |
63 | AliEveVSDCreator& operator=(const AliEveVSDCreator&); // Not implemented | |
64 | ||
73c1c0ec | 65 | ClassDef(AliEveVSDCreator, 0); // Create VSD file from ALICE data. |
d810d0de | 66 | }; // endclass AliEveVSDCreator |
5a5a1232 | 67 | |
68 | #endif |