forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hristov
authored and
hristov
committed
Feb 10, 2017
1 parent
6e75ce5
commit 40360ce
Showing
29 changed files
with
301 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Int_t n = 100; // This makes n "visible" to the compiled macro | ||
void rungen(Int_t nev, const char* configMacro) { | ||
// Load libraries | ||
gSystem->Load("liblhapdf"); // Parton density functions | ||
gSystem->Load("libEGPythia6"); // TGenerator interface | ||
gSystem->Load("libpythia6"); // Pythia | ||
gSystem->Load("libAliPythia6"); // ALICE specific implementations | ||
|
||
|
||
// Load configuration macros | ||
|
||
gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/gun/commonConfig.C"); | ||
gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/gun/genGunConfig.C"); | ||
gROOT->LoadMacro(configMacro); | ||
|
||
n = nev; // Use the requested number of events | ||
// Execute gen.C | ||
gROOT->Macro("gen.C(n)"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// $Id$ | ||
// | ||
// Macro for running simulation in test/vmctest/gun. | ||
// From test/gun. | ||
|
||
void simG4(Int_t nev, const char * config) { | ||
// Load Geant3 + Geant3 VMC libraries | ||
// | ||
gSystem->Load("liblhapdf"); // Parton density functions | ||
gSystem->Load("libEGPythia6"); // TGenerator interface | ||
gSystem->Load("libpythia6"); // Pythia | ||
gSystem->Load("libAliPythia6"); // ALICE specific implementations | ||
|
||
gROOT->Macro("$G4VMCINSTALL/share/examples/macro/g4libs.C"); | ||
// AliRoot setup | ||
// | ||
gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/gun/commonConfig.C"); | ||
|
||
// AliRoot event generator | ||
// (it has to be created after MC, as it may use decayer via VMC) | ||
// | ||
gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/gun/genExtFileConfig.C"); | ||
|
||
AliSimulation simulator(config); | ||
simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO ACORDE"); | ||
simulator.SetMakeDigitsFromHits("ITS TPC"); | ||
simulator.SetWriteRawData("ALL","raw.root",kTRUE); | ||
|
||
simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB"); | ||
simulator.SetSpecificStorage("GRP/GRP/Data", | ||
Form("local://%s",gSystem->pwd())); | ||
|
||
simulator.SetRunHLT("default"); // In case we do not have ancored production | ||
|
||
TStopwatch timer; | ||
timer.Start(); | ||
simulator.Run(nev); | ||
timer.Stop(); | ||
timer.Print(); | ||
} |
Oops, something went wrong.