New rec. point object for 3D Hough reconstruction.
[u/mrichter/AliRoot.git] / RICH / AliRICH.h
CommitLineData
237c933d 1#ifndef ALIRICH_H
2#define ALIRICH_H
2e5f0f7b 3
3da30618 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
2e5f0f7b 9
fe4da5cc 10////////////////////////////////////////////////
11// Manager and hits classes for set:RICH //
12////////////////////////////////////////////////
fe4da5cc 13#include "AliDetector.h"
ddae0931 14#include "AliRICHConst.h"
2e5f0f7b 15#include "AliRICHChamber.h"
237c933d 16static const int kNCH=7;
fe4da5cc 17
fe4da5cc 18
237c933d 19class AliRICHHit;
2e5f0f7b 20class AliRICHPadHit;
21class AliRICHRawCluster;
22class AliRICHRecHit;
23class AliRICHClusterFinder;
24class AliRICHDetect;
25class AliRICHChamber;
26class AliRICHCerenkov;
a2f7eaf6 27class AliSegmentation;
2e5f0f7b 28class AliRICHResponse;
29class AliRICHEllipse;
237c933d 30class AliRICHGeometry;
ddae0931 31
32class AliRICH : public AliDetector {
33 public:
34 AliRICH();
35 AliRICH(const char *name, const char *title);
237c933d 36 AliRICH(const AliRICH& RICH);
ddae0931 37 virtual ~AliRICH();
237c933d 38 virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
39 virtual void AddCerenkov(Int_t track, Int_t *vol, Float_t *cerenkovs);
40 virtual void AddPadHit(Int_t *clhits);
41 virtual void AddDigits(Int_t id, Int_t *tracks, Int_t *charges, Int_t *digits);
42 virtual void AddRawCluster(Int_t id, const AliRICHRawCluster& cluster);
6fb24c3c 43 virtual void AddRecHit(Int_t id, Float_t* rechit, Float_t* photons, Int_t* padsx, Int_t* padsy);
2e5f0f7b 44
45
ddae0931 46 virtual void BuildGeometry();
452a64c6 47 virtual void CreateGeometry();
48 virtual void CreateMaterials();
49 virtual Float_t AbsoCH4(Float_t x);
50 virtual Float_t Fresnel(Float_t ene,Float_t pdoti, Bool_t pola);
ddae0931 51 virtual void StepManager();
52 Int_t DistancetoPrimitive(Int_t px, Int_t py);
53 virtual Int_t IsVersion() const =0;
54//
2e5f0f7b 55 TClonesArray *PadHits() {return fPadHits;}
56 TClonesArray *Cerenkovs() {return fCerenkovs;}
ddae0931 57 virtual void MakeBranch(Option_t *opt=" ");
58 void SetTreeAddress();
59 virtual void ResetHits();
60 virtual void ResetDigits();
2e5f0f7b 61 virtual void ResetRawClusters();
62 virtual void ResetRecHits();
237c933d 63 virtual void FindClusters(Int_t nev,Int_t lastEntry);
d28b5fc2 64 virtual void Digitise(Int_t nev,Int_t flag,Option_t *opt=" ",Text_t *name=" ");
ddae0931 65//
66// Configuration Methods (per station id)
67//
68// Set Chamber Segmentation Parameters
69// id refers to the station and isec to the cathode plane
ddae0931 70// Set Segmentation and Response Model
2e5f0f7b 71 virtual void SetGeometryModel(Int_t id, AliRICHGeometry *geometry);
a2f7eaf6 72 virtual void SetSegmentationModel(Int_t id, AliSegmentation *segmentation);
2e5f0f7b 73 virtual void SetResponseModel(Int_t id, AliRICHResponse *response);
ddae0931 74 virtual void SetNsec(Int_t id, Int_t nsec);
2e5f0f7b 75// Set Reconstruction Model
76 virtual void SetReconstructionModel(Int_t id, AliRICHClusterFinder *reconstruction);
6fb24c3c 77// Set source debugging level
78 void SetDebugLevel(Int_t level) {fDebugLevel=level;}
79// Get source debugging level
80 Int_t GetDebugLevel() {return fDebugLevel;}
ddae0931 81// Response Simulation
237c933d 82 virtual Int_t MakePadHits(Float_t xhit,Float_t yhit,Float_t eloss,Int_t id, ResponseType res);
ddae0931 83// Return reference to Chamber #id
2e5f0f7b 84 virtual AliRICHChamber& Chamber(Int_t id) {return *((AliRICHChamber *) (*fChambers)[id]);}
ddae0931 85// Retrieve pad hits for a given Hit
237c933d 86 virtual AliRICHPadHit* FirstPad(AliRICHHit *hit, TClonesArray *clusters);
87 virtual AliRICHPadHit* NextPad(TClonesArray *clusters);
ddae0931 88// Return pointers to digits
89 TObjArray *Dchambers() {return fDchambers;}
90 Int_t *Ndch() {return fNdch;}
91 virtual TClonesArray *DigitsAddress(Int_t id) {return ((TClonesArray *) (*fDchambers)[id]);}
2e5f0f7b 92// Return pointers to rec. hits
93 TObjArray *RecHits() {return fRecHits;}
94 Int_t *Nrechits() {return fNrechits;}
95 virtual TClonesArray *RecHitsAddress(Int_t id) {return ((TClonesArray *) (*fRecHits)[id]);}
ddae0931 96// Return pointers to reconstructed clusters
2e5f0f7b 97 virtual TClonesArray *RawClustAddress(Int_t id) {return ((TClonesArray *) (*fRawClusters)[id]);}
237c933d 98// Assignment operator
99 AliRICH& operator=(const AliRICH& rhs);
ddae0931 100
101
102 protected:
103 TObjArray *fChambers; // List of Tracking Chambers
2e5f0f7b 104 Int_t fNPadHits; // Number of clusters
105 Int_t fNcerenkovs; // Number of cerenkovs
106 TClonesArray *fPadHits; // List of clusters
ddae0931 107 TObjArray *fDchambers; // List of digits
ddae0931 108 TClonesArray *fCerenkovs; // List of cerenkovs
488e98ba 109 Int_t fNdch[kNCH]; // Number of digits
ddae0931 110 Text_t *fFileName; // Filename for event mixing
2e5f0f7b 111 TObjArray *fRawClusters; // List of raw clusters
112 TObjArray *fRecHits; // List of rec. hits
488e98ba 113 Int_t fNrawch[kNCH]; // Number of raw clusters
114 Int_t fNrechits[kNCH]; // Number of rec hits
6fb24c3c 115 Int_t fDebugLevel; // Source debugging level
378f6387 116
452a64c6 117 Int_t fCkovNumber; // Number of Cerenkov photons
118 Int_t fCkovQuarz; // Cerenkovs crossing quartz
119 Int_t fCkovGap; // Cerenkovs crossing gap
120 Int_t fCkovCsi; // Cerenkovs crossing csi
121 Int_t fLostRfreo; // Cerenkovs reflected in freon
122 Int_t fLostRquar; // Cerenkovs reflected in quartz
123 Int_t fLostAfreo; // Cerenkovs absorbed in freon
124 Int_t fLostAquarz; // Cerenkovs absorbed in quartz
125 Int_t fLostAmeta; // Cerenkovs absorbed in methane
126 Int_t fLostCsi; // Cerenkovs below csi quantum efficiency
127 Int_t fLostWires; // Cerenkovs lost in wires
128 Int_t fFreonProd; // Cerenkovs produced in freon
129 Float_t fMipx; // x coord. of MIP
130 Float_t fMipy; // y coord. of MIP
131 Int_t fFeedbacks; // Number of feedback photons
132 Int_t fLostFresnel; // Cerenkovs lost by Fresnel reflection
ddae0931 133
134 ClassDef(AliRICH,1) //Hits manager for set:RICH
2e5f0f7b 135};
fe4da5cc 136#endif
137
138
139
ddae0931 140
141
142
143
144
145
146
147
148
149
150
151