]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveBase/AliEveVSDCreator.h
CMake: removing qpythia from the depedencies
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveVSDCreator.h
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          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #ifndef AliEveVSDCreator_H
11 #define AliEveVSDCreator_H
12
13 #include <TEveVSD.h>
14
15 #include <map>
16
17 class AliTPCParam;
18 class AliRunLoader;
19
20 class AliEveVSDCreator : public TEveVSD
21 {
22 public:
23   AliEveVSDCreator(const Text_t* name="AliEveVSDCreator", const Text_t* title="");
24   virtual ~AliEveVSDCreator() {}
25
26   void CreateVSD(const Text_t* vsdFile="AliVSD.root");
27
28   void CreateTrees();
29
30   // --------------------------------------------------------------
31   // Conversion functions.
32
33   void ConvertKinematics();
34
35   void ConvertHits();
36   void ConvertAnyHits(const TString& detector, const TString& clones_class,
37                       Int_t det_id, Float_t minDistSqr=0);
38   void ConvertTPCHits(Int_t det_id, Float_t minDistSqr=0);
39
40   void ConvertClusters();
41   void ConvertAnyClusters(const TString& detector, const TString& branch_name,
42                           Int_t det_id);
43   void ConvertTPCClusters(Int_t det_id);
44
45   void ConvertRecTracks();
46
47   void ConvertV0();
48   void ConvertKinks();
49
50   void ConvertGenInfo();
51
52   // --------------------------------------------------------------
53
54   Int_t GetDebugLevel() const   { return fDebugLevel; }
55   void  SetDebugLevel(Int_t dl) { fDebugLevel = dl; }
56
57 protected:
58   void               MakeItsDigitsInfo();
59   TEveMCRecCrossRef* GetGeninfo(Int_t label);
60
61   Float_t       fTPCHitRes;  // Resolution for storing TPC hits.
62   Float_t       fTRDHitRes;  // Resolution for storing TRD hits.
63
64   Int_t         fDebugLevel; // Internal debug level.
65
66   AliRunLoader *fRunLoader;  // Internal run-loader.
67
68   std::map<Int_t, TEveMCRecCrossRef*> fGenInfoMap; // Map label to MC-Rec cross-ref data structure.
69
70 private:
71   AliEveVSDCreator(const AliEveVSDCreator&);            // Not implemented
72   AliEveVSDCreator& operator=(const AliEveVSDCreator&); // Not implemented
73
74   ClassDef(AliEveVSDCreator, 0); // Create VSD file from ALICE data.
75 }; // endclass AliEveVSDCreator
76
77 #endif