]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDv1.h
Corrected call to the static method AliBitPacking::UnpackWord
[u/mrichter/AliRoot.git] / TRD / AliTRDv1.h
index 7365aaa115d12b769869dff564fe771535af5bbc..118300148ceb723b75fd3e830e2191550b08d5c9 100644 (file)
@@ -16,7 +16,8 @@ Double_t IntSpecGeant(Double_t *x, Double_t *par);
 #include "AliTRD.h"
 
 class TF1;
-
+class TTree;
+class TFile;
 class AliTRDsim;
 
 //_____________________________________________________________________________
@@ -30,7 +31,7 @@ class AliTRDv1 : public AliTRD {
   virtual ~AliTRDv1();
   AliTRDv1 &operator=(const AliTRDv1 &trd);
 
-  virtual void       Copy(TObject &trd);
+  virtual void       Copy(TObject &trd) const;
   virtual void       CreateGeometry();
   virtual void       CreateMaterials();
   virtual void       CreateTRhit(Int_t det);
@@ -49,14 +50,15 @@ class AliTRDv1 : public AliTRD {
           void       SetSensSector(Int_t isector);
           void       SetSensSector(Int_t isector, Int_t nsector);
 
-          AliTRDsim *CreateTR();
+          void       SetTR(Bool_t kTRUE)        { fTRon = kTRUE; };
 
           Int_t      GetSensPlane() const       { return fSensPlane;       };
           Int_t      GetSensChamber() const     { return fSensChamber;     };
           Int_t      GetSensSector() const      { return fSensSector;      };
           Int_t      GetSensSectorRange() const { return fSensSectorRange; };
 
-          AliTRDsim *GetTR() const              { return fTR;              };
+          Bool_t     GetTR() const              { return fTRon;            };
+          AliTRDsim *GetTRDsim() const          { return fTR;              };
 
  protected:
 
@@ -68,6 +70,7 @@ class AliTRDv1 : public AliTRD {
   Int_t        fSensSector;             // Sensitive detector sector 
   Int_t        fSensSectorRange;        // Sensitive detector range
 
+  Bool_t       fTRon;                   // Switch for TR simulation
   AliTRDsim   *fTR;                     // TR simulator
 
   Int_t        fTypeOfStepManager;      // Type of Step Manager.
@@ -75,12 +78,17 @@ class AliTRDv1 : public AliTRD {
 
  private:
 
-  virtual Double_t BetheBloch(Double_t bg);
-
+  Double_t     BetheBloch(Double_t bg);
+  Double_t     BetheBlochGeant(Double_t bg);
+  void                Stepping();
+  
   TF1         *fDeltaE;                 // Energy distribution of the delta-electrons (Ermilova)
-  TF1         *fDeltaG;                 // for StepManagerGeant
-   
-  ClassDef(AliTRDv1,3)                  // Transition Radiation Detector version 1 (slow simulator)
+  TF1         *fDeltaG;                 // Energy distribution of the
+                                       // Delta-electrons (GEANT) for StepManagerGeant
+  Float_t      fTrackLength0;          // Save the track length at chamber entrance  
+  Int_t               fPrimaryTrackPid;        // Save the id of the primary track  
+
+  ClassDef(AliTRDv1,4)                  // Transition Radiation Detector version 1 (slow simulator)
 
 };