ROOT logo
#ifndef ALIVTRDTRACKLET_H
#define ALIVTRDTRACKLET_H

// format for the TRD tracklets calculated in the FEE,
// used for the TRD L1 trigger
// Author: Jochen Klein <jochen.klein@cern.ch>

#include "TObject.h"

class AliVTrdTracklet : public TObject {
 public:

  AliVTrdTracklet();
  virtual ~AliVTrdTracklet() {};
  AliVTrdTracklet(const AliVTrdTracklet& track);
  AliVTrdTracklet& operator=(const AliVTrdTracklet& track);
  virtual void Copy(TObject &obj) const;

  // tracklet information
  virtual UInt_t GetTrackletWord() const = 0;
  virtual Int_t  GetBinY() const = 0;
  virtual Int_t  GetBinDy() const = 0;
  virtual Int_t  GetBinZ() const = 0;
  virtual Int_t  GetPID() const = 0;

  // position and deflection information (chamber-local)
  Float_t GetLocalY() const { return GetBinY() * fgkBinWidthY; }
  Float_t GetDyDx() const { return GetBinDy() * fgkBinWidthDy/fgkDriftLength; }

  virtual Int_t GetHCId() const = 0;
  virtual Int_t GetDetector() const = 0;
  virtual Int_t GetLabel() const = 0;

 protected:

  static const Float_t fgkBinWidthY;   // bin width y-position
  static const Float_t fgkBinWidthDy;  // bin width deflection length
  static const Float_t fgkDriftLength; // drift length to which the deflection length is scaled

  ClassDef(AliVTrdTracklet,0)
};

#endif
 AliVTrdTracklet.h:1
 AliVTrdTracklet.h:2
 AliVTrdTracklet.h:3
 AliVTrdTracklet.h:4
 AliVTrdTracklet.h:5
 AliVTrdTracklet.h:6
 AliVTrdTracklet.h:7
 AliVTrdTracklet.h:8
 AliVTrdTracklet.h:9
 AliVTrdTracklet.h:10
 AliVTrdTracklet.h:11
 AliVTrdTracklet.h:12
 AliVTrdTracklet.h:13
 AliVTrdTracklet.h:14
 AliVTrdTracklet.h:15
 AliVTrdTracklet.h:16
 AliVTrdTracklet.h:17
 AliVTrdTracklet.h:18
 AliVTrdTracklet.h:19
 AliVTrdTracklet.h:20
 AliVTrdTracklet.h:21
 AliVTrdTracklet.h:22
 AliVTrdTracklet.h:23
 AliVTrdTracklet.h:24
 AliVTrdTracklet.h:25
 AliVTrdTracklet.h:26
 AliVTrdTracklet.h:27
 AliVTrdTracklet.h:28
 AliVTrdTracklet.h:29
 AliVTrdTracklet.h:30
 AliVTrdTracklet.h:31
 AliVTrdTracklet.h:32
 AliVTrdTracklet.h:33
 AliVTrdTracklet.h:34
 AliVTrdTracklet.h:35
 AliVTrdTracklet.h:36
 AliVTrdTracklet.h:37
 AliVTrdTracklet.h:38
 AliVTrdTracklet.h:39
 AliVTrdTracklet.h:40
 AliVTrdTracklet.h:41
 AliVTrdTracklet.h:42
 AliVTrdTracklet.h:43