Skip to content

Commit

Permalink
ALIROOT-6269 de/dx scale factor rel. to G3 changed from 1.12 to 1.164
Browse files Browse the repository at this point in the history
  • Loading branch information
amorsch authored and hristov committed Aug 24, 2015
1 parent 8548f30 commit 8febb2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions TRD/AliTRDtestG4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ AliTRDtestG4::AliTRDtestG4()
,fTR(NULL)
,fStepSize(0)
,fWion(0)
,fScaleG4(1.164)
{
//
// Default constructor
Expand All @@ -62,6 +63,7 @@ AliTRDtestG4::AliTRDtestG4(const char *name, const char *title)
,fTR(NULL)
,fStepSize(0.1)
,fWion(0)
,fScaleG4(1.164)
{
//
// Standard constructor for Transition Radiation Detector version 1
Expand Down Expand Up @@ -413,7 +415,7 @@ void AliTRDtestG4::StepManager()
const Double_t kBig = 1.0e+12;
const Float_t kEkinMinStep = 1.0e-5; // Minimum energy for the step size adjustment

const Double_t kScaleG4 = 1.12;
// const Double_t kScaleG4 = 1.12;

// Set the maximum step size to a very large number for all
// neutral particles and those outside the driftvolume
Expand Down Expand Up @@ -498,7 +500,7 @@ void AliTRDtestG4::StepManager()
// Calculate the charge according to GEANT Edep
// Create a new dEdx hit
eDep = TMath::Max(TVirtualMC::GetMC()->Edep(),0.0) * 1.0e+09;
eDep /= kScaleG4;
eDep /= fScaleG4;
qTot = (Int_t) (eDep / fWion);
if ((qTot) ||
(trkStat)) {
Expand Down
4 changes: 3 additions & 1 deletion TRD/AliTRDtestG4.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class AliTRDtestG4 : public AliTRD {

void SetStepSize(Double_t s) { fStepSize = s; }
void SetTR(Bool_t tr) { fTRon = tr; }
void SetScaleG4(Float_t f) { fScaleG4 = f; }

Bool_t GetTR() const { return fTRon; }
AliTRDsimTR *GetTRDsim() const { return fTR; }
Expand All @@ -55,13 +56,14 @@ class AliTRDtestG4 : public AliTRD {

Double_t fStepSize; // Used for the fixed step size
Float_t fWion; // Ionization potential
Float_t fScaleG4; // G4 scaling factor of de/dx rel. to g3

private:

AliTRDtestG4(const AliTRDtestG4 &trd);
AliTRDtestG4 &operator=(const AliTRDtestG4 &trd);

ClassDef(AliTRDtestG4,1) // Transition Radiation Detector (test version for G4 simulations)
ClassDef(AliTRDtestG4,2) // Transition Radiation Detector (test version for G4 simulations)

};

Expand Down

0 comments on commit 8febb2e

Please sign in to comment.