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