]>
Commit | Line | Data |
---|---|---|
7c3c85cd | 1 | //-*- Mode: C++ -*- |
2 | #ifndef ALIHLTJETBASE_H | |
3 | #define ALIHLTJETBASE_H | |
4 | ||
5 | /* This file is property of and copyright by the ALICE HLT Project * | |
6 | * ALICE Experiment at CERN, All rights reserved. * | |
7 | * See cxx source for full Copyright notice */ | |
8 | ||
9 | /** @file AliHLTJETBase.h | |
10 | @author Jochen Thaeder | |
11 | @date | |
12 | @brief Base functionality for HLT JET package | |
13 | ||
14 | */ | |
15 | ||
16 | #include "AliHLTLogging.h" | |
17 | #include "TObject.h" | |
18 | ||
1f9fec4a | 19 | /** Indices in grid position array */ |
20 | enum GridIndex_t { | |
21 | kIdxPrimary, /**< 1D index for the main search area */ | |
22 | kIdxOutter, /**< 1D index for the outter search area */ | |
23 | kIdxEtaPrimary, /**< 2D eta index for the main search area */ | |
24 | kIdxPhiPrimary, /**< 2D phi index for the main search area */ | |
25 | kIdxPhiOutter /**< 2D phi index for the outter search area */ | |
26 | }; | |
7c3c85cd | 27 | |
1f9fec4a | 28 | /** Indices in array */ |
29 | enum EtaPhiIndex_t { | |
30 | kIdxEta, /**< Eta */ | |
31 | kIdxPhi, /**< Phi */ | |
32 | kIdxPt /**< Pt */ | |
33 | }; | |
34 | ||
35 | /** Used track types */ | |
36 | enum TrackType_t { | |
37 | kTrackMC, /**< TParticle */ | |
38 | kTrackESD, /**< AliESDtrack */ | |
39 | kTrackAOD /**< AliAODtrack */ | |
40 | }; | |
7c3c85cd | 41 | |
42 | /** | |
43 | * @class AliHLTJETBase | |
44 | * This class contains a Seed for the JetFinder | |
45 | * | |
46 | */ | |
47 | ||
48 | class AliHLTJETBase : public TObject, public AliHLTLogging { | |
49 | ||
50 | public: | |
51 | ||
52 | /* | |
53 | * --------------------------------------------------------------------------------- | |
54 | * Constructor / Destructor | |
55 | * --------------------------------------------------------------------------------- | |
56 | */ | |
57 | ||
58 | /** Standard constructor */ | |
59 | AliHLTJETBase(); | |
60 | ||
61 | /** Destructor */ | |
62 | ~AliHLTJETBase(); | |
63 | ||
1f9fec4a | 64 | /** Types of jet algorithms */ |
65 | enum JetAlgorithmType_t { | |
66 | kAntiKt, /**< FastJet implementation of the Anti kt */ | |
67 | kKt, /**< FastJet implementation of the kt */ | |
68 | kFFSCSquareCell, /**< Fast Fixed Seeded Cone, using a square cell */ | |
69 | kFFSCRadiusCell, /**< Fast Fixed Seeded Cone, using a radius cell */ | |
70 | kJetAlgorithmMax /**< Number of enum entries */ | |
71 | }; | |
72 | ||
73 | /** Array of types of the Jet Algorithms */ | |
74 | static const Char_t *fgkJetAlgorithmType[]; //! transient | |
75 | ||
fdc39952 | 76 | |
7c3c85cd | 77 | /////////////////////////////////////////////////////////////////////////////////// |
78 | ||
79 | private: | |
80 | ||
81 | /** copy constructor prohibited */ | |
82 | AliHLTJETBase(const AliHLTJETBase&); | |
83 | ||
84 | /** assignment operator prohibited */ | |
85 | AliHLTJETBase& operator=(const AliHLTJETBase&); | |
86 | ||
87 | /* | |
88 | * --------------------------------------------------------------------------------- | |
89 | * Members - private | |
90 | * --------------------------------------------------------------------------------- | |
91 | */ | |
92 | ||
93 | ClassDef(AliHLTJETBase, 0) | |
94 | }; | |
95 | #endif | |
96 | ||
97 | ||
98 | #if 0 | |
7c3c85cd | 99 | |
7c3c85cd | 100 | |
1f9fec4a | 101 | static Float_t GetDistance2( const Float_t eta1, const Float_t phi1, |
102 | const Float_t eta2, const Float_t phi2); | |
7c3c85cd | 103 | |
1f9fec4a | 104 | static Int_t GetCellIndex( const Double_t* aEtaPhi, Int_t* aGridIndex ); |
7c3c85cd | 105 | |
1f9fec4a | 106 | static void XYZtoRPhiEta( const Double_t *xyz, Double_t *rpe ); |
7c3c85cd | 107 | |
1f9fec4a | 108 | static void XYZEtoRPhiEtaPt( const Double_t *xyze, Double_t *rpep ); |
109 | static void XYZEtoRPhiEtaPt( const Float_t *xyze, Double_t *rpep ); | |
7c3c85cd | 110 | |
1f9fec4a | 111 | static void XYZEtoEPhiEtaPt( const Double_t *xyze, Double_t *epep ); |
112 | static void XYZEtoEPhiEtaPt( const Float_t *xyze, Double_t *epep ); | |
7c3c85cd | 113 | |
1f9fec4a | 114 | static Double_t GetPtFromXYZ( const Double_t *pxpypz ); |
115 | static Double_t GetPtFromXYZ( const Float_t *pxpypz ); | |
7c3c85cd | 116 | |
1f9fec4a | 117 | static Double_t GetPhiFromXYZ( const Double_t *xyz ); |
118 | static Double_t GetPhiFromXYZ( const Float_t *xyz ); | |
7c3c85cd | 119 | |
1f9fec4a | 120 | static Double_t GetEtaFromXYZ( const Double_t *xyz ); |
121 | static Double_t GetEtaFromXYZ( const Float_t *xyz ); | |
7c3c85cd | 122 | |
123 | #endif |