1 #ifndef ALITRDCLUSTERINFO_H
2 #define ALITRDCLUSTERINFO_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
13 class AliTRDclusterInfo : public TObject
18 Float_t GetAnisochronity() const {return fD;}
19 inline void GetCluster(Int_t &det, Float_t &x, Float_t &y, Float_t &z, Float_t &q, Int_t &t, Float_t *cov=0x0) const;
20 void GetMC(Int_t &pdg, Int_t &label) const{
23 void GetGlobalPosition(Float_t &yt, Float_t &zt, Float_t &dydx, Float_t &dzdx, Float_t *cov=0x0) const {
28 if(cov) memcpy(cov, fCov, 3*sizeof(Float_t));}
29 Float_t GetResolution() const {return fdy;}
30 Float_t GetDriftLength() const {return fXd;}
31 Float_t GetYDisplacement() const {return fYd;}
32 Float_t GetTilt() const { return fTilt;}
34 void Print(Option_t *opt="") const;
36 void SetAnisochronity(Float_t d) {fD = d;}
37 void SetCluster(const AliTRDcluster *c, Float_t *cov=0x0);
38 void SetMC(Int_t pdg, Int_t label){
41 void SetGlobalPosition(Float_t yt, Float_t zt, Float_t dydx, Float_t dzdx, Float_t *cov=0x0) {
46 if(cov) memcpy(fCov, cov, 3*sizeof(Float_t));}
47 void SetResolution(Float_t dy) {fdy = dy;}
48 void SetDriftLength(Float_t d) {fXd = d;}
49 void SetTilt(Float_t t) {fTilt = t;}
52 UShort_t fDet; // detector
53 Short_t fPdg; // particle code
54 Short_t fLbl; // track label (MC)
55 Short_t fLocalTime; // calibrate drift time
56 Float_t fQ; // cluster charge (REC)
57 Float_t fX; // x coordinate (REC)
58 Float_t fY; // y coordinate (REC)
59 Float_t fYd; // displacement from pad center y coordinate
60 Float_t fZ; // z coordinate (REC)
61 Float_t fdydx; // slope in phi (MC)
62 Float_t fdzdx; // slope in theta (MC)
63 Float_t fXd; // drift length
64 Float_t fYt; // y coordinate (MC)
65 Float_t fZt; // z coordinate (MC)
66 Float_t fCov[3];// covariance matrix in the yz plane (track)
67 Float_t fCovCl[3];// covariance matrix in the yz plane (cluster)
68 Float_t fdy; // difference in y after tilt correction
69 Float_t fD; // distance to the anode wire
70 Float_t fTilt; // pad tilt;
72 ClassDef(AliTRDclusterInfo, 1) // extracted cluster2MC information
76 //_________________________________________________
77 inline void AliTRDclusterInfo::GetCluster(Int_t &det, Float_t &x, Float_t &y, Float_t &z, Float_t &q, Int_t &t, Float_t *cov) const
85 if(cov) memcpy(cov, fCovCl, 3*sizeof(Float_t));