]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONChamber.h
PreReading of MC information on demand.
[u/mrichter/AliRoot.git] / MUON / AliMUONChamber.h
CommitLineData
a9e2aefa 1#ifndef ALIMUONCHAMBER_H
2#define ALIMUONCHAMBER_H
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
692de412 8//
474f669f 9/// \ingroup sim
692de412 10/// \class AliMUONChamber
11/// \brief MUON tracking chamber class
c4ee792d 12///
13/// Now only providing DisIntegration function
30178c30 14
15#include <TObject.h>
16#include <TObjArray.h>
a9e2aefa 17
a9e2aefa 18#include "AliMUONResponse.h"
19
a713db22 20class AliMUON;
21class AliMUONHit;
22
a9e2aefa 23
30178c30 24class AliMUONChamber : public TObject
a9e2aefa 25{
26 public:
27 AliMUONChamber();
d81db581 28 AliMUONChamber(Int_t id);
a9e2aefa 29 virtual ~AliMUONChamber();
30
5398f946 31/// Get chamber Id
30178c30 32 virtual Int_t GetId() const {return fId;}
d1cd2474 33
5398f946 34
35/// Set response model
df42123e 36 virtual void SetResponseModel(const AliMUONResponse& thisResponse);
5398f946 37
38/// Get pointer to response model
a9e2aefa 39 virtual AliMUONResponse* &ResponseModel(){return fResponse;}
a713db22 40
a9e2aefa 41//
42// Member function forwarding to the segmentation and response models
43//
5398f946 44/// Calculate pulse height from energy loss
a9e2aefa 45 virtual Float_t IntPH(Float_t eloss) {return fResponse->IntPH(eloss);}
cbf9f933 46
681d067b 47// Initialisation of charge fluctuation for given hit
48 virtual void ChargeCorrelationInit();
49
a9e2aefa 50// Configuration forwarding
51//
5398f946 52/// Define signal distribution region
53/// by number of sigmas of the distribution function
a9e2aefa 54 virtual void SetSigmaIntegration(Float_t p1)
55 {fResponse->SetSigmaIntegration(p1);}
5398f946 56/// Set the single electron pulse-height (ADCchan/e)
a9e2aefa 57 virtual void SetChargeSlope(Float_t p1) {fResponse->SetChargeSlope(p1);}
5398f946 58/// Set width of charge distribution function
a9e2aefa 59 virtual void SetChargeSpread(Float_t p1, Float_t p2) {fResponse->SetChargeSpread(p1,p2);}
5398f946 60/// Set maximum ADC count value
a337f488 61 virtual void SetMaxAdc(Int_t p1) {fResponse->SetMaxAdc(p1);}
a9e2aefa 62//
5398f946 63/// Set charge correlation
16d57990 64 virtual void SetChargeCorrel(Float_t correl) {fResponse->SetChargeCorrel(correl);}
d1cd2474 65
a9e2aefa 66 protected:
c4ee792d 67 /// Not implemented
30178c30 68 AliMUONChamber(const AliMUONChamber & rChamber);
c4ee792d 69 /// Not implemented
30178c30 70 AliMUONChamber& operator =(const AliMUONChamber& rhs);
71
18b6b8c7 72 Int_t fId; ///< chamber number
73 Float_t fCurrentCorrel; //!< charge correlation for current hit.
74
75 AliMUONResponse *fResponse; ///< pointer to response
76 AliMUON *fMUON; ///< pointer to MUON
a9e2aefa 77
e118b27e 78 ClassDef(AliMUONChamber,3) // Muon tracking chamber class
a9e2aefa 79};
80
81#endif