]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/VSDCreator.h
Merge from EVE-dev.
[u/mrichter/AliRoot.git] / EVE / Alieve / VSDCreator.h
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 {
17 public:
18   enum KineType_e { KT_Standard, KT_ProtonProton };
19
20 protected:
21   void          MakeItsDigitsInfo();
22   Reve::GenInfo* GetGeninfo(Int_t label);
23   AliTPCParam*   GetTpcParam(const Reve::Exc_t& eh);
24
25   KineType_e    mKineType;  // X{GS} 7 PhonyEnum()
26   TString       mDataDir;   // X{G}
27   Int_t         mEvent;     // X{G}
28
29   Float_t       mTRDHitRes;  // X{gs} 
30   Float_t       mTPCHitRes;  // X{gs} 
31
32   Int_t         mDebugLevel;
33
34   std::map<Int_t, Reve::GenInfo*> mGenInfoMap; //!
35
36   void init();
37
38 public:
39   VSDCreator();
40   VSDCreator(const Text_t* name, const Text_t* title="");
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