]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPC.h
Updated flags for low flux case (A. Dainese)
[u/mrichter/AliRoot.git] / TPC / AliTPC.h
index 3f07e51046b29aa3b648e764f9a71a38bd8077f4..5c128ce97292f35bf6fee2b2d85fc767a748f4c3 100644 (file)
@@ -21,6 +21,8 @@ class AliTPCParam;
 class AliTPCTrackHits; // M.I.  -MI4 old hits - to be removed later
 class AliTPCTrackHitsV2; // M.I.
 class AliRawReader;
+class TTreeSRedirector;
+
 #include "AliDetector.h"
 #include "AliDigit.h" 
 #include "AliHit.h" 
@@ -56,14 +58,13 @@ public:
   virtual void  Digits2Raw();
   virtual Bool_t Raw2SDigits(AliRawReader* rawReader);
   Int_t         GetNsectors() const  {return fNsectors;}
-  virtual void  MakeBranch(Option_t *opt=" ");
   virtual void  ResetDigits();
   virtual void  SetSens(Int_t sens);
   virtual void  SetSide(Float_t side);
 
 
   virtual void  StepManager()=0;
-  virtual void  DrawDetector() {}
+  virtual void  DrawDetector() const  {}
   AliTPCDigitsArray*  GetDigitsArray() {return fDigitsArray;} //MI change
   AliTPCParam *GetParam(){return fTPCParam;} // M.K, M.I changes
   void SetParam(AliTPCParam *param){fTPCParam=param;} // M.K, M.I changes
@@ -93,9 +94,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:
@@ -115,7 +118,7 @@ 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);
@@ -136,8 +139,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
-
-  ClassDef(AliTPC,12)  // Time Projection Chamber class
+  Float_t    fGainFactor; // scaling factor
+  TTreeSRedirector *fDebugStreamer;     //!debug streamer
+  ClassDef(AliTPC,13)  // Time Projection Chamber class
 };
 
 
@@ -160,7 +164,7 @@ public:
 
    Float_t Time() const {return fTime;}
  
-   ClassDef(AliTPChit,2)  // Time Projection Chamber hits
+   ClassDef(AliTPChit,3)  // Time Projection Chamber hits
 };