]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONv1.h
Bug fixed: pointer was not properly deleted
[u/mrichter/AliRoot.git] / MUON / AliMUONv1.h
1 #ifndef ALIMUONV1_H
2 #define ALIMUONV1_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7 // Revision of includes 07/05/2004
8
9 /////////////////////////////////////////////////////////
10 //  Manager and hits classes for set:MUON version 1    //
11 /////////////////////////////////////////////////////////
12  
13 #include <TLorentzVector.h>
14
15 #include "AliMUON.h"
16
17 class TF1;
18 class TGeoCombiTrans;
19 class TString;
20 class TGeoHMatrix;
21
22 class AliMUONv1 : public AliMUON 
23 {
24  public:
25    AliMUONv1();
26    AliMUONv1(const char *name, const char *title);
27    virtual  ~AliMUONv1();
28    virtual void   CreateGeometry();
29    virtual void   CreateMaterials();
30    virtual void   Init();
31    virtual Int_t  IsVersion() const {return 1;}
32    virtual void   StepManager();
33    virtual void   FinishRun();
34    void StepManagerOld();
35    void SetStepManagerVersionOld(Bool_t Opt) 
36      { fStepManagerVersionOld = Opt; }
37    void SetAngleEffect(Bool_t Opt) 
38      { fAngleEffect = Opt; }
39    void SetStepMaxInActiveGas(Float_t StepMax)
40      {fStepMaxInActiveGas = StepMax; }
41
42  protected:
43    AliMUONv1(const AliMUONv1& right);
44    AliMUONv1&  operator = (const AliMUONv1& right);
45
46    virtual Int_t  GetChamberId(Int_t volId) const;
47    TString CurrentVolumePath() const;        
48
49    Bool_t  fStepManagerVersionOld; // Version of StepManager, Default is false
50    Bool_t  fAngleEffect; // Angle Effect along wires, Default is true
51    Float_t fStepMaxInActiveGas;    // Step max in active gas default 0.6cm
52
53    // StepManager 
54    Float_t *  fStepSum; //!
55    Float_t *  fDestepSum; //!
56   
57    TLorentzVector fTrackMomentum; // Momentum of the particle entering in the active gas of chamber
58    TLorentzVector fTrackPosition; // Position of the particle exiting the active gas of chamber
59    TF1 *          fElossRatio;    // Ratio of particle mean eloss with respect MIP's 
60    TF1 *          fAngleEffect10; // Angle effect in tracking chambers at theta =10 degres as a function of ElossRatio (Khalil BOUDJEMLINE sep 2003 Ph.D Thesis) (in micrometers)  
61    TF1 *          fAngleEffectNorma;// Angle effect: Normalisation form theta=10 degres to theta between 0 and 10 (Khalil BOUDJEMLINE sep 2003 Ph.D Thesis)
62
63    ClassDef(AliMUONv1,3)  // MUON Detector class Version 1
64 };
65 #endif
66
67
68
69
70
71
72