]>
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 | |
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 | 23 | class TVector; |
24 | class TFile; | |
25 | class TTree; | |
26 | ||
3fa6cfdd | 27 | class AliLoader; |
fac3a970 | 28 | class AliMUONTriggerCircuit; |
29 | class AliMUONData; | |
a9e2aefa | 30 | class AliMUONResponse; |
504d0837 | 31 | class AliMUONSegmentation; |
a9e2aefa | 32 | class AliMUONHit; |
a897a37a | 33 | class AliMUONRawCluster; |
504d0837 | 34 | class AliMUONGeometry; |
35 | class AliMUONGeometryTransformer; | |
d4bb94a1 | 36 | class AliMUONGeometryBuilder; |
d1cd2474 | 37 | class AliMUONVGeometryBuilder; |
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 | |
504d0837 | 47 | // Geometry |
d1cd2474 | 48 | void AddGeometryBuilder(AliMUONVGeometryBuilder* geomBuilder); |
fe4da5cc | 49 | virtual void BuildGeometry(); |
ce3f5e87 | 50 | virtual Int_t IsVersion() const {return 0;} |
504d0837 | 51 | |
52 | AliMUONGeometryBuilder* GetGeometryBuilder() const {return fGeometryBuilder;} | |
53 | const AliMUONGeometryTransformer* GetGeometryTransformer() const; | |
54 | AliMUONSegmentation* GetSegmentation() const { return fSegmentation; } | |
55 | ||
56 | // MUONData | |
57 | AliMUONData* GetMUONData() {return fMUONData;} | |
3fa6cfdd | 58 | |
ce3f5e87 | 59 | // MUONLoader definition |
3fa6cfdd | 60 | virtual AliLoader* MakeLoader(const char* topfoldername); //builds standard getter (AliLoader type) |
ce3f5e87 | 61 | // Interface with AliMUONData |
62 | virtual void MakeBranch(Option_t *opt=" ") {GetMUONData()->MakeBranch(opt);} | |
d652f85c | 63 | virtual void SetTreeAddress(); |
ce3f5e87 | 64 | virtual void ResetHits() {GetMUONData()->ResetHits();} |
65 | virtual void ResetDigits() {GetMUONData()->ResetDigits();} | |
d652f85c | 66 | virtual void ResetTrigger() {GetMUONData()->ResetTrigger();} |
67 | virtual void ResetRawClusters() {GetMUONData()->ResetRawClusters();} | |
68 | virtual void SetSplitLevel(Int_t SplitLevel) {fSplitLevel=SplitLevel;} | |
cac2eb58 | 69 | |
a9e2aefa | 70 | // Digitisation |
c92eb8ad | 71 | virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const; |
2ab0c725 | 72 | virtual void SDigits2Digits(); |
d1775029 | 73 | virtual void Hits2SDigits(); |
39e39255 | 74 | virtual void Digits2Raw(); |
75 | ||
76 | ||
ce3f5e87 | 77 | // Configuration Methods (per station id) |
78 | // | |
ce3f5e87 | 79 | // Set Signal Generation Parameters |
a897a37a | 80 | virtual void SetSigmaIntegration(Int_t id, Float_t p1); |
81 | virtual void SetChargeSlope(Int_t id, Float_t p1); | |
82 | virtual void SetChargeSpread(Int_t id, Float_t p1, Float_t p2); | |
3b3ee6f4 | 83 | virtual void SetMaxAdc(Int_t id, Int_t p1); |
504d0837 | 84 | // Set Response Model |
a9e2aefa | 85 | virtual void SetResponseModel(Int_t id, AliMUONResponse *response); |
cac2eb58 | 86 | |
ce3f5e87 | 87 | // Set Stepping Parameters |
a897a37a | 88 | virtual void SetMaxStepGas(Float_t p1); |
89 | virtual void SetMaxStepAlu(Float_t p1); | |
90 | virtual void SetMaxDestepGas(Float_t p1); | |
91 | virtual void SetMaxDestepAlu(Float_t p1); | |
ce3f5e87 | 92 | |
d1cd2474 | 93 | // Get Stepping Parameters |
94 | virtual Float_t GetMaxStepGas() const; | |
95 | virtual Float_t GetMaxStepAlu() const; | |
96 | virtual Float_t GetMaxDestepGas() const; | |
97 | virtual Float_t GetMaxDestepAlu() const; | |
883746f3 | 98 | |
99 | // Set alignement option | |
100 | virtual void SetAlign(Bool_t align); | |
d1cd2474 | 101 | |
ce3f5e87 | 102 | // Return reference to Chamber #id |
a9e2aefa | 103 | virtual AliMUONChamber& Chamber(Int_t id) |
ce3f5e87 | 104 | {return *((AliMUONChamber *) (*fChambers)[id]);} |
105 | // Return reference to Circuit #id | |
a9e2aefa | 106 | virtual AliMUONTriggerCircuit& TriggerCircuit(Int_t id) |
107 | {return *((AliMUONTriggerCircuit *) (*fTriggerCircuits)[id]);} | |
ce3f5e87 | 108 | // Return pointers to digits |
a9e2aefa | 109 | AliMUONRawCluster *RawCluster(Int_t ichamber, Int_t icathod, |
110 | Int_t icluster); | |
30178c30 | 111 | // Inherited and overridden from AliModule: |
ce01996f | 112 | //PH virtual void RemapTrackHitIDs(Int_t * map); |
30178c30 | 113 | |
114 | protected: | |
115 | AliMUON(const AliMUON& rMUON); | |
a9e2aefa | 116 | AliMUON& operator = (const AliMUON& rhs); |
aa43efee | 117 | |
504d0837 | 118 | const AliMUONGeometry* GetGeometry() const; |
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 | |
504d0837 | 126 | AliMUONGeometryBuilder* fGeometryBuilder; // Geometry builder |
127 | AliMUONSegmentation* fSegmentation; // New segmentation | |
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 |