]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/util/AliHLTESDCaloClusterMaker.h
Moving a some structs and classes used for handling "AliESDCaloCluster like" clusters...
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTESDCaloClusterMaker.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 #ifndef ALIHLTESDCALOCLUSTERMAKER_H
18 #define ALIHLTESDCALOCLUSTERMAKER_H
19
20 /**
21  * Class writes ESDs
22  *
23  * @file   AliHLTESDCaloClusterMaker.h
24  * @author Oystein Djuvsland
25  * @date
26  * @brief  ESD writer for  HLT
27  */
28
29 // see header file for class documentation
30 // or
31 // refer to README to build package 
32 // or
33 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
34
35 class AliESDEvent;
36 class AliHLTCaloClusterHeaderStruct;
37 class AliHLTCaloClusterReader;
38 class TClonesArray;
39 class AliESDCaloCluster;
40
41 /** 
42  * @class AliHLTESDCaloClusterMaker
43  * Makes ESD Clusters out of AliHLTCaloClusterDataStructs
44  * @ingroup alihlt_phos
45  */
46
47 class AliHLTESDCaloClusterMaker 
48 {
49
50  public:
51   
52   
53   /** Constructor */
54   AliHLTESDCaloClusterMaker();
55   
56   /** Destructor */
57   virtual ~AliHLTESDCaloClusterMaker();
58
59   /** Copy constructor */  
60   AliHLTESDCaloClusterMaker(const AliHLTESDCaloClusterMaker &) : 
61     fClusterReaderPtr(0)
62     {
63       //Copy constructor not implemented
64     }
65   
66   /** Assignment */
67   AliHLTESDCaloClusterMaker & operator = (const AliHLTESDCaloClusterMaker)
68     {
69       //Assignment
70       return *this; 
71     }
72
73   /**
74    * Convert AliHLTCaloClusterDataStruct clusters and fill an ESDEvent object with 
75    * AliESDCaloCluster clusters
76    * @return number of clusters converted and filled
77    */
78   Int_t FillESD(AliESDEvent *esdPtr, const AliHLTCaloClusterHeaderStruct *clusterHeader);
79
80  private: 
81
82   /* The cluster struct reader */
83   AliHLTCaloClusterReader* fClusterReaderPtr; // !transient The reader
84
85   ClassDef(AliHLTESDCaloClusterMaker, 0);
86 };
87
88 #endif