#include "AliMC.h"
#include "AliMagF.h"
#include "AliRun.h"
+#include "AliLoader.h"
#include "AliTRD.h"
#include "AliTRDdigitizer.h"
,fGasDensity(0)
,fFoilDensity(0)
,fGasNobleFraction(0)
+ ,fPrimaryIonisation(0)
{
//
// Default constructor
,fGasDensity(0)
,fFoilDensity(0)
,fGasNobleFraction(0)
+ ,fPrimaryIonisation(0)
{
//
// Standard constructor for the TRD
}
//_____________________________________________________________________________
-AliDigitizer *AliTRD::CreateDigitizer(AliRunDigitizer *manager) const
+AliDigitizer *AliTRD::CreateDigitizer(AliDigitizationInput* digInput) const
{
//
// Creates a new digitizer object
//
- return new AliTRDdigitizer(manager);
+ return new AliTRDdigitizer(digInput);
}
AliError("Not a valid geometry");
}
- // Special tracking options for charged particles for XeCO2
- gMC->Gstpar((* fIdtmed)[9],"DRAY" , 1.0);
- gMC->Gstpar((* fIdtmed)[9],"STRA" , 1.0);
- gMC->Gstpar((* fIdtmed)[9],"LOSS" ,13.0); // Specific energy loss
- // Parameters specific to Fluka
- //gMC->Gstpar((* fIdtmed)[9],"PRIMIO_E",23.53); // 1st ionisation potential
- //gMC->Gstpar((* fIdtmed)[9],"PRIMIO_N",19.344431); // Number of primaries
-
}
//_____________________________________________________________________________
// Create the s-digits manager
AliTRDdigitsManager *sdigitsManager = new AliTRDdigitsManager();
- sdigitsManager->SetSDigits(kTRUE);
- sdigitsManager->CreateArrays();
if (sdigitsManager) {
+ sdigitsManager->SetSDigits(kTRUE);
+ sdigitsManager->CreateArrays();
+
// Convert the digits into s-digits
digitizer.Digits2SDigits(digitsManager,sdigitsManager);