inor correction before clean up for MDC
[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;
fac3a970 28class AliMUONTriggerCircuit;
29class AliMUONData;
a9e2aefa 30class AliMUONResponse;
504d0837 31class AliMUONSegmentation;
a9e2aefa 32class AliMUONHit;
a897a37a 33class AliMUONRawCluster;
504d0837 34class AliMUONGeometry;
35class AliMUONGeometryTransformer;
d4bb94a1 36class AliMUONGeometryBuilder;
d1cd2474 37class AliMUONVGeometryBuilder;
aa43efee 38class AliESD;
1cae9436 39
30178c30 40class 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
82d1ac0a 100 virtual void SetAlign(Bool_t align = true);
101 virtual void SetAlign(const TString& fileName, Bool_t align = true);
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
504d0837 119 const AliMUONGeometry* GetGeometry() const;
48b32e42 120
1bd26093 121 Int_t fNCh; // Number of chambers
ce3f5e87 122 Int_t fNTrackingCh; // Number of tracking chambers*
123 AliMUONData* fMUONData; // Data container for MUON subsystem
d652f85c 124 Int_t fSplitLevel; // Splitlevel when making branches in outfiles.
ce3f5e87 125 TObjArray* fChambers; // List of Tracking Chambers
126 TObjArray* fTriggerCircuits; // List of Trigger Circuits
504d0837 127 AliMUONGeometryBuilder* fGeometryBuilder; // Geometry builder
128 AliMUONSegmentation* fSegmentation; // New segmentation
ce3f5e87 129
130 //
fe4da5cc 131 Bool_t fAccCut; //Transport acceptance cut
132 Float_t fAccMin; //Minimum acceptance cut used during transport
133 Float_t fAccMax; //Minimum acceptance cut used during transport
ce3f5e87 134 //
135 // Stepping Parameters
136 Float_t fMaxStepGas; // Maximum step size inside the chamber gas
137 Float_t fMaxStepAlu; // Maximum step size inside the chamber aluminum
138 Float_t fMaxDestepGas; // Maximum relative energy loss in gas
139 Float_t fMaxDestepAlu; // Maximum relative energy loss in aluminum
140
141 // Pad Iterator
142 Int_t fMaxIterPad; // Maximum pad index
143 Int_t fCurIterPad; // Current pad index
144 // Background eent for event mixing
ce3f5e87 145
cc87dfb6 146 ClassDef(AliMUON,9) // MUON Detector base class
a897a37a 147};
fe4da5cc 148#endif
149