]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/VSDCreator.h
aa196a41d1a780429d967297fd5b454b5ec811d3
[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   VSDCreator(const VSDCreator&);            // Not implemented
18   VSDCreator& operator=(const VSDCreator&); // Not implemented
19
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
32   Float_t       mTPCHitRes;  // X{gs} 
33   Float_t       mTRDHitRes;  // X{gs} 
34
35   Int_t         mDebugLevel;
36
37   std::map<Int_t, Reve::GenInfo*> mGenInfoMap; //!
38
39 public:
40   VSDCreator(const Text_t* name="Alieve::VSDCreator", 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