Skip to content

Commit 3e4f57d

Browse files
committed
gun test generator for HMPID
1 parent 36914f3 commit 3e4f57d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Generators/src/GeneratorFactory.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ void GeneratorFactory::setPrimaryGenerator(o2::conf::SimConfig const& conf, Fair
5555
boxGen->SetPRange(100.0, 100.0);
5656
boxGen->SetPhiRange(0., 360.);
5757
primGen->AddGenerator(boxGen);
58+
} else if (genconfig.compare("hmpidgun") == 0) {
59+
// a simple "box" generator for forward muons
60+
LOG(INFO) << "Init hmpid gun generator";
61+
auto boxGen = new FairBoxGenerator(-211, 100); /* mu- */
62+
boxGen->SetEtaRange(-0.5, 0.5);
63+
boxGen->SetPRange(2, 5.0);
64+
boxGen->SetPhiRange(-5., 60.);
65+
primGen->AddGenerator(boxGen);
5866
} else if (genconfig.compare("fwpigen") == 0) {
5967
// a simple "box" generator for forward pions
6068
LOG(INFO) << "Init box forward muons generator";

0 commit comments

Comments
 (0)