]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPC.h
First implemnetation of the inteface to the GOOFIE
[u/mrichter/AliRoot.git] / TPC / AliTPC.h
index ae46b868543deb340fd8bfea449428ee525f6ed7..ef140bcefee7b03ded3d35daafaf3906be3b8415 100644 (file)
@@ -11,6 +11,7 @@
 
 class TFile;
 class TTree;
+#include <Htypes.h>
 #include <TMatrixFfwd.h>
 #include <TVector.h>
 
@@ -30,8 +31,6 @@ class AliTPC : public AliDetector {
 public:
   AliTPC(); 
   AliTPC(const char *name, const char *title);
-  AliTPC(const AliTPC& t);
-  AliTPC &operator = (const AliTPC & param);
   
   virtual AliLoader* MakeLoader(const char* topfoldername);
   
@@ -94,9 +93,11 @@ public:
    Bool_t  IsSectorActive(Int_t sec) const;    // check if the sector is active
    void    SetActiveSectors(Int_t * sectors, Int_t n);  //set active sectors
    Int_t GetHitType() const {return fHitType;}
-   void    SetActiveSectors(Int_t flag=0); //loop over al hits and set active only hitted sectors
+   void    SetActiveSectors(Int_t flag=1); //loop over al hits and set active only hitted sectors
    Bool_t  TrackInVolume(Int_t id,Int_t track);  //return true if current track is in volume
-
+   void    SetPrimaryIonisation(Bool_t flag = kTRUE) {fPrimaryIonisation = flag;}
+   void    SetGainFactor(Float_t gain){fGainFactor=gain;} //gas gain scaling factor
+   Float_t GetGainFactor()const {return fGainFactor;}//gas gain scaling factor
 // static functions
    static AliTPCParam* LoadTPCParam(TFile *file); 
 protected:
@@ -116,8 +117,10 @@ protected:
   //MK changes
 
   Float_t        fSide;  // selects left(-1), right(+1), or both(0) sides of the TPC
-   
+  Bool_t     fPrimaryIonisation; //switch between Fluka(true) and geant3(false)
  private:
+  AliTPC(const AliTPC& t);
+  AliTPC &operator = (const AliTPC & param);
   //
   void SetDefaults();
   void DigitizeRow(Int_t irow,Int_t isec,TObjArray **rowTriplet);
@@ -135,8 +138,9 @@ protected:
   Float_t *  fNoiseTable;  //! table with noise
   Int_t      fCurrentNoise; //! index of the noise in  the noise table 
   Bool_t*    fActiveSectors; //! bool indicating which sectors are active
+  Float_t    fGainFactor; // scaling factor
 
-  ClassDef(AliTPC,12)  // Time Projection Chamber class
+  ClassDef(AliTPC,13)  // Time Projection Chamber class
 };
 
 
@@ -159,7 +163,7 @@ public:
 
    Float_t Time() const {return fTime;}
  
-   ClassDef(AliTPChit,2)  // Time Projection Chamber hits
+   ClassDef(AliTPChit,3)  // Time Projection Chamber hits
 };