Float_t EtaToTheta(Float_t arg);
static Int_t eventsPerRun = 100;
-enum PprGeo_t
-{
- kHoles, kNoHoles
-};
-static PprGeo_t geo = kHoles;
void ConfigCommon(Bool_t interactiveSetup)
{
// Create the output file
AliRunLoader* rl = 0;
rl = AliRunLoader::Open("galice.root",
- AliConfig::fgkDefaultEventFolderName,
+ AliConfig::GetDefaultEventFolderName(),
"recreate");
if (!rl) {
gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
// Exclude detectors with temporary problem
iCRT = 0;
iEMCAL = 0;
- iFMD = 0;
// END OF ONLY FOR GEANT4
//=================== FRAME parameters ============================
AliFRAMEv2 *FRAME = new AliFRAMEv2("FRAME", "Space Frame");
- if (geo == kHoles) {
- FRAME->SetHoles(1);
- } else {
- FRAME->SetHoles(0);
- }
}
if (iSHIL)
{
//=================== SHIL parameters ============================
- AliSHIL *SHIL = new AliSHILv2("SHIL", "Shielding");
+ AliSHIL *SHIL = new AliSHILv2("SHIL", "Shielding Version 2");
}
if (iTPC)
{
- //============================ TPC parameters ================================
- // --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
- // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
- // --- sectors are specified, any value other than that requires at least one
- // --- sector (lower or upper)to be specified!
- // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
- // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
- // --- SecLows - number of lower sectors specified (up to 6)
- // --- SecUps - number of upper sectors specified (up to 12)
- // --- Sens - sensitive strips for the Slow Simulator !!!
- // --- This does NOT work if all S or L-sectors are specified, i.e.
- // --- if SecAL or SecAU < 0
- //
- //
- //-----------------------------------------------------------------------------
-
- // gROOT->LoadMacro("SetTPCParam.C");
- // AliTPCParam *param = SetTPCParam();
+ //============================ TPC parameters ===================
AliTPC *TPC = new AliTPCv2("TPC", "Default");
-
- // All sectors included
- TPC->SetSecAL(-1);
- TPC->SetSecAU(-1);
-
}
if (iTOF)
{
//=================== TOF parameters ============================
- AliTOF *TOF = new AliTOFv4T0("TOF", "normal TOF");
+ AliTOF *TOF = new AliTOFv5T0("TOF", "normal TOF");
}
if (iRICH)
{
//=================== RICH parameters ===========================
- AliRICH *RICH = new AliRICHv3("RICH", "normal RICH");
+ AliRICH *RICH = new AliRICHv1("RICH", "normal RICH");
}
// Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
TRD->SetGasMix(1);
- if (geo == kHoles) {
- // With hole in front of PHOS
- TRD->SetPHOShole();
- // With hole in front of RICH
- TRD->SetRICHhole();
- }
// Switch on TR
AliTRDsim *TRDsim = TRD->CreateTR();
}
if (iEMCAL)
{
//=================== EMCAL parameters ============================
- AliEMCAL *EMCAL = new AliEMCALv1("EMCAL", "EMCAL_55_25");
+ AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "SHISH");
}
if (iCRT)
if (iVZERO)
{
//=================== CRT parameters ============================
- AliVZERO *VZERO = new AliVZEROv3("VZERO", "normal VZERO");
+ AliVZERO *VZERO = new AliVZEROv6("VZERO", "normal VZERO");
}
} // end (!isSetInteractively)
- else {
-
- if (geo == kHoles)
- AliRunConfiguration::SwitchHoles(kTRUE);
- else
- AliRunConfiguration::SwitchHoles(kFALSE);
- }
+
+ cout << "End of g4ConfigCommon.C" << endl;
}
Float_t EtaToTheta(Float_t arg){