1 #include "AliTrackReference.h"
3 class AliTRDExactPoint: public TObject {
6 Float_t fTX; //x in rotated coordinate in the center of time bin
9 Float_t fTAY; //angle y
10 Float_t fTAZ; //angle z
15 void SetReference(AliTrackReference *ref);
20 Int_t fDetector; // detector (chamber)
21 Int_t fLocalTimeBin; // local time bin
22 Int_t fPlane; // plane (layer)
23 Int_t fSector; // segment
29 ClassDef(AliTRDExactPoint,1)
32 AliTRDExactPoint::AliTRDExactPoint()
34 fTX=fTY=fTZ=fTAZ=fTAY=fGx=fGy=fGz=fTRefAngleY=0;
35 fRefPos[0]=fRefPos[1]=fRefPos[2]=fRefMom[0]=fRefMom[1]=fRefMom[2]=0;
36 fDetector=fLocalTimeBin=fPlane=fSector=fPlaneMI=0;
40 void AliTRDExactPoint::SetReference(AliTrackReference *ref){
41 fRefPos[0] = ref->X();
42 fRefPos[1] = ref->Y();
43 fRefPos[2] = ref->Z();
45 fRefMom[0] = ref->Px();
46 fRefMom[1] = ref->Py();
47 fRefMom[2] = ref->Pz();
50 class AliTRDCI: public TObject {
53 virtual ~AliTRDCI(){;}
72 void AliTRDCI::Update()
77 fCharge = fP.GetPDG()->Charge();
78 fIsPrim = (fP.GetMother(0)>0)? kFALSE :kTRUE;
82 class AliTRDClusterErrAnal: public TObject{
84 AliTRDClusterErrAnal(Char_t *chloader = "galice.root");
85 void SetIO(Int_t event);
86 Int_t Analyze(Int_t trackmax);
88 void MakeExactPoints(Int_t trackmax);
89 void SortReferences();
90 AliTrackReference * FindNearestReference(Int_t lab, Float_t pos[3], Float_t dmax=10.);
92 AliRunLoader * fRunLoader;
93 AliLoader * fTRDLoader;
94 AliTRDparameter *fParam;
95 AliTRDgeometry *fGeometry;
98 TTree * fReferenceTree;
103 AliTRDtracker *fTracker;
105 TObjArray fClusters[12][100][18]; //first plane, second time bin
106 TObjArray fExactPoints;
107 TObjArray *fReferences;
109 ClassDef(AliTRDClusterErrAnal,1)
113 class AliTRDClusterErrDraw: public TObject{
115 static TH1F * ResDyVsAmp(TTree* tree, const char* selection, Float_t t0, Float_t ampmin=10, Float_t ampmax=300);
116 static TH1F * ResDyVsRelPos(TTree* tree, const char* selection, Float_t t0, Float_t min=-0.5, Float_t max=0.5);
117 static TH1F * ResDyVsAngleY(TTree* tree, const char* selection, Float_t t0, Float_t min=-1., Float_t max=1.);
118 static void AliLabelAxes(TH1* histo, const char* xAxisTitle, const char* yAxisTitle);
119 static TH1F* CreateEffHisto(TH1F* hGen, TH1F* hRec);
120 static TH1F* CreateResHisto(TH2F* hRes2, Bool_t draw = kTRUE, Bool_t drawBinFits = kTRUE,
121 Bool_t overflowBinFits = kFALSE);
123 ClassDef(AliTRDClusterErrDraw,1)