AliRoot Core  3dc7879 (3dc7879)
AliAODTracklets.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 /* $Id$ */
5 
12 
13 #ifndef ALIAODTRACKLETS_H
14 #define ALIAODTRACKLETS_H
15 
16 #include "AliVMultiplicity.h"
17 #include <TBits.h>
18 
20 {
21  public:
23  AliAODTracklets(const char* name, const char* title);
24  AliAODTracklets(const AliAODTracklets& evt);
26 
27  virtual ~AliAODTracklets();
28 
29  void CreateContainer(Int_t nTracks);
30  void DeleteContainer();
31  virtual void Clear(Option_t* ) {AliVMultiplicity::Clear(); DeleteContainer();}
32 
33  Bool_t SetTracklet(Int_t pos, Double32_t theta, Double32_t phi, Double32_t deltaPhi, Int_t labelL1, Int_t labelL2);
34 
35 
36  virtual Int_t GetNumberOfTracklets() const { return fNTracks; }
37  virtual Double_t GetTheta(Int_t i) const;
38  virtual Double_t GetPhi(Int_t i) const;
39  virtual Double_t GetDeltaPhi(Int_t i) const;
40  virtual Int_t GetLabel(Int_t i, Int_t layer) const;
41  virtual void SetLabel(Int_t i, Int_t layer,Int_t label);
42  //
43  virtual Double_t* GetTheta() const {return (Double_t*)fTheta;}
44  virtual Double_t* GetPhi() const {return (Double_t*)fPhi;}
45  virtual Double_t* GetDeltPhi() const {return (Double_t*)fDeltaPhi;}
46  virtual Int_t* GetLabels() const {return (Int_t*)fLabels;}
47  virtual Int_t* GetLabels2() const {return (Int_t*)fLabelsL2;}
48  //
49  virtual Short_t GetNumberOfFiredChips(Int_t layer) const {return fFiredChips[layer];}
50  virtual void SetFiredChips(Int_t layer, Short_t firedChips) {fFiredChips[layer] = firedChips;}
51  //
52  virtual void SetFastOrFiredChips(UInt_t chipKey) {fFastOrFiredChips.SetBitNumber(chipKey);}
53  virtual const TBits& GetFastOrFiredChips() const {return fFastOrFiredChips;}
54  virtual void SetFastOrFiredChipMap(const TBits& fochips) {fFastOrFiredChips = fochips;}
55  virtual Bool_t TestFastOrFiredChips(UInt_t chipKey) const {return fFastOrFiredChips.TestBitNumber(chipKey);}
56  //
57  virtual void SetFiredChipMap(const TBits & firedChips) {fClusterFiredChips = firedChips;}
58  virtual void SetFiredChipMap(UInt_t chipKey) {fClusterFiredChips.SetBitNumber(chipKey);}
59  virtual const TBits& GetFiredChipMap() const {return fClusterFiredChips;}
60  virtual Bool_t TestFiredChipMap(UInt_t chipKey) const {return fClusterFiredChips.TestBitNumber(chipKey);}
61 
62  //
63  virtual void Print(Option_t *opt="") const;
64 
65  virtual UInt_t GetNumberOfITSClusters(Int_t layer) const { return fITSClusters[layer];}
66  virtual void SetITSClusters(Int_t layer, UInt_t clusters) { fITSClusters[layer] = clusters; }
67 
68  protected:
69  Int_t fNTracks;
70  Double32_t *fTheta; //[fNTracks]
73  Double32_t *fPhi; //[fNTracks]
75  Double32_t *fDeltaPhi; //[fNTracks]
77  Int_t *fLabels; //[fNTracks]
79  Int_t *fLabelsL2; //[fNTracks]
80 
81  Short_t fFiredChips[2];
82  UInt_t fITSClusters[6];
85 
86  ClassDef(AliAODTracklets, 5);
87 };
88 
89 
90 #endif
virtual Short_t GetNumberOfFiredChips(Int_t layer) const
virtual void Print(Option_t *opt="") const
Double32_t * fTheta
array with theta values
Bool_t SetTracklet(Int_t pos, Double32_t theta, Double32_t phi, Double32_t deltaPhi, Int_t labelL1, Int_t labelL2)
virtual const TBits & GetFastOrFiredChips() const
virtual Double_t * GetDeltPhi() const
virtual Bool_t TestFiredChipMap(UInt_t chipKey) const
virtual Int_t * GetLabels2() const
AliAODTracklets & operator=(const AliAODTracklets &evt)
Double32_t * fDeltaPhi
array with delta phi values
virtual Int_t GetNumberOfTracklets() const
virtual UInt_t GetNumberOfITSClusters(Int_t layer) const
UInt_t fITSClusters[6]
Number of ITS cluster per layer.
virtual void Clear(Option_t *opt="")
AOD class to store tracklets.
virtual Int_t GetLabel(Int_t i, Int_t layer) const
virtual void SetLabel(Int_t i, Int_t layer, Int_t label)
virtual const TBits & GetFiredChipMap() const
Double32_t * fPhi
array with phi values
Short_t fFiredChips[2]
Number of fired chips in the two SPD layers.
virtual Double_t * GetTheta() const
Int_t * fLabelsL2
array with labels of cluster in L2 used for the tracklet
virtual void SetITSClusters(Int_t layer, UInt_t clusters)
virtual void Clear(Option_t *)
virtual Double_t GetDeltaPhi(Int_t i) const
TBits fFastOrFiredChips
Map of FastOr fired chips.
virtual void SetFastOrFiredChipMap(const TBits &fochips)
void CreateContainer(Int_t nTracks)
virtual Bool_t TestFastOrFiredChips(UInt_t chipKey) const
Int_t * fLabels
array with labels of cluster in L1 used for the tracklet
virtual Double_t * GetPhi() const
virtual void SetFiredChipMap(UInt_t chipKey)
virtual ~AliAODTracklets()
virtual void SetFiredChipMap(const TBits &firedChips)
virtual void SetFiredChips(Int_t layer, Short_t firedChips)
virtual void SetFastOrFiredChips(UInt_t chipKey)
TBits fClusterFiredChips
Map of fired chips (= at least one cluster)
virtual Int_t * GetLabels() const