]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPC.h
Script supersceeded by AliForwarddNdetaTask.C and
[u/mrichter/AliRoot.git] / TPC / AliTPC.h
index f83af287e92d5960eab14c17b6f5287cb0d06377..49d4666e510d4a10869d0ea2eb44e4395322b2b3 100644 (file)
@@ -18,9 +18,10 @@ class TTree;
 class AliTPCDigitsArray;
 class AliTPCLoader;
 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" 
@@ -33,10 +34,9 @@ public:
   AliTPC(const char *name, const char *title);
   
   virtual AliLoader* MakeLoader(const char* topfoldername);
-  
+  void          CreateDebugStremer();
   virtual      ~AliTPC();
   virtual void  AddHit(Int_t a1, Int_t *a2, Float_t *a3);
-  virtual void  BuildGeometry();
   virtual void  CreateGeometry() {}
   virtual void  CreateMaterials();
   virtual void  AddAlignableVolumes() const {}
@@ -56,7 +56,6 @@ 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);
@@ -70,7 +69,7 @@ public:
   void SetDigitsArray(AliTPCDigitsArray* param) {fDigitsArray=param;}  //MI change
 
 // additional function neccesary for the new hits 
-   virtual void MakeBranch2(Option_t *opt=" ", const char *file=0);  //
+   virtual void MakeBranch(Option_t *opt=" ");  //
    virtual void SetTreeAddress();
    virtual void SetTreeAddress2();
    virtual void AddHit2(Int_t a1,  Int_t *a2, Float_t *a3);  //
@@ -80,9 +79,6 @@ public:
    virtual AliHit* NextHit();
    virtual AliHit* FirstHit2(Int_t track);
    virtual AliHit* NextHit2();
-   virtual void LoadPoints(Int_t dummy);
-   virtual void LoadPoints2(Int_t dummy);
-   virtual void LoadPoints3(Int_t dumy);
    virtual void FinishPrimary();
    virtual void RemapTrackHitIDs(Int_t *map);
    void SetHitType(Int_t type){fHitType =type;} //set type of hit container
@@ -98,6 +94,8 @@ public:
    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
+   // LHC clock phase switch 0 - no phase, 1 - random, 2 - from the OCDB
+   void SetLHCclockPhase(Int_t sw){fLHCclockPhaseSw = sw;}
 // static functions
    static AliTPCParam* LoadTPCParam(TFile *file); 
 protected:
@@ -118,7 +116,7 @@ protected:
 
   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:
+ protected:
   AliTPC(const AliTPC& t);
   AliTPC &operator = (const AliTPC & param);
   //
@@ -139,8 +137,9 @@ protected:
   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,13)  // Time Projection Chamber class
+  TTreeSRedirector *fDebugStreamer;     //!debug streamer
+  Int_t fLHCclockPhaseSw; //! lhc clock phase switch
+  ClassDef(AliTPC,14)  // Time Projection Chamber class
 };