X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TPC%2FAliTPC.h;h=49d44d628bed8fb4b9c7485914b4edb813e36313;hb=c45d414a54a37b000c7c2c3ea4e6798e1d2309ee;hp=ae46b868543deb340fd8bfea449428ee525f6ed7;hpb=179c6296933f765a926e55ebbf1188a75d495c62;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/AliTPC.h b/TPC/AliTPC.h index ae46b868543..49d44d628be 100644 --- a/TPC/AliTPC.h +++ b/TPC/AliTPC.h @@ -11,15 +11,17 @@ class TFile; class TTree; +#include #include #include 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" @@ -30,14 +32,11 @@ 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); 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 {} @@ -57,21 +56,20 @@ 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 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); // @@ -81,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 @@ -94,9 +89,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 +113,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 +134,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 }; @@ -159,7 +159,7 @@ public: Float_t Time() const {return fTime;} - ClassDef(AliTPChit,2) // Time Projection Chamber hits + ClassDef(AliTPChit,3) // Time Projection Chamber hits };