]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALEMCGeometry.h
set particle type in test simulation
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALEMCGeometry.h
index bfeec46bae21a2d839af64c9d9a6556ace2dbc96..69feb3ad9ebde9e577a0b2905e261f45f2992145 100644 (file)
@@ -32,7 +32,8 @@ public:
   AliEMCALEMCGeometry(); // default ctor only for internal usage (singleton)
   AliEMCALEMCGeometry(const AliEMCALEMCGeometry& geom);
   // ctor only for internal usage (singleton)
-  AliEMCALEMCGeometry(const Text_t* name, const Text_t* title);
+  AliEMCALEMCGeometry(const Text_t* name, const Text_t* title,
+                      const Text_t* mcname="", const Text_t* mctitle="");
 
   virtual ~AliEMCALEMCGeometry(void); 
 
@@ -47,11 +48,11 @@ public:
   //
   Bool_t IsInitialized(void) const { return fgInit ; }
   static const Char_t* GetDefaultGeometryName() {return fgkDefaultGeometryName;}
-  void   PrintGeometry();                                            //*MENU*  
+  void   PrintGeometry();        //*MENU*  
   
-  void   Init(void);                           // initializes the parameters of EMCAL
+  void   Init(const Text_t* mcname="", const Text_t* mctitle=""); // initializes the parameters of EMCAL
   void   CheckAdditionalOptions();        //
-  void   DefineSamplingFraction();        // Jun 5, 2006
+  void   DefineSamplingFraction(const Text_t* mcname="", const Text_t* mctitle="");        
 
   //////////////////////////////////////
   // Return EMCAL geometrical parameters
@@ -91,6 +92,8 @@ public:
   Float_t GetTrd1Angle() const {return fTrd1Angle;}
   Float_t Get2Trd1Dx2()  const {return f2Trd1Dx2;}
   Float_t GetEtaMaxOfTRD1() const {return fEtaMaxOfTRD1;}
+  Float_t GetTrd1AlFrontThick() const { return fTrd1AlFrontThick;}
+  Float_t GetTrd1BondPaperThick() const {return fTrd1BondPaperThick;}
   // --
   Int_t   GetNCellsInSupMod() const {return fNCellsInSupMod;}
   Int_t   GetNCellsInModule()  const {return fNCellsInModule; }
@@ -112,7 +115,7 @@ public:
   Int_t   GetNTowers() const {return fNPhi * fNZ ;}
   //
   Double_t GetPhiCenterOfSM(Int_t nsupmod) const;
-  Float_t *GetSuperModulesPars() {return fParSM;}
+  Float_t GetSuperModulesPar(Int_t ipar) const {return fParSM[ipar];}
   //
   Bool_t   GetPhiBoundariesOfSM   (Int_t nSupMod, Double_t &phiMin, Double_t &phiMax) const;
   Bool_t   GetPhiBoundariesOfSMGap(Int_t nPhiSec, Double_t &phiMin, Double_t &phiMax) const;
@@ -125,7 +128,7 @@ public:
 /*   TArrayD  GetEtaCentersOfCells() const {return fEtaCentersOfCells;}           // [fNEta*fNETAdiv*fNPhi*fNPHIdiv], positive direction (eta>0); eta depend from phi position;  */
 /*   TArrayD  GetPhiCentersOfCells() const {return fPhiCentersOfCells;}           // [fNPhi*fNPHIdiv] from center of SM (-10. < phi < +10.) */
 
-       static int ParseString(const TString &topt, TObjArray &Opt) ; 
+  static int ParseString(const TString &topt, TObjArray &Opt) ; 
 
   ///////////////////////////////
   //Geometry data member setters
@@ -154,19 +157,17 @@ public:
 
   //////////////////////////////////////////////////
   // Obsolete methods to be thrown out when feasible
-  Float_t GetAlFrontThickness() const { return fAlFrontThick;}
   Float_t GetGap2Active() const {return  fGap2Active ;}
   Float_t GetSteelFrontThickness() const { return fSteelFrontThick;}
   Float_t GetTrd2AngleY()const {return fTrd2AngleY;}
   Float_t Get2Trd2Dy2()  const {return f2Trd2Dy2;}
   Float_t GetTubsR()     const {return fTubsR;}
   Float_t GetTubsTurnAngle() const {return fTubsTurnAngle;}
-  Float_t GetIP2ECASection() const { return ( GetIPDistance() + GetAlFrontThickness() 
-                                             + GetGap2Active() ) ; }   
+  //  Float_t GetIP2ECASection() const { return ( GetIPDistance() + GetAlFrontThickness() 
+  //                                         + GetGap2Active() ) ; }   
   //////////////////////////////////////////////////
-
-  static Bool_t  fgInit;               // Tells if geometry has been succesfully set up.
   static const Char_t* fgkDefaultGeometryName; // Default name of geometry
+  static Bool_t  fgInit;               // Tells if geometry has been succesfully set up.
 
 private:
 
@@ -228,6 +229,9 @@ private:
   TArrayD fPhiBoundariesOfSM;            // phi boundaries of SM in rad; size is fNumberOfSuperModules;
   TArrayD fPhiCentersOfSM;                // phi of centers of SMl size is fNumberOfSuperModules/2
   Float_t fEtaMaxOfTRD1;                 // max eta in case of TRD1 geometry (see AliEMCALShishKebabTrd1Module)
+  // Oct 26,2010
+  Float_t fTrd1AlFrontThick;            // Thickness of the Al front plate  
+  Float_t fTrd1BondPaperThick;          // Thickness of the Bond Paper sheet  
   // Local Coordinates of SM
   TArrayD fCentersOfCellsEtaDir;        // size fNEta*fNETAdiv (for TRD1 only) (eta or z in SM, in cm)
   TArrayD fCentersOfCellsXDir;          // size fNEta*fNETAdiv (for TRD1 only) (       x in SM, in cm)
@@ -246,7 +250,6 @@ private:
   ////////////////////////////////////////////////////////////
   //Obsolete member data that will be thrown out when feasible
   //
-  Float_t fAlFrontThick;               // Thickness of the front Al face of the support box  
   Float_t fGap2Active;                 // Gap between the envelop and the active material
   Float_t fSteelFrontThick;             // Thickness of the front stell face of the support box - 9-sep-04
   // TRD2 options - 27-jan-07
@@ -259,7 +262,7 @@ private:
 
   ///////////////////////////////////////////////////////////
 
-  ClassDef(AliEMCALEMCGeometry, 1) // EMCAL geometry class 
+  ClassDef(AliEMCALEMCGeometry, 2) // EMCAL geometry class 
 };
 
 #endif // AliEMCALEMCGEOMETRY_H