]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/src/AliL3FileHandler.h
The default should be not to save mcid
[u/mrichter/AliRoot.git] / HLT / src / AliL3FileHandler.h
CommitLineData
108615fc 1#ifndef ALIL3FILEHANDLER_H
2#define ALIL3FILEHANDLER_H
3
4#include "AliTPCParam.h"
5#include "AliL3MemHandler.h"
95a00d93 6#include "AliSimDigits.h"
108615fc 7#include <TObject.h>
8#include <TFile.h>
95a00d93 9#include <TTree.h>
108615fc 10#include <stdio.h>
95a00d93 11
108615fc 12class AliL3SpacePointData;
13class AliL3DigitRowData;
14class AliL3TrackSegmentData;
15class AliL3TrackArray;
16
17class AliL3FileHandler:public AliL3MemHandler{
18 private:
19 TFile *fInAli;
20 AliTPCParam *fParam;
21 AliL3Transform *fTransformer;//!
22 Bool_t SetAliInput();
a6e4f9d6 23 Int_t fLastIndex;
24 AliSimDigits *fDigits;
25 TTree *fDigitsTree;
108615fc 26 FILE *fMC;//!
a6e4f9d6 27
28 Bool_t GetDigitsTree(Int_t event);
29
108615fc 30 public:
31 AliL3FileHandler();
32 virtual ~AliL3FileHandler();
33// void Init(Int_t s,Int_t p,Int_t* row){fSlice=s;fPatch=p;fRowMin=row[0];fRowMax=row[1];}
34
35 Int_t GetRowMin(){return fRowMin;}
36 Int_t GetRowMax(){return fRowMax;}
37 Int_t GetSlice(){return fSlice;}
38 Int_t GetPatch(){return fPatch;}
39
40 Bool_t SetAliInput(char *name);
41 Bool_t SetAliInput(TFile *file);
42 void CloseAliInput();
43 Bool_t IsDigit();
44
45 Bool_t SetMCOutput(char *name);
46 Bool_t SetMCOutput(FILE *file);
47 void CloseMCOutput();
48
49 //Digit IO
31d9405a 50 Bool_t AliDigits2Binary(Int_t event=0);
51 AliL3DigitRowData *AliDigits2Memory(UInt_t & nrow,Int_t event=0); //Allocates Memory
52 Bool_t AliDigits2CompBinary(Int_t event=0);
0d319e67 53 void AliDigits2RootFile(AliL3DigitRowData *rowPt,Char_t *new_digitsfile);
108615fc 54
55 //Point IO
56 Bool_t AliPoints2Binary();
57 AliL3SpacePointData *AliPoints2Memory(UInt_t & npoint);//Allocates Memory
58
b661165c 59 ClassDef(AliL3FileHandler,1) //Filehandler class
108615fc 60};
61
62#endif