]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDv1.h
OCDB viewer implementation (Ionut)
[u/mrichter/AliRoot.git] / TRD / AliTRDv1.h
index d14fb00d03edd6ac499533c9a5c0d1fe8e4feec5..aa725db5d06f69fc7cb52cd031d0467494d41542 100644 (file)
@@ -1,63 +1,67 @@
-#ifndef TRDv1_H
-#define TRDv1_H
+#ifndef ALITRDV1_H
+#define ALITRDV1_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 version 1    //
-////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////
+//                                                                        //
+//  Manager and hits classes for set: TRD version 1                       //
+//                                                                        //
+////////////////////////////////////////////////////////////////////////////
 
 // Energy spectrum of the delta-rays 
 Double_t Ermilova(Double_t *x, Double_t *par);
+Double_t IntSpecGeant(Double_t *x, Double_t *par);
  
-#include <TF1.h> 
-
 #include "AliTRD.h"
 
+class TF1;
+class TTree;
+class TFile;
+
+class AliTRDsimTR;
+
 //_____________________________________________________________________________
 class AliTRDv1 : public AliTRD {
 
  public:
 
-  AliTRDv1() {};
+  AliTRDv1();
   AliTRDv1(const char *name, const char *title);
-  ~AliTRDv1();
-  virtual void    CreateGeometry();
-  virtual void    CreateMaterials();
-  virtual Int_t   IsVersion() const { return 1; };
-  virtual void    StepManager();
-  virtual void    Init();
+  virtual ~AliTRDv1();
 
-          void    SetSensPlane(Int_t iplane = 0);
-          void    SetSensChamber(Int_t ichamber = 0);
-          void    SetSensSector(Int_t isector = 0);
+  virtual void     Init();
+  virtual Int_t    IsVersion() const          { return 1;      }
 
-          Int_t   GetSensPlane()   { return fSensPlane;   };
-          Int_t   GetSensChamber() { return fSensChamber; };
-          Int_t   GetSensSector()  { return fSensSector;  };
+  virtual void     AddAlignableVolumes() const;
+  virtual void     CreateGeometry();
+  virtual void     CreateMaterials();
+  virtual void     CreateTRhit(Int_t det);
 
- protected:
+  virtual void     StepManager();
 
-  Int_t        fIdSens;                 // Sensitive volume identifier
+          void     SetStepSize(Double_t s)    { fStepSize = s; }
+          void     SetTR(Bool_t tr)           { fTRon = tr;    }
+
+          Bool_t   GetTR() const              { return fTRon;  }
+  AliTRDsimTR     *GetTRDsim() const          { return fTR;    }
+
+ protected:
 
-  Int_t        fIdChamber1;             // Driftchamber volume identifier
-  Int_t        fIdChamber2;             // 
-  Int_t        fIdChamber3;             // 
+          Bool_t   fTRon;               //  Switch for TR simulation
+  AliTRDsimTR     *fTR;                 //  TR simulator
 
-  Int_t        fSensSelect;             // Switch to select only parts of the detector
-  Int_t        fSensPlane;              // Sensitive detector plane
-  Int_t        fSensChamber;            // Sensitive detector chamber
-  Int_t        fSensSector;             // Sensitive detector sector
+          Double_t fStepSize;           //  Used for the fixed step size
+          Float_t  fWion;               //  Ionization potential
 
  private:
 
-  virtual Double_t BetheBloch(Double_t bg);
+  AliTRDv1(const AliTRDv1 &trd);
+  AliTRDv1 &operator=(const AliTRDv1 &trd);
 
-  TF1         *fDeltaE;                 // Energy distribution of the delta-electrons
-   
-  ClassDef(AliTRDv1,1)                  // Transition Radiation Detector version 1 (slow simulator)
+  ClassDef(AliTRDv1,8)                  //  Transition Radiation Detector version 1 (slow simulator)
 
 };