, kNsect = 18
, kNdet = 540 };
- enum { kXenon = 0
- , kArgon = 1 };
-
static AliTRDSimParam *Instance();
static void Terminate();
void SetCrossTalk(Int_t ctOn = 1) { fCTOn = ctOn; ReInit(); }
void SetPadCoupling(Float_t v) { fPadCoupling = v; }
void SetTimeCoupling(Float_t v) { fTimeCoupling = v; }
- void SetAnodeWireOffset(Float_t offset = 0.25) { fAnodeWireOffset = offset; }
void SetTimeStruct(Bool_t tsOn = 1) { fTimeStructOn = tsOn; }
void SetPadResponse(Int_t prfOn = 1) { fPRFOn = prfOn; }
- void SetXenon() { fGasMixture = kXenon; ReInit(); }
- void SetArgon() { fGasMixture = kArgon; ReInit(); }
Float_t GetGasGain() const { return fGasGain; }
Float_t GetNoise() const { return fNoise; }
Float_t GetTRFhi() const { return fTRFhi; }
Float_t GetPadCoupling() const { return fPadCoupling; }
Float_t GetTimeCoupling() const { return fTimeCoupling; }
- Float_t GetAnodeWireOffset() const { return fAnodeWireOffset; }
- Int_t GetGasMixture() const { return fGasMixture; }
Bool_t DiffusionOn() const { return fDiffusionOn; }
Bool_t ElAttachOn() const { return fElAttachOn; }
Double_t TimeResponse(Double_t time) const;
Double_t CrossTalk(Double_t time) const;
-
- Bool_t IsXenon() const { return (fGasMixture == kXenon)
- ? kTRUE : kFALSE; }
- Bool_t IsArgon() const { return (fGasMixture == kArgon)
- ? kTRUE : kFALSE; }
+ void ReInit();
+
protected:
static AliTRDSimParam* fgInstance; // Instance of this class (singleton implementation)
Int_t fCTOn; // Switch for cross talk
Float_t *fCTsmp; //! Integrated cross talk
- Float_t fAnodeWireOffset; // Distance of first anode wire from pad edge
Float_t fPadCoupling; // Pad coupling factor
Float_t fTimeCoupling; // Time coupling factor (image charge of moving ions)
Int_t fTimeStructOn; // Switch for cell time structure
Int_t fPRFOn; // Switch for the pad response
- Int_t fGasMixture; // Gas mixture: 0-Xe/C02 1-Ar/CO2.
-
private:
// This is a singleton, constructor is private!
virtual ~AliTRDSimParam();
void Init();
- void ReInit();
void SampleTRF();
- ClassDef(AliTRDSimParam,2) // The TRD simulation parameters
+ ClassDef(AliTRDSimParam,4) // The TRD simulation parameters
};