]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRD.h
effc++ warnings corrected
[u/mrichter/AliRoot.git] / TRD / AliTRD.h
index 03cd736e7683791f3e2f6d094b88c5851b963676..1d16e8afb4bad6eb61aab77e5e0b7fd1a8b51f03 100644 (file)
-#ifndef TRD_H
-#define TRD_H
-////////////////////////////////////////////////
-//  Manager and hits classes for set:TRD     //
-////////////////////////////////////////////////
+#ifndef ALITRD_H
+#define ALITRD_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+////////////////////////////////////////////////////////////////////////////
+//                                                                        //
+//  Manager and hits classes for set: TRD                                 //
+//                                                                        //
+////////////////////////////////////////////////////////////////////////////
+
+#include <TLorentzVector.h>
+#include <TVirtualMC.h>
+
 #include "AliDetector.h"
-#include "AliHit.h" 
+
+#include "AliTRDTriggerL1.h"
+
+class TFile;
+class TLorentzVector;
+
+class AliRun;
+class AliDigit;
+class AliRawReader;
+
+class AliTRDhit;
+class AliTRDsim;
+class AliTRDgeometry;
+
 class AliTRD : public AliDetector {
-public:
+
+ public:
+
   AliTRD();
   AliTRD(const char *name, const char *title);
-  virtual      ~AliTRD() {}
-  virtual void  AddHit(Int_t, Int_t*, Float_t*);
-  virtual void  BuildGeometry();
-  virtual void  CreateGeometry() {}
-  virtual void  CreateMaterials();
-  Int_t         DistancetoPrimitive(Int_t px, Int_t py);
-  virtual void  Init();
-  virtual Int_t IsVersion() const =0;
-  virtual void  StepManager()=0; 
-  virtual void  DrawDetector() {}
-  
-  ClassDef(AliTRD,1)       // Transition Radiation Detector base class
-};
+  virtual         ~AliTRD();
+
+  virtual void     Init();
+  virtual Int_t    IsVersion() const          = 0;
+  virtual void     ResetDigits();     
+
+  virtual void     BuildGeometry();
+  virtual void     CreateGeometry();
+  virtual void     CreateMaterials();
+  virtual void     DrawModule() const;
+  virtual void     LoadPoints(Int_t track);    
+
+  virtual void     Hits2Digits();
+  virtual void     Hits2SDigits();
+  virtual void     SDigits2Digits();
+  virtual void     Digits2Raw();
+  virtual Bool_t   Raw2SDigits(AliRawReader* rawReader);
+  virtual void     MakeBranch(Option_t *option);
+
+  virtual void     AddHit(Int_t, Int_t*, Float_t*)       { }; 
+  virtual void     AddHit(Int_t track, Int_t det, Float_t *hits
+                        , Int_t q, Float_t time, Bool_t inDrift); 
+
+  virtual void     SetTreeAddress();
+
+  virtual void     StepManager()              = 0; 
+  virtual void     StepManagerErmilova()      = 0;
+  virtual void     StepManagerGeant()         = 0;
+  virtual void     StepManagerFixedStep()     = 0;
+  virtual void     SelectStepManager(Int_t t) = 0;
+
+  virtual void     SetStepSize(Double_t s)    = 0;
+  virtual void     SetHits()                             { };
+  virtual void     SetDrawTR(Int_t idraw = 1)            { fDrawTR      = idraw;         };
+  virtual void     SetDisplayType(Int_t type = 0)        { fDisplayType = type;          };
+  virtual void     SetTR(Bool_t )             = 0;
+
+  virtual Bool_t   GetTR() const              = 0;
+  AliTRDgeometry  *GetGeometry() const                   { return fGeometry;             };
+
+  virtual AliDigitizer    *CreateDigitizer(AliRunDigitizer *manager) const; 
+  virtual AliTRDTriggerL1 *CreateTriggerDetector() const { return new AliTRDTriggerL1(); };
+
+ protected:
+
+  AliTRDgeometry  *fGeometry;           //  The TRD geometry
+
+          Float_t  fGasDensity;         //  The density of the drift gas
+          Float_t  fFoilDensity;        //  The density of the entrance window foil
+
+          Int_t    fDrawTR;             //  Switches marking the TR photons in the display
+          Int_t    fDisplayType;        //  Display type (0: normal, 1: detailed) 
+
+ private:
+
+  AliTRD(const AliTRD &trd);
+  AliTRD  &operator=(const AliTRD &trd);
+
+  ClassDef(AliTRD,9)                    //  Transition Radiation Detector base class
 
-const Int_t   nsect   = 18;      //Number of sectors in the full detector
-const Int_t   nmodul  = 6;       //Number of modules in each sector
-const Float_t rmin    = 281;     //r-Coordinates of the TRD-frame
-const Float_t rmax    = 350.282;
-const Float_t zmax1   = 351.2;   //z-Coordinates of the TRD-frame
-const Float_t zmax2   = 292.35;
-const Float_t alframe = 1.0;     //Thickness of the aluminium of the support frame
-const Float_t alfram1 = 1.0;
-const Float_t alfram2 = 0.5;
-const Float_t inframe = 3.0;     //Thickness of the interior of the support frame
-const Float_t ccframe = 1.0;     //Thickness of the carbon chamber frame
-const Float_t pethick = 0.15;    //Thickness of the PE-layer in the radiator
-const Float_t pezpos  =  0.;     //z-position of the PE-layer in the radiator
-const Float_t rathick = 6.23;    //Thickness of the radiator
-const Float_t razpos  = -2.6585; //z-position of the radiator
-const Float_t mythick = 0.005;   //Thickness of the mylar-layer
-const Float_t myzpos  =  0.459;  //z-position of the mylar-layer
-const Float_t xethick = 3.6;     //Thickness of the Xe/C02-layer
-const Float_t xezpos  =  2.2615; //z-position of the Xe/C02-layer
-const Float_t cuthick = 0.002;   //Thickness of the Cu-layer (Pads)
-const Float_t cuzpos  =  4.0625; //z-position of the Cu-layer (Pads)
-const Float_t kathick = 0.01;    //Thickness of the kapton-layer
-const Float_t kazpos  =  4.0695; //z-position of the kapton-layer
-const Float_t nothick = 0.05;    //Thickness of the NOMEX-layer
-const Float_t nozpos  =  4.8235; //z-position of the NOMEX-layer
-const Float_t rothick = 0.018;   //Thickness of the readout-layer
-const Float_t rozpos  =  5.2;    //z-position of the readout-layer
-//_____________________________________________________________________________
-class AliTRDhit : public AliHit {
-
-public:
-  Int_t        fSector;     // TRD sector number
-  Int_t        fChamber;    // TRD chamber number
-  Int_t        fPlane;      // TRD plane number 
-  Float_t      fQ;          // Charge created by a hit (geometry 2)
-public:
-  AliTRDhit() {}
-  AliTRDhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
-  virtual ~AliTRDhit() {}
-  ClassDef(AliTRDhit,1)     // Hits for Transition Radiation Detector
 };
 
 #endif