]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
5f96dd31 | 4 | /************************************************************************** |
5 | * This file is property of and copyright by the ALICE HLT Project * | |
6 | * All rights reserved. * | |
7 | * * | |
8 | * Primary Authors: Oystein Djuvsland * | |
9 | * * | |
10 | * Permission to use, copy, modify and distribute this software and its * | |
11 | * documentation strictly for non-commercial purposes is hereby granted * | |
12 | * without fee, provided that the above copyright notice appears in all * | |
13 | * copies and that both the copyright notice and this permission notice * | |
14 | * appear in the supporting documentation. The authors make no claims * | |
15 | * about the suitability of this software for any purpose. It is * | |
16 | * provided "as is" without express or implied warranty. * | |
17 | **************************************************************************/ | |
18 | ||
19 | #ifndef ALIHLTPHOSESDMAKER_H | |
20 | #define ALIHLTPHOSESDMAKER_H | |
21 | ||
22 | /** | |
23 | * Class writes ESDs | |
24 | * | |
25 | * @file AliHLTPHOSESDMaker.h | |
26 | * @author Oystein Djuvsland | |
27 | * @date | |
28 | * @brief ESD writer for PHOS HLT | |
29 | */ | |
30 | ||
31 | // see header file for class documentation | |
32 | // or | |
33 | // refer to README to build package | |
34 | // or | |
35 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
36 | ||
37 | #include "AliHLTPHOSBase.h" | |
38 | ||
39 | class AliHLTPHOSCaloClusterContainerStruct; | |
40 | class TClonesArray; | |
41 | class AliESDEvent; | |
42 | ||
43 | /** | |
44 | * @class AliHLTPHOSESDMaker | |
45 | * Makes ESDs out of reconstruction points, first it creates | |
46 | * the AliESDCaloClusters, then puts them into an AliESD object | |
47 | * | |
48 | * @ingroup alihlt_phos | |
49 | */ | |
50 | class AliHLTPHOSESDMaker : public AliHLTPHOSBase | |
51 | { | |
52 | ||
53 | public: | |
54 | ||
55 | /** Constructor */ | |
56 | AliHLTPHOSESDMaker(); | |
57 | ||
58 | /** Destructor */ | |
59 | virtual ~AliHLTPHOSESDMaker(); | |
60 | ||
25b7f84c | 61 | /** Copy constructor */ |
62 | AliHLTPHOSESDMaker(const AliHLTPHOSESDMaker &) : | |
63 | AliHLTPHOSBase(), | |
64 | fNCaloClusters(0), | |
65 | fCaloClustersPtr(0), | |
66 | fESDEventPtr(0), | |
67 | fCaloClusterContainerPtr(0) | |
68 | { | |
69 | //Copy constructor not implemented | |
70 | } | |
71 | ||
72 | /** Assignment */ | |
73 | AliHLTPHOSESDMaker & operator = (const AliHLTPHOSESDMaker) | |
74 | { | |
75 | //Assignment | |
76 | return *this; | |
77 | } | |
78 | ||
5f96dd31 | 79 | /** |
80 | * Set the AliESDEvent object to be filled | |
18af2efc | 81 | * @param esdEventPtr is a pointer to the AliESDEvent |
5f96dd31 | 82 | */ |
83 | void SetESDEvent(AliESDEvent* esdEventPtr) { fESDEventPtr = esdEventPtr; } | |
84 | ||
85 | /** | |
86 | * Set the AliHLTPHOSCaloClusterContainerStruct | |
87 | * @param clusterContainerPtr is a pointer to the cluster container | |
88 | */ | |
89 | void SetCaloClusterContainer(AliHLTPHOSCaloClusterContainerStruct* clusterContainerPtr) | |
90 | { fCaloClusterContainerPtr = clusterContainerPtr; } | |
91 | /** | |
92 | * Create AliESDCaloClusters from the AliHLTPHOSCaloClusterContainerStruct | |
93 | * @return | |
94 | */ | |
95 | Int_t FillESDCaloClusters(); | |
96 | ||
97 | /** | |
98 | * Fill the AliESDEvent object | |
99 | * @return | |
100 | */ | |
101 | Int_t FillESDEvent(); | |
102 | ||
25b7f84c | 103 | /** |
104 | * Fill the AliESDEvent object with clusters from a calo cluster container | |
105 | * @param caloClusterContainerPtr is a pointer to a cluster container | |
106 | * @return | |
107 | */ | |
108 | Int_t FillESDEvent(AliHLTPHOSCaloClusterContainerStruct* caloClusterContainerPtr); | |
109 | ||
5f96dd31 | 110 | /** |
111 | * Reset the ESD and ESDCaloCluster array | |
112 | */ | |
113 | void ResetESD(); | |
114 | ||
115 | /** | |
116 | * Get the AliESDCaloClusters | |
117 | * @return a pointer to a TClonesArray of AliESDCaloClusters | |
118 | */ | |
119 | TClonesArray* GetESDCaloClusters() { return fCaloClustersPtr; } | |
120 | ||
121 | private: | |
122 | ||
123 | /** Number of calo clusters */ | |
124 | Int_t fNCaloClusters; //COMMENT | |
125 | ||
126 | /** Array of AliESDCaloClusters */ | |
127 | TClonesArray* fCaloClustersPtr; //! transient | |
128 | ||
129 | /** The AliESDEvent object to fill */ | |
130 | AliESDEvent* fESDEventPtr; //! transient | |
131 | ||
132 | /** The AliHLTPHOSCaloClusterContainerStruct */ | |
133 | AliHLTPHOSCaloClusterContainerStruct* fCaloClusterContainerPtr; //! transient | |
134 | ||
135 | ClassDef(AliHLTPHOSESDMaker, 1); | |
136 | }; | |
137 | ||
138 | #endif |