1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 ///////////////////////////////////////////////////////////////////////////////
18 // HLT TRD cluster finder //
20 ///////////////////////////////////////////////////////////////////////////////
22 #include "AliHLTTRDClusterizer.h"
23 #include "AliTRDgeometry.h"
24 #include "AliTRDcluster.h"
25 #include "AliTRDReconstructor.h"
26 #include <TClonesArray.h>
28 ClassImp(AliHLTTRDClusterizer);
30 //_____________________________________________________________________________
31 AliHLTTRDClusterizer::AliHLTTRDClusterizer(const AliTRDReconstructor *const rec)
32 :AliTRDclusterizer(rec)
36 // AliHLTTRDClusterizer default constructor
40 //_____________________________________________________________________________
41 AliHLTTRDClusterizer::AliHLTTRDClusterizer(const Text_t *const name, const Text_t *const title, const AliTRDReconstructor *const rec)
42 : AliTRDclusterizer(name,title,rec)
46 // AliHLTTRDClusterizer constructor
50 //_____________________________________________________________________________
51 AliHLTTRDClusterizer::AliHLTTRDClusterizer(const AliHLTTRDClusterizer& c)
52 : AliTRDclusterizer(c)
56 // AliHLTTRDClusterizer copy constructor
60 //_____________________________________________________________________________
61 AliHLTTRDClusterizer& AliHLTTRDClusterizer::operator=(const AliHLTTRDClusterizer& c)
64 // Assignment operator
72 //_____________________________________________________________________________
73 void AliHLTTRDClusterizer::Copy(TObject& c) const
79 ((AliHLTTRDClusterizer&)c).fMemBlock = NULL;
82 //_____________________________________________________________________________
83 void AliHLTTRDClusterizer::AddClusterToArray(AliTRDcluster *cluster)
86 // Add a cluster to the array
89 AliHLTTRDCluster *ptr = &(((AliHLTTRDCluster*)GetMemBlock())[fNoOfClusters]);
90 new(ptr) AliHLTTRDCluster(cluster);