]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUON.h
syntax correction
[u/mrichter/AliRoot.git] / MUON / AliMUON.h
CommitLineData
a9e2aefa 1#ifndef ALIMUON_H
2#define ALIMUON_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
fe4da5cc 8////////////////////////////////////////////////
9// Manager and hits classes for set:MUON //
10////////////////////////////////////////////////
11#include "AliDetector.h"
ecfa008b 12// #include "AliMUONTriggerCircuit.h" // cp
a9e2aefa 13
a9e2aefa 14class AliMUONChamber;
15class AliMUONLocalTrigger;
16class AliMUONGlobalTrigger;
17class AliMUONTriggerCircuit;
18class AliMUONTriggerDecision;
a30a000f 19class AliSegmentation;
a9e2aefa 20class AliMUONResponse;
21class AliMUONHit;
22class AliMUONPadHit;
a897a37a 23class AliMUONRawCluster;
30aaba74 24class AliMUONClusterFinderVS;
a9e2aefa 25class AliMUONReconstHit;
26class TVector;
94de3818 27#include "TObjArray.h"
a9e2aefa 28class TFile;
29class TTree;
fe4da5cc 30
31
fe4da5cc 32class AliMUON : public AliDetector {
33 public:
34 AliMUON();
35 AliMUON(const char *name, const char *title);
a9e2aefa 36 AliMUON(const AliMUON& rMUON);
fe4da5cc 37 virtual ~AliMUON();
a9e2aefa 38 virtual void AddHit(Int_t track , Int_t *vol, Float_t *hits);
39 virtual void AddPadHit(Int_t* clhits);
40 virtual void AddDigits(Int_t id, Int_t* tracks, Int_t* charges,
41 Int_t* digits);
42 virtual void AddRawCluster(Int_t id, const AliMUONRawCluster& clust);
fe4da5cc 43 virtual void BuildGeometry();
a9e2aefa 44 void AddGlobalTrigger(Int_t *singlePlus, Int_t *singleMinus,
45 Int_t *singleUndef, Int_t *pairUnlike,
46 Int_t *pairLike);
47 void AddLocalTrigger(Int_t* ltrigger);
fe4da5cc 48 Int_t DistancetoPrimitive(Int_t px, Int_t py);
a9e2aefa 49 virtual Int_t IsVersion() const {return 0;}
50 TClonesArray *PadHits() {return fPadHits;}
51 TClonesArray *LocalTrigger() {return fLocalTrigger;}
52 TClonesArray *GlobalTrigger() {return fGlobalTrigger;}
2ab0c725 53 virtual void MakeBranch(Option_t *opt=" ", char *file=0);
fe4da5cc 54 void SetTreeAddress();
55 virtual void ResetHits();
56 virtual void ResetDigits();
a9e2aefa 57 virtual void ResetTrigger();
a897a37a 58 virtual void ResetRawClusters();
a9e2aefa 59 // Cluster Finding
60 virtual void FindClusters(Int_t event ,Int_t lastEntry);
61 // Digitisation
2ab0c725 62 virtual void SDigits2Digits();
a9e2aefa 63 virtual void Digitise(Int_t nev,Int_t bgrEvent, Option_t *opt1=" ",
64 Option_t *opt2=" ",Text_t *name=" ");
65 virtual void SortTracks(Int_t *tracks,Int_t *charges, Int_t ntr);
fe4da5cc 66// Configuration Methods (per station id)
67//
68// Set Chamber Segmentation Parameters
a9e2aefa 69// id refers to the station and isec to the cathode plane
70// Set Z values for all chambers
71 virtual void SetChambersZ(const Float_t *Z);
72 virtual void SetChambersZToDefault(void);
73 virtual void SetPadSize(Int_t id, Int_t isec, Float_t p1, Float_t p2);
fe4da5cc 74// Set Signal Generation Parameters
a897a37a 75 virtual void SetSigmaIntegration(Int_t id, Float_t p1);
76 virtual void SetChargeSlope(Int_t id, Float_t p1);
77 virtual void SetChargeSpread(Int_t id, Float_t p1, Float_t p2);
3b3ee6f4 78 virtual void SetMaxAdc(Int_t id, Int_t p1);
fe4da5cc 79// Set Segmentation and Response Model
a9e2aefa 80 virtual void SetSegmentationModel(Int_t id, Int_t isec,
a30a000f 81 AliSegmentation *segmentation);
a9e2aefa 82 virtual void SetResponseModel(Int_t id, AliMUONResponse *response);
fe4da5cc 83 virtual void SetNsec(Int_t id, Int_t nsec);
a897a37a 84// Set Reconstruction Model
30aaba74 85 virtual void SetReconstructionModel(Int_t id, AliMUONClusterFinderVS *reconstruction);
fe4da5cc 86// Set Stepping Parameters
a897a37a 87 virtual void SetMaxStepGas(Float_t p1);
88 virtual void SetMaxStepAlu(Float_t p1);
89 virtual void SetMaxDestepGas(Float_t p1);
90 virtual void SetMaxDestepAlu(Float_t p1);
5c1f55c5 91 virtual void SetAcceptance(Bool_t acc=0, Float_t angmin=2, Float_t angmax=9);
fe4da5cc 92// Response Simulation
802a864d 93 virtual void MakePadHits(Float_t xhit,Float_t yhit, Float_t zhit,
a9e2aefa 94 Float_t eloss, Float_t tof, Int_t id);
95// get Trigger answer
96 void Trigger(Int_t nev);
fe4da5cc 97// Return reference to Chamber #id
a9e2aefa 98 virtual AliMUONChamber& Chamber(Int_t id)
99 {return *((AliMUONChamber *) (*fChambers)[id]);}
100// Return reference to Circuit #id
101 virtual AliMUONTriggerCircuit& TriggerCircuit(Int_t id)
102 {return *((AliMUONTriggerCircuit *) (*fTriggerCircuits)[id]);}
fe4da5cc 103// Retrieve pad hits for a given Hit
a9e2aefa 104 virtual AliMUONPadHit* FirstPad(AliMUONHit *hit, TClonesArray *padHits);
105 virtual AliMUONPadHit* NextPad(TClonesArray *padHits);
106// Return pointers to digits
fe4da5cc 107 TObjArray *Dchambers() {return fDchambers;}
108 Int_t *Ndch() {return fNdch;}
a9e2aefa 109 virtual TClonesArray *DigitsAddress(Int_t id)
110 {return ((TClonesArray *) (*fDchambers)[id]);}
fe4da5cc 111// Return pointers to reconstructed clusters
a897a37a 112 TObjArray *RawClusters() {return fRawClusters;}
a9e2aefa 113 Int_t *Nrawch() {return fNrawch;}
114 virtual TClonesArray *RawClustAddress(Int_t id)
115 {return ((TClonesArray *) (*fRawClusters)[id]);}
116
117 AliMUONRawCluster *RawCluster(Int_t ichamber, Int_t icathod,
118 Int_t icluster);
119// Copy Operator
120 AliMUON& operator = (const AliMUON& rhs);
a897a37a 121
a9e2aefa 122
fe4da5cc 123 protected:
1bd26093 124 Int_t fNCh; // Number of chambers
125 Int_t fNTrackingCh; // Number of tracking chambers
fe4da5cc 126 TObjArray *fChambers; // List of Tracking Chambers
3e1872ed 127 TObjArray *fTriggerCircuits; // List of Trigger Circuits
a9e2aefa 128 Int_t fNPadHits; // Number of pad hits
129 TClonesArray *fPadHits; // List of pad hits
fe4da5cc 130 TObjArray *fDchambers; // List of digits
1bd26093 131 Int_t *fNdch; // [fNCh] Number of digits per chamber
a9e2aefa 132 TObjArray *fRawClusters; // List of raw clusters
1bd26093 133 Int_t *fNrawch; // [fNTrackingCh] Number of raw clusters per chamber
a9e2aefa 134 Int_t fNLocalTrigger; // Number of Local Trigger
135 TClonesArray *fLocalTrigger; // List of Local Trigger
136 Int_t fNGlobalTrigger; // Number of Global Trigger
137 TClonesArray *fGlobalTrigger; // List of Global Trigger
a897a37a 138
fe4da5cc 139//
140 Bool_t fAccCut; //Transport acceptance cut
141 Float_t fAccMin; //Minimum acceptance cut used during transport
142 Float_t fAccMax; //Minimum acceptance cut used during transport
143//
144
145// Stepping Parameters
146 Float_t fMaxStepGas; // Maximum step size inside the chamber gas
147 Float_t fMaxStepAlu; // Maximum step size inside the chamber aluminum
148 Float_t fMaxDestepGas; // Maximum relative energy loss in gas
149 Float_t fMaxDestepAlu; // Maximum relative energy loss in aluminum
a897a37a 150
fe4da5cc 151
a897a37a 152
a9e2aefa 153// Pad Iterator
154 Int_t fMaxIterPad; // Maximum pad index
155 Int_t fCurIterPad; // Current pad index
156// Background eent for event mixing
30f212b7 157 Text_t *fFileName; // ! File with background hits
158 TTree *fTrH1; // Hits Tree for background event
a9e2aefa 159 TClonesArray *fHits2; // List of hits for one track only
160 TClonesArray *fPadHits2; // List of clusters for one track only
a897a37a 161
a1001283 162 ClassDef(AliMUON,1) // MUON Detector base class
a897a37a 163};
fe4da5cc 164#endif
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179