]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALTrack.h
Moved all TRU mapping to AliEMCALGeometry and removed from AliEMCALTrigger. Added...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTrack.h
CommitLineData
fe17d4cb 1//========================================================================
2// Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
3// See cxx source for full Copyright notice
4//========================================================================
5//
6// Class AliEMCALTrack
7// ---------------------
8// Implementation of a track to be used for EMCAL track matching.
9// This object is used to find track intersection with EMCAL surface
10// in order to find the most well matched EMCAL cluster to associate to it.
11// NO Kalman-like parameter updating is done.
12//
13// ------------------------------------------------------------------------
14// author: A. Pulvirenti (alberto.pulvirenti@ct.infn.it)
15//=========================================================================
16
17#ifndef AliEMCALTRACK_H
18#define AliEMCALTRACK_H
19
20#include "AliExternalTrackParam.h"
21
22class AliESDtrack;
23
24class AliEMCALTrack : public AliExternalTrackParam
25{
26public:
27
28 AliEMCALTrack();
29 AliEMCALTrack(const AliEMCALTrack& t);
30 AliEMCALTrack(const AliESDtrack& t);
31 AliEMCALTrack& operator=(const AliEMCALTrack &t);
32
33 Int_t Compare(const TObject *o) const;
34
35 Double_t GetBz() const;
36 Int_t GetClusterIndex() const {return fClusterIndex;}
37 Double_t GetClusterDist() const {return fClusterDist;}
38 Double_t GetMass() const {return fMass;}
39 Int_t GetSeedIndex() const {return fSeedIndex;}
40 Int_t GetSeedLabel() const {return fSeedLabel;}
41
42 Bool_t IsSortable() const {return kTRUE;}
43 Bool_t PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82);
44
45 void SetClusterIndex(Int_t idx) {fClusterIndex=idx;}
46 void SetClusterDist(Double_t dist) {fClusterDist=dist;}
47 void SetMass(Double_t mass) {fMass=mass;}
48 void SetSeedIndex(Int_t index) {fSeedIndex=index;}
49 void SetSeedLabel(Int_t label) {fSeedLabel=label;}
50
51 static void SetUseOuterParams(Bool_t doit=kTRUE) {fgUseOuterParams=doit;}
52
53protected:
54
55 static Bool_t fgUseOuterParams; // use outer parameters from AliESDtrack?
56 Int_t fClusterIndex; // index of matched cluster (if any)
57 Double_t fClusterDist; // distance between track propagation and matched cluster
58 Double_t fMass; // mass hypothesis (in GeV/c2)
59 Int_t fSeedIndex; // index of imported ESD track in its owner AliESD
60 Int_t fSeedLabel; // label of imported ESD track
61private:
62
63 ClassDef(AliEMCALTrack, 0) // track implementation for EMCAL matching
64
65};
66
67#endif