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