ROOT logo
#ifndef ALIMUONV1_H
#define ALIMUONV1_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */
// Revision of includes 07/05/2004

/// \ingroup sim
/// \class AliMUONv1
/// \brief AliDetector class for MUON subsystem which implements
/// functions for simulation 
 
#include "AliMUON.h"

#include <TLorentzVector.h>

class TF1;
class TF2;
class TGeoCombiTrans;
class TString;
class TGeoHMatrix;

class AliMUONv1 : public AliMUON 
{
 public:
   AliMUONv1();
   AliMUONv1(const char *name, const char* title = "default");
   virtual  ~AliMUONv1();
   virtual void   CreateGeometry();
   virtual void   CreateMaterials();
   virtual void   UpdateInternalGeometry();
   virtual void   AddAlignableVolumes() const;
   virtual void   Init();
   
                  /// Return the version number of this detector
   virtual Int_t  IsVersion() const {return 1;}
   
   virtual void   StepManager();

        /// Set option to take into account angle effect
   void SetAngleEffect(Bool_t Opt) 
     { fAngleEffect = Opt; }

        /// Set option to take into account magnetic field effect
   void SetMagEffect(Bool_t Opt) 
     { fMagEffect = Opt; }
        
        /// Set max step max in active gas 
   void SetStepMaxInActiveGas(Float_t StepMax)
     {fStepMaxInActiveGas = StepMax; }

 protected:
   /// Not implemented
   AliMUONv1(const AliMUONv1& right);
   /// Not implemented
   AliMUONv1&  operator = (const AliMUONv1& right);

   virtual Int_t  GetGeomModuleId(Int_t volId) const;
   TString CurrentVolumePath() const;	     

   Bool_t  fAngleEffect;           ///< Angle Effect along wires, Default is true
   Bool_t  fMagEffect;             ///< Magnetic Field Effect along wires, Default is true
   Float_t fStepMaxInActiveGas;    ///< Step max in active gas default 0.6cm

   // StepManager 
   Float_t *  fStepSum;   //!< Sum of track steps per chamber
   Float_t *  fDestepSum; //!< Sum of energy deposits per chamber
  
   TLorentzVector fTrackMomentum; ///< Momentum of the particle entering in the active gas of chamber
   TLorentzVector fTrackPosition; ///< Position of the particle exiting the active gas of chamber
   TF1 *          fElossRatio;    ///< Ratio of particle mean eloss with respect MIP's 
   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)  
   TF1 *          fAngleEffectNorma;///< Angle effect: Normalisation form theta=10 degres to theta between 0 and 10 (Khalil BOUDJEMLINE sep 2003 Ph.D Thesis)
   TF2 *          fMagAngleEffectNorma;///< Magnetic field effect: Normalisation from theta=16 degres to theta between -20 and 20 (Lamia Benhabib jun 2006 Master Thesis)
    
   ClassDef(AliMUONv1,6)  // MUON Detector class Version 1
};
#endif







 AliMUONv1.h:1
 AliMUONv1.h:2
 AliMUONv1.h:3
 AliMUONv1.h:4
 AliMUONv1.h:5
 AliMUONv1.h:6
 AliMUONv1.h:7
 AliMUONv1.h:8
 AliMUONv1.h:9
 AliMUONv1.h:10
 AliMUONv1.h:11
 AliMUONv1.h:12
 AliMUONv1.h:13
 AliMUONv1.h:14
 AliMUONv1.h:15
 AliMUONv1.h:16
 AliMUONv1.h:17
 AliMUONv1.h:18
 AliMUONv1.h:19
 AliMUONv1.h:20
 AliMUONv1.h:21
 AliMUONv1.h:22
 AliMUONv1.h:23
 AliMUONv1.h:24
 AliMUONv1.h:25
 AliMUONv1.h:26
 AliMUONv1.h:27
 AliMUONv1.h:28
 AliMUONv1.h:29
 AliMUONv1.h:30
 AliMUONv1.h:31
 AliMUONv1.h:32
 AliMUONv1.h:33
 AliMUONv1.h:34
 AliMUONv1.h:35
 AliMUONv1.h:36
 AliMUONv1.h:37
 AliMUONv1.h:38
 AliMUONv1.h:39
 AliMUONv1.h:40
 AliMUONv1.h:41
 AliMUONv1.h:42
 AliMUONv1.h:43
 AliMUONv1.h:44
 AliMUONv1.h:45
 AliMUONv1.h:46
 AliMUONv1.h:47
 AliMUONv1.h:48
 AliMUONv1.h:49
 AliMUONv1.h:50
 AliMUONv1.h:51
 AliMUONv1.h:52
 AliMUONv1.h:53
 AliMUONv1.h:54
 AliMUONv1.h:55
 AliMUONv1.h:56
 AliMUONv1.h:57
 AliMUONv1.h:58
 AliMUONv1.h:59
 AliMUONv1.h:60
 AliMUONv1.h:61
 AliMUONv1.h:62
 AliMUONv1.h:63
 AliMUONv1.h:64
 AliMUONv1.h:65
 AliMUONv1.h:66
 AliMUONv1.h:67
 AliMUONv1.h:68
 AliMUONv1.h:69
 AliMUONv1.h:70
 AliMUONv1.h:71
 AliMUONv1.h:72
 AliMUONv1.h:73
 AliMUONv1.h:74
 AliMUONv1.h:75
 AliMUONv1.h:76
 AliMUONv1.h:77
 AliMUONv1.h:78
 AliMUONv1.h:79
 AliMUONv1.h:80
 AliMUONv1.h:81
 AliMUONv1.h:82
 AliMUONv1.h:83
 AliMUONv1.h:84
 AliMUONv1.h:85
 AliMUONv1.h:86