X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRD.h;h=fee62a80f74d2c3ca3528d26a425f230eae699ec;hb=6a62da73fb1ac261f88e15bf2ed2f5172012ad8b;hp=99b74a0a83c16dc90b67735193446206dcb11903;hpb=6244debe5b3eb4499eff1265a6ff5f1356db5e7e;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRD.h b/TRD/AliTRD.h index 99b74a0a83c..fee62a80f74 100644 --- a/TRD/AliTRD.h +++ b/TRD/AliTRD.h @@ -5,99 +5,75 @@ /* $Id$ */ -//////////////////////////////////////////////// -// Manager and hits classes for set: TRD // -//////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +// // +// Manager and hits classes for set: TRD // +// // +//////////////////////////////////////////////////////////////////////////// -#include "AliDetector.h" -class TFile; +#include "AliDetector.h" +#include "AliTRDTrigger.h" -class AliRun; -class AliDigit; +class AliRawReader; -class AliTRDhit; -class AliTRDsim; class AliTRDgeometry; -class AliTRDdataArrayI; +class AliTriggerDetector; -//_____________________________________________________________________________ class AliTRD : public AliDetector { public: AliTRD(); AliTRD(const char *name, const char *title); - AliTRD(const AliTRD &trd); - virtual ~AliTRD(); - - AliTRD &operator=(const AliTRD &trd); - - virtual void AddHit(Int_t track, Int_t det, Float_t *hits, Int_t q); - virtual void AddDigit(Int_t *digits, Int_t *amp); - virtual void AddRecPoint(Float_t *pos, Int_t *digits - , Int_t det, Float_t amp, Int_t *tracks); - virtual void BuildGeometry(); - virtual void Copy(TObject &trd); - virtual void CreateGeometry(); - virtual void CreateMaterials(); - virtual void DrawModule(); - Int_t DistancetoPrimitive(Int_t px, Int_t py); - virtual void LoadPoints(Int_t track); - TObjArray *RecPoints() const { return fRecPoints; }; - virtual void Init(); - virtual Int_t IsVersion() const = 0; - virtual void MakeBranch(Option_t* option, char *file=0); - virtual void ResetDigits(); - virtual void ResetRecPoints(); - virtual void StepManager() = 0; - virtual void SetTreeAddress(); - - virtual void SetGasMix(Int_t imix = 0); - virtual void SetHits() {}; - virtual void SetPHOShole(); - virtual void SetRICHhole(); - virtual void SetDrawTR(Int_t idraw = 1) { fDrawTR = idraw; }; - virtual void SetDisplayType(Int_t type = 0) { fDisplayType = type; }; - - AliTRDgeometry *GetGeometry() const { return fGeometry; }; - - virtual void SetSensChamber(Int_t ichamber) = 0; - virtual void SetSensPlane(Int_t iplane) = 0; - virtual void SetSensSector(Int_t isector) = 0; - virtual void SetSensSector(Int_t isector, Int_t nsector) = 0; - - virtual Int_t GetSensChamber() const = 0; - virtual Int_t GetSensPlane() const = 0; - virtual Int_t GetSensSector() const = 0; - virtual Int_t GetSensSectorRange() const = 0; - - virtual void Hits2Digits(); - virtual void Hits2SDigits(); - virtual void SDigits2Digits(); - - virtual AliTRDsim *CreateTR() = 0; - virtual AliTRDsim *GetTR() const = 0; + virtual ~AliTRD(); - protected: + virtual void Init(); + virtual Int_t IsVersion() const = 0; + virtual void ResetDigits(); + + virtual void CreateGeometry(); + virtual void CreateMaterials(); + + virtual void Hits2Digits(); + virtual void Hits2SDigits(); + virtual void SDigits2Digits(); + virtual void Digits2Raw(); + virtual Bool_t Raw2SDigits(AliRawReader* rawReader); - Int_t fGasMix; // Gas mixture. 0: Xe/Isobutane 1: Xe/CO2 + virtual void AddHit(Int_t, Int_t*, Float_t*) { }; + virtual void AddHit(Int_t track, Int_t det, Float_t *hits + , Int_t q, Float_t time, Bool_t inDrift); - AliTRDgeometry *fGeometry; // The TRD geometry + virtual void SetTreeAddress(); - TObjArray *fRecPoints; // Array of reconstructed points - Int_t fNRecPoints; //! Number of reconstructed points + virtual void StepManager() = 0; - Float_t fGasDensity; // The density of the drift gas - Float_t fFoilDensity; // The density of the entrance window foil + virtual void SetStepSize(Double_t s) = 0; + virtual void SetHits() { }; + virtual void SetTR(Bool_t ) = 0; - Int_t fDrawTR; // Switches marking the TR photons in the display - Int_t fDisplayType; // Display type (0: normal, 1: detailed) + virtual Bool_t GetTR() const = 0; - AliTRDdataArrayI *fDigitsArray; //! Digits array - AliTRDdataArrayI *fDictionaryArray[3]; //! Dictionary array + AliTRDgeometry *GetGeometry() const { return fGeometry; }; + virtual AliDigitizer *CreateDigitizer(AliDigitizationInput* digInput) const; + virtual AliLoader *MakeLoader(const char* topfoldername); + virtual AliTriggerDetector *CreateTriggerDetector() const { return new AliTRDTrigger(); } + void SetPrimaryIonisation(Bool_t flag = kTRUE) {fPrimaryIonisation = flag;} + protected: + + AliTRDgeometry *fGeometry; // The TRD geometry + + Float_t fGasDensity; // The density of the drift gas + Float_t fFoilDensity; // The density of the entrance window foil + Float_t fGasNobleFraction; // The fraction of noble gas in the mixture + Bool_t fPrimaryIonisation; // switch between Fluka(true) and geant3(false) + private: + + AliTRD(const AliTRD &trd); + AliTRD &operator=(const AliTRD &trd); - ClassDef(AliTRD,2) // Transition Radiation Detector base class + ClassDef(AliTRD,12) // Transition Radiation Detector base class };