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