/// Remember to define the directory and event generator option:
///
/// gAlice->SetConfigFunction("Config('$HOME','box');");
+///
+/// Can be compiled by :
+/// .L Config.C+
+/// (depends on the correct rootlogon.C though...)
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+
+#include "AliABSOv3.h"
+#include "AliBODY.h"
+#include "AliConfig.h"
+#include "AliDIPOv3.h"
+#include "AliDecayerPythia.h"
+#include "AliFRAMEv2.h"
+#include "AliGenBox.h"
+#include "AliGenFixed.h"
+#include "AliGenHijing.h"
+#include "AliGenMUONCocktail.h"
+#include "AliGenMUONlib.h"
+#include "AliGenParam.h"
+#include "AliGenScan.h"
+#include "AliHALLv3.h"
+#include "AliITSv11Hybrid.h"
+#include "AliMAG.h"
+#include "AliMagF.h"
+#include "AliMUONv1.h"
+#include "AliPIPEv3.h"
+#include "AliRun.h"
+#include "AliRunLoader.h"
+#include "AliSHILv3.h"
+#include <Riostream.h>
+#include <TDatime.h>
+#include <TGeant3TGeo.h>
+#include <TGeoGlobalMagField.h>
+#include <TPDGCode.h>
+#include <TRandom.h>
+#include <TSystem.h>
+#include <TVirtualMC.h>
-void Config(char directory[100]="", char option[6]="param", const char* digitstore="AliMUONDigitStoreV2S")
+//#include "AliZDCv3.h"
+//#include "AliFMDv1.h"
+//#include "AliPMDv1.h"
+//#include "AliVZEROv7.h"
+
+#endif
+
+void Config(const char* directory="",
+ const char* option="param",
+ const char* digitstore="AliMUONDigitStoreV2S",
+ bool forEmbedding=kFALSE)
{
//=====================================================================
// Config file for MUON test
//=====================================================================
// Libraries required by geant321
+
+ gSystem->Load("liblhapdf.so"); // Parton density functions
+ gSystem->Load("libpythia6.so"); // Pythia
gSystem->Load("libgeant321.so");
+ gSystem->Load("libEG");
+ gSystem->Load("libEGPythia6");
+ gSystem->Load("libAliPythia6.so"); // ALICE specific implementations
+
new TGeant3TGeo("C++ Interface to Geant3");
+
//=======================================================================
// Create the output file
Text_t filename[100];
gener->SetTrackingFlag(1);
gener->Init();
}
+ if (!strcmp(option,"paramJpsi")) {
+ AliGenParam *gener = new AliGenParam(1, AliGenMUONlib::kJpsi);
+ gener->SetMomentumRange(0,999);
+ gener->SetPtRange(0,100.);
+ gener->SetPhiRange(0., 360.);
+ gener->SetCutOnChild(1);
+ gener->SetChildPhiRange(0.,360.);
+ gener->SetChildThetaRange(171.0,178.0);
+ gener->SetOrigin(0,0,0);
+ gener->SetForceDecay(kDiMuon);
+ gener->SetTrackingFlag(1);
+ gener->Init();
+ }
if (!strcmp(option,"hijing")) { //Hijing generator from ConfigPPR in macros
AliGenHijing *gener = new AliGenHijing(-1);
// centre of mass energy
}
//=============================================================
// Field (L3 0.5 T)
- AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
- gAlice->SetField(field);
+ TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1, AliMagF::k5kG));
//=============================================================
//=================== Alice BODY parameters =============================
- AliBODY *BODY = new AliBODY("BODY","Alice envelop");
+ new AliBODY("BODY","Alice envelop");
//=================== ABSO parameters ============================
- AliABSO *ABSO = new AliABSOv3("ABSO", "Muon Absorber");
+ new AliABSOv3("ABSO", "Muon Absorber");
//=================== DIPO parameters ============================
- AliDIPO *DIPO = new AliDIPOv3("DIPO", "Dipole version 2");
+ new AliDIPOv3("DIPO", "Dipole version 2");
//================== HALL parameters ============================
- AliHALL *HALL = new AliHALLv3("HALL", "Alice Hall");
+ new AliHALLv3("HALL", "Alice Hall");
//=================== PIPE parameters ============================
- AliPIPE *PIPE = new AliPIPEv3("PIPE", "Beam Pipe");
+ new AliPIPEv3("PIPE", "Beam Pipe");
//=================== SHIL parameters ============================
- AliSHIL *SHIL = new AliSHILv3("SHIL", "Shielding Version 2");
+ new AliSHILv3("SHIL", "Shielding Version 2");
//=================== MUON Subsystem ===========================
AliMUON *MUON = new AliMUONv1("MUON", "default");
// activate trigger chamber efficiency by cells (0=default, 1=trigger efficiency according to AliMUONTriggerEfficiencyCells
// MUON->SetTriggerEffCells(0);
+ // Activate the following line when running with Fluka
+ // MUON->SetIsMaxStep(kFALSE);
+
// Use SetDigitStoreClassName() to change the digitStore implementation used by (s)digitizer
MUON->SetDigitStoreClassName(digitstore);
-
- cout << "MUON DigitStore is " << MUON->DigitStoreClassName().Data() << endl;
-
- // Noise-only digits in tracker/trigger (0=no noise, 1=default (noise in tracker), 2=noise in tracker and trigger):
- //MUON->SetDigitizerWithNoise(kFALSE);
- // Use fast raw data decoder
- // MUON->SetFastDecoder(kTRUE);
+ if ( forEmbedding )
+ {
+ // Noise-only digits in tracker/trigger (0=no noise, 1=default (noise in tracker), 2=noise in tracker and trigger):
+ cout << "****** DISABLING NOISE GENERATION AS WE DO EMBEDDING ******" << endl;
+ MUON->SetDigitizerWithNoise(0);
+
+ new AliITSv11Hybrid("ITS","ITS v11Hybrid");
+
+ }
+
+ // Use non-high performance raw data decoder
+ //MUON->SetFastTrackerDecoder(kFALSE);
+ //MUON->SetFastTriggerDecoder(kFALSE);
//
// If SetAlign, the detection elements transformations