RemapTrackHitID commented out temporarily
[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$ */
30178c30 7// Revision of includes 07/05/2004
3da30618 8
fe4da5cc 9////////////////////////////////////////////////
5a35ac13 10// AliDetector Class for MUON subsystem //
fe4da5cc 11////////////////////////////////////////////////
30178c30 12
13#include <TObjArray.h>
14
fe4da5cc 15#include "AliDetector.h"
ce3f5e87 16#include "AliMUONData.h"
17#include "AliMUONChamber.h"
a9e2aefa 18
30178c30 19class TVector;
20class TFile;
21class TTree;
22
3fa6cfdd 23class AliLoader;
a30a000f 24class AliSegmentation;
fac3a970 25class AliMUONTriggerCircuit;
26class AliMUONData;
a9e2aefa 27class AliMUONResponse;
375da359 28class AliMUONMerger;
a9e2aefa 29class AliMUONHit;
30class AliMUONPadHit;
a897a37a 31class AliMUONRawCluster;
a9e2aefa 32class AliMUONReconstHit;
1cae9436 33class AliMUONMerger;
d1cd2474 34class AliMUONVGeometryBuilder;
aa43efee 35class AliESD;
1cae9436 36
30178c30 37class AliMUON : public AliDetector
38{
39 public:
fe4da5cc 40 AliMUON();
41 AliMUON(const char *name, const char *title);
42 virtual ~AliMUON();
ce3f5e87 43
d1cd2474 44 void AddGeometryBuilder(AliMUONVGeometryBuilder* geomBuilder);
fe4da5cc 45 virtual void BuildGeometry();
ce3f5e87 46 AliMUONData* GetMUONData() {return fMUONData;}
47 virtual Int_t IsVersion() const {return 0;}
3fa6cfdd 48
ce3f5e87 49 // MUONLoader definition
3fa6cfdd 50 virtual AliLoader* MakeLoader(const char* topfoldername); //builds standard getter (AliLoader type)
ce3f5e87 51 // Interface with AliMUONData
52 virtual void MakeBranch(Option_t *opt=" ") {GetMUONData()->MakeBranch(opt);}
d652f85c 53 virtual void SetTreeAddress();
ce3f5e87 54 virtual void ResetHits() {GetMUONData()->ResetHits();}
55 virtual void ResetDigits() {GetMUONData()->ResetDigits();}
d652f85c 56 virtual void ResetTrigger() {GetMUONData()->ResetTrigger();}
57 virtual void ResetRawClusters() {GetMUONData()->ResetRawClusters();}
58 virtual void SetSplitLevel(Int_t SplitLevel) {fSplitLevel=SplitLevel;}
cac2eb58 59
a9e2aefa 60 // Digitisation
c92eb8ad 61 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
2ab0c725 62 virtual void SDigits2Digits();
d1775029 63 virtual void Hits2SDigits();
39e39255 64 virtual void Digits2Raw();
65
66
ce3f5e87 67 // Configuration Methods (per station id)
68 //
69 // Set Chamber Segmentation Parameters
70 // id refers to the station and isec to the cathode plane
71 // Set Z values for all chambers
a9e2aefa 72 virtual void SetChambersZ(const Float_t *Z);
73 virtual void SetChambersZToDefault(void);
74 virtual void SetPadSize(Int_t id, Int_t isec, Float_t p1, Float_t p2);
ce3f5e87 75 // Set Signal Generation Parameters
a897a37a 76 virtual void SetSigmaIntegration(Int_t id, Float_t p1);
77 virtual void SetChargeSlope(Int_t id, Float_t p1);
78 virtual void SetChargeSpread(Int_t id, Float_t p1, Float_t p2);
3b3ee6f4 79 virtual void SetMaxAdc(Int_t id, Int_t p1);
ce3f5e87 80 // Set Segmentation and Response Model
a9e2aefa 81 virtual void SetSegmentationModel(Int_t id, Int_t isec,
a30a000f 82 AliSegmentation *segmentation);
a9e2aefa 83 virtual void SetResponseModel(Int_t id, AliMUONResponse *response);
fe4da5cc 84 virtual void SetNsec(Int_t id, Int_t nsec);
cac2eb58 85
ce3f5e87 86 // Set Merger/Digitizer
1cae9436 87 virtual void SetMerger(AliMUONMerger* merger);
88 virtual AliMUONMerger* Merger();
89
ce3f5e87 90 // Set Stepping Parameters
a897a37a 91 virtual void SetMaxStepGas(Float_t p1);
92 virtual void SetMaxStepAlu(Float_t p1);
93 virtual void SetMaxDestepGas(Float_t p1);
94 virtual void SetMaxDestepAlu(Float_t p1);
5c1f55c5 95 virtual void SetAcceptance(Bool_t acc=0, Float_t angmin=2, Float_t angmax=9);
ce3f5e87 96
d1cd2474 97 // Get Stepping Parameters
98 virtual Float_t GetMaxStepGas() const;
99 virtual Float_t GetMaxStepAlu() const;
100 virtual Float_t GetMaxDestepGas() const;
101 virtual Float_t GetMaxDestepAlu() const;
102
ce3f5e87 103 // Return reference to Chamber #id
a9e2aefa 104 virtual AliMUONChamber& Chamber(Int_t id)
ce3f5e87 105 {return *((AliMUONChamber *) (*fChambers)[id]);}
106 // Return reference to Circuit #id
a9e2aefa 107 virtual AliMUONTriggerCircuit& TriggerCircuit(Int_t id)
108 {return *((AliMUONTriggerCircuit *) (*fTriggerCircuits)[id]);}
ce3f5e87 109 // Retrieve pad hits for a given Hit
a9e2aefa 110 virtual AliMUONPadHit* FirstPad(AliMUONHit *hit, TClonesArray *padHits);
111 virtual AliMUONPadHit* NextPad(TClonesArray *padHits);
ce3f5e87 112 // Return pointers to digits
a9e2aefa 113 AliMUONRawCluster *RawCluster(Int_t ichamber, Int_t icathod,
114 Int_t icluster);
30178c30 115 // Inherited and overridden from AliModule:
ce01996f 116 //PH virtual void RemapTrackHitIDs(Int_t * map);
30178c30 117
118 protected:
119 AliMUON(const AliMUON& rMUON);
a9e2aefa 120 AliMUON& operator = (const AliMUON& rhs);
aa43efee 121
48b32e42 122
1bd26093 123 Int_t fNCh; // Number of chambers
ce3f5e87 124 Int_t fNTrackingCh; // Number of tracking chambers*
125 AliMUONData* fMUONData; // Data container for MUON subsystem
d652f85c 126 Int_t fSplitLevel; // Splitlevel when making branches in outfiles.
ce3f5e87 127 TObjArray* fChambers; // List of Tracking Chambers
d1cd2474 128 TObjArray *fGeometryBuilders; // List of Geometry Builders
ce3f5e87 129 TObjArray* fTriggerCircuits; // List of Trigger Circuits
130
131 //
fe4da5cc 132 Bool_t fAccCut; //Transport acceptance cut
133 Float_t fAccMin; //Minimum acceptance cut used during transport
134 Float_t fAccMax; //Minimum acceptance cut used during transport
ce3f5e87 135 //
136 // Stepping Parameters
137 Float_t fMaxStepGas; // Maximum step size inside the chamber gas
138 Float_t fMaxStepAlu; // Maximum step size inside the chamber aluminum
139 Float_t fMaxDestepGas; // Maximum relative energy loss in gas
140 Float_t fMaxDestepAlu; // Maximum relative energy loss in aluminum
141
142 // Pad Iterator
143 Int_t fMaxIterPad; // Maximum pad index
144 Int_t fCurIterPad; // Current pad index
145 // Background eent for event mixing
ce3f5e87 146 AliMUONMerger *fMerger; // ! pointer to merger
147
feb1e780 148 ClassDef(AliMUON,4) // MUON Detector base class
a897a37a 149};
fe4da5cc 150#endif
151