Adopt to const declaration of some of the methods in AliSegmentation.
[u/mrichter/AliRoot.git] / RICH / AliRICHSegmentation.h
CommitLineData
237c933d 1#ifndef ALIRICHSEGMENTATION_H
2#define ALIRICHSEGMENTATION_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9#include <TObject.h>
10
11class AliRICHChamber;
12class TF1;
13class AliRICHSegmentation :
14
15public TObject {
16
17 public:
18
19 // Set Chamber Segmentation Parameters
20 //
21 // Pad size Dx*Dy
22 virtual void SetPadSize(Float_t p1, Float_t p2) =0;
23 // Anod Pitch
24 virtual void SetDAnod(Float_t D) =0;
25
26 //
27 // Anod wire coordinate closest to xhit
28 virtual Float_t GetAnod(Float_t xhit) =0;
237c933d 29 // Transform from real to pad coordinates
a60a9d2a 30 virtual void GetPadIxy(Float_t x ,Float_t y ,Int_t &ix,Int_t &iy)=0;
31 // Transform from pad to real coordinates
237c933d 32 virtual void GetPadCxy(Int_t ix,Int_t iy,Float_t &x ,Float_t &y )=0;
33 //
34 // Initialisation
35 virtual void Init(AliRICHChamber*) =0;
36 //
37 // Get member data
38 //
39 // Pad size in x
40 virtual Float_t Dpx() =0;
41 // Pad size in y
42 virtual Float_t Dpy() =0;
43 // Pad size in x by Sector
44 virtual Float_t Dpx(Int_t) =0;
45 // Pad size in y by Sector
46 virtual Float_t Dpy(Int_t) =0;
47 // Max number of Pads in x
48 virtual Int_t Npx() =0;
49 // Max number of Pads in y
50 virtual Int_t Npy() =0;
51
52
53 // set pad position
54 virtual void SetPad(Int_t, Int_t) =0;
55 // set hit position
56 virtual void SetHit(Float_t, Float_t) =0;
57 //
58 // Iterate over pads
59 // Initialiser
60 virtual void FirstPad(Float_t xhit, Float_t yhit, Float_t dx, Float_t dy) =0;
61 // Stepper
62 virtual void NextPad()=0;
63 // Condition
64 virtual Int_t MorePads() =0;
65 //
66 // Distance between 1 pad and a position
67 virtual Float_t Distance2AndOffset(Int_t iX, Int_t iY, Float_t X, Float_t Y, Int_t *dummy) =0;
68 // Number of pads read in parallel and offset to add to x
69 // (specific to LYON, but mandatory for display)
70 virtual void GetNParallelAndOffset(Int_t iX, Int_t iY,
71 Int_t *Nparallel, Int_t *Offset) =0;
72 // Get next neighbours
73 virtual void Neighbours
74 (Int_t iX, Int_t iY, Int_t* Nlist, Int_t Xlist[10], Int_t Ylist[10]) =0;
75 //
76 // Current pad cursor during disintegration
77 // x-coordinate
78 virtual Int_t Ix() =0;
79 // y-coordinate
80 virtual Int_t Iy() =0;
81 // current Sector
82 virtual Int_t ISector() =0;
83 // calculate sector from pad coordinates
84 virtual Int_t Sector(Float_t ix, Float_t iy) =0;
85 //
86 // Signal Generation Condition during Stepping
87 virtual Int_t SigGenCond(Float_t x, Float_t y, Float_t z) = 0;
88 // Initialise signal gneration at coord (x,y,z)
89 virtual void SigGenInit(Float_t x, Float_t y, Float_t z) = 0;
90 // Current integration limits
91 virtual void IntegrationLimits
92 (Float_t& x1, Float_t& x2, Float_t& y1, Float_t& y2) = 0;
93 // Test points for auto calibration
94 virtual void GiveTestPoints(Int_t &n, Float_t *x, Float_t *y) = 0;
95 // Debug utilities
96 virtual void Draw() = 0;
97 // Function for systematic corrections
98 virtual void SetCorrFunc(Int_t, TF1*) = 0;
99 virtual TF1* CorrFunc(Int_t) = 0;
100 ClassDef(AliRICHSegmentation,1)
101
102};
103#endif