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