]>
Commit | Line | Data |
---|---|---|
87434909 | 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 ALIHLTPHOSESDCALOCLUSTERMAKER_H | |
18 | #define ALIHLTPHOSESDCALOCLUSTERMAKER_H | |
19 | ||
20 | /** | |
21 | * Class writes ESDs | |
22 | * | |
23 | * @file AliHLTPHOSESDCaloClusterMaker.h | |
24 | * @author Oystein Djuvsland | |
25 | * @date | |
26 | * @brief ESD writer for PHOS 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 | #include "AliHLTPHOSBase.h" | |
36 | ||
37 | class AliHLTPHOSCaloClusterHeaderStruct; | |
38 | class AliHLTPHOSCaloClusterReader; | |
39 | class TClonesArray; | |
40 | class AliESDCaloCluster; | |
41 | ||
42 | /** | |
43 | * @class AliHLTPHOSESDCaloClusterMaker | |
44 | * Makes ESD Clusters out of AliHLTPHOSCaloClusterContainerStructs | |
45 | * @ingroup alihlt_phos | |
46 | */ | |
47 | ||
48 | class AliHLTPHOSESDCaloClusterMaker : public AliHLTPHOSBase | |
49 | { | |
50 | ||
51 | public: | |
52 | ||
53 | ||
54 | /** Constructor */ | |
55 | AliHLTPHOSESDCaloClusterMaker(); | |
56 | ||
57 | /** Destructor */ | |
58 | virtual ~AliHLTPHOSESDCaloClusterMaker(); | |
59 | ||
60 | /** Copy constructor */ | |
61 | AliHLTPHOSESDCaloClusterMaker(const AliHLTPHOSESDCaloClusterMaker &) : | |
62 | AliHLTPHOSBase(), | |
63 | fNCaloClusters(0), | |
64 | fClusterReaderPtr(0), | |
65 | fESDCaloClusterPtr(0) | |
66 | { | |
67 | //Copy constructor not implemented | |
68 | } | |
69 | ||
70 | /** Assignment */ | |
71 | AliHLTPHOSESDCaloClusterMaker & operator = (const AliHLTPHOSESDCaloClusterMaker) | |
72 | { | |
73 | //Assignment | |
74 | return *this; | |
75 | } | |
76 | ||
77 | /** | |
78 | * Create AliESDCaloClusters from the AliHLTPHOSCaloClusterContainerStruct | |
79 | * @return number of clusters created | |
80 | */ | |
81 | Int_t FillESDCaloClusters(TClonesArray* esdClusters, AliHLTPHOSCaloClusterHeaderStruct* clusterContainer); | |
82 | ||
83 | private: | |
84 | ||
85 | /* Number of clusters */ | |
86 | Int_t fNCaloClusters; // Number of clusters | |
87 | ||
88 | /* The reader */ | |
89 | AliHLTPHOSCaloClusterReader* fClusterReaderPtr; // !transient The reader | |
90 | ||
91 | /* An ESD Calo Cluster */ | |
92 | AliESDCaloCluster* fESDCaloClusterPtr; // !transient An ESD Calo Cluster | |
93 | ||
94 | ClassDef(AliHLTPHOSESDCaloClusterMaker, 0); | |
95 | }; | |
96 | ||
97 | #endif |