// //
////////////////////////////////////////////////////////////////////////////
-#include <stdlib.h>
-
#include <TLorentzVector.h>
#include <TMath.h>
#include <TRandom.h>
-#include <TVector.h>
#include <TVirtualMC.h>
#include <TGeoManager.h>
#include <TGeoMatrix.h>
#include <TGeoPhysicalNode.h>
-#include "AliConst.h"
-#include "AliLog.h"
#include "AliTrackReference.h"
#include "AliMC.h"
#include "AliRun.h"
#include "AliTRDgeometry.h"
#include "AliTRDCommonParam.h"
-#include "AliTRDhit.h"
#include "AliTRDsimTR.h"
#include "AliTRDv1.h"
//_____________________________________________________________________________
AliTRDv1::AliTRDv1()
:AliTRD()
- ,fTRon(kFALSE)
+ ,fTRon(kTRUE)
,fTR(NULL)
,fStepSize(0)
,fWion(0)
// Set the maximum step size to a very large number for all
// neutral particles and those outside the driftvolume
- gMC->SetMaxStep(kBig);
+ if (!fPrimaryIonisation) gMC->SetMaxStep(kBig);
// If not charged track or already stopped or disappeared, just return.
if ((!gMC->TrackCharge()) ||
// Create the hits from TR photons if electron/positron is
// entering the drift volume
- if ((fTR) &&
+ if ((fTR) &&
+ (fTRon) &&
(TMath::Abs(gMC->TrackPid()) == kPdgElectron)) {
CreateTRhit(det);
}
if ((gMC->Etot() - gMC->TrackMass()) < kEkinMinStep) {
return;
}
- gMC->SetMaxStep(fStepSize);
+ if (!fPrimaryIonisation) gMC->SetMaxStep(fStepSize);
}