]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSTreeMaker.h
4ed127ab9a95b62926d20f99f1357840203276d1
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSTreeMaker.h
1  
2  /**************************************************************************
3  * This file is property of and copyright by the ALICE HLT Project        * 
4  * All rights reserved.                                                   *
5  *                                                                        *
6  * Primary Authors: Oystein Djuvsland                                     *
7  *                                                                        *
8  * Permission to use, copy, modify and distribute this software and its   *
9  * documentation strictly for non-commercial purposes is hereby granted   *
10  * without fee, provided that the above copyright notice appears in all   *
11  * copies and that both the copyright notice and this permission notice   *
12  * appear in the supporting documentation. The authors make no claims     *
13  * about the suitability of this software for any purpose. It is          * 
14  * provided "as is" without express or implied warranty.                  *
15  **************************************************************************/
16
17
18 #ifndef ALIHLTPHOSTREEMAKER_H
19 #define ALIHLTPHOSTREEMAKER_H
20
21 #include "AliHLTPHOSBase.h"
22 #include "TTree.h"
23 class AliHLTPHOSDigitContainerDataStruct;
24
25 class TClonesArray;
26 //class TTree;
27
28 class AliHLTPHOSTreeMaker : public AliHLTPHOSBase
29 {
30 public:
31
32   AliHLTPHOSTreeMaker();
33   ~AliHLTPHOSTreeMaker();
34
35   Int_t MakeDigitArray(AliHLTPHOSDigitContainerDataStruct* digitContainer, Int_t nDigits);
36
37   void FillDigitTree();
38   
39   void ResetDigitTree() { fDigitTreePtr->Reset(); }
40   
41   void SetDigitTree(TTree* tree);
42   
43   TTree* GetDigitTree() { return fDigitTreePtr; }
44   
45 private:
46   TClonesArray *fDigitArrayPtr;
47   TTree* fDigitTreePtr;
48  
49   ClassDef(AliHLTPHOSTreeMaker, 1);
50
51 };
52
53
54 #endif