]>
Commit | Line | Data |
---|---|---|
434146d0 | 1 | //$Id$ |
2 | ||
3cfb9c56 | 3 | #ifndef ALIHLTGLOBALTRACKMATCHER_H |
4 | #define ALIHLTGLOBALTRACKMATCHER_H | |
434146d0 | 5 | |
6 | ||
3cfb9c56 | 7 | //* This file is property of and copyright by the ALICE HLT Project * |
8 | //* ALICE Experiment at CERN, All rights reserved. * | |
9 | //* See cxx source for full Copyright notice * | |
10 | ||
11 | /** @file AliHLTGlobalTrackMatcher.h | |
12 | @author Svein Lindal (svein.lindal@fys.uio.no) | |
13 | @date | |
b3e7198f | 14 | @brief The HLT class matching TPC tracks to calorimeter clusters |
3cfb9c56 | 15 | */ |
16 | ||
17 | ||
3cfb9c56 | 18 | #include "AliHLTLogging.h" |
19 | #include "AliESDtrack.h" | |
434146d0 | 20 | #include "TRefArray.h" |
21 | #include "AliESDEvent.h" | |
3cfb9c56 | 22 | |
434146d0 | 23 | class AliHLTGlobalTrackMatcher { |
b3e7198f | 24 | |
3cfb9c56 | 25 | public: |
26 | AliHLTGlobalTrackMatcher(); | |
b3e7198f | 27 | |
3cfb9c56 | 28 | /** destructor */ |
29 | virtual ~AliHLTGlobalTrackMatcher(); | |
30 | ||
3cfb9c56 | 31 | |
434146d0 | 32 | // Main function, loops over tracks, clusters |
33 | // Finds best match for cluster | |
34 | Bool_t Match( AliESDEvent* event ); | |
35 | ||
3cfb9c56 | 36 | |
37 | private: | |
bad7877b | 38 | |
434146d0 | 39 | void DoInit(); |
bad7877b | 40 | |
434146d0 | 41 | //Projects track to detector volume and decides if it passes in the vinity or not |
42 | Bool_t IsTrackCloseToDetector(AliESDtrack * track, Double_t bz, Double_t * trackPosition, Double_t fMaxX, Bool_t ySign, Double_t fMaxZ); | |
bad7877b | 43 | |
434146d0 | 44 | //Fills fClustersArray with refs to the clusters, returns number of clusters |
45 | void MatchTrackToClusters( AliESDtrack * track, TRefArray * clustersArray, Int_t nClusters, Float_t * bestMatch, Double_t bz ); | |
46 | ||
47 | // Geometrical paramaters of detector volume | |
48 | Float_t fPhosMaxZ; // max Z track (cm) | |
49 | Float_t fPhosMaxX; // max X track (cm) | |
50 | Float_t fEmcalMaxZ; | |
51 | Float_t fEmcalMaxX; | |
3cfb9c56 | 52 | |
434146d0 | 53 | Float_t fMatchDistance; |
3cfb9c56 | 54 | |
434146d0 | 55 | const Double_t fPhosRadius; |
56 | const Double_t fEmcalRadius; // Radial position of detector volume | |
57 | //TRefArrays that will be filled with referenced to the PHOS and EMCAL Clusters | |
58 | TRefArray * fPhosClustersArray; | |
59 | TRefArray * fEmcalClustersArray; | |
bad7877b | 60 | |
bc72e5b9 | 61 | AliHLTGlobalTrackMatcher(const AliHLTGlobalTrackMatcher & ); |
62 | AliHLTGlobalTrackMatcher & operator = (const AliHLTGlobalTrackMatcher &); | |
63 | ||
3cfb9c56 | 64 | ClassDef(AliHLTGlobalTrackMatcher,1) //Merging base class |
65 | }; | |
66 | ||
67 | #endif |