]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/EveBase/AliEveVSDCreator.h
AliEveEventManager
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveVSDCreator.h
CommitLineData
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 17class AliTPCParam;
18class AliRunLoader;
5a5a1232 19
d810d0de 20class AliEveVSDCreator : public TEveVSD
5a5a1232 21{
5a5a1232 22public:
d810d0de 23 AliEveVSDCreator(const Text_t* name="AliEveVSDCreator", const Text_t* title="");
24 virtual ~AliEveVSDCreator() {}
5a5a1232 25
73c1c0ec 26 void CreateVSD(const Text_t* dataDir, Int_t event, 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 48protected:
49 void MakeItsDigitsInfo();
50 TEveMCRecCrossRef* GetGeninfo(Int_t label);
51 AliTPCParam* GetTpcParam(const TEveException& eh);
52
53 TString fDataDir; // Source data directory.
54 Int_t fEvent; // Source event number.
55
56 Float_t fTPCHitRes; // Resolution for storing TPC hits.
57 Float_t fTRDHitRes; // Resolution for storing TRD hits.
58
59 Int_t fDebugLevel; // Internal debug level.
60
61 AliRunLoader *fRunLoader; // Internal run-loader.
62
63 std::map<Int_t, TEveMCRecCrossRef*> fGenInfoMap; // Map label to MC-Rec cross-ref data structure.
64
65private:
66 AliEveVSDCreator(const AliEveVSDCreator&); // Not implemented
67 AliEveVSDCreator& operator=(const AliEveVSDCreator&); // Not implemented
68
73c1c0ec 69 ClassDef(AliEveVSDCreator, 0); // Create VSD file from ALICE data.
d810d0de 70}; // endclass AliEveVSDCreator
5a5a1232 71
72#endif