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