GeezerVison is showing github.com — GPU: write settings.dump from the standalone event generator · AliceO2Group/AliceO2@fb508a3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: GPU/GPUTracking/qa/genEvents.cxx +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -101,7 +101,7 @@ double genEvents::GetGaus(double sigma) |
101 | 101 | return x; |
102 | 102 | } |
103 | 103 |
|
104 | | -void genEvents::InitEventGenerator() |
| 104 | +void genEvents::InitEventGenerator(const std::string& dir) |
105 | 105 | { |
106 | 106 | for (int32_t i = 0; i < 3; i++) { |
107 | 107 | for (int32_t j = 0; j < 2; j++) { |
@@ -115,6 +115,7 @@ void genEvents::InitEventGenerator() |
115 | 115 | mClusterError[i][j]->GetXaxis()->SetTitle("Cluster Error [cm]"); |
116 | 116 | } |
117 | 117 | } |
| 118 | + mRec->rec()->DumpSettings(dir.c_str()); // the chain's own override does not write settings.dump |
118 | 119 | } |
119 | 120 |
|
120 | 121 | void genEvents::FinishEventGenerator() |
@@ -359,9 +360,8 @@ void genEvents::RunEventGenerator(GPUChainTracking* rec, const std::string& dir) |
359 | 360 | { |
360 | 361 | std::unique_ptr<genEvents> gen(new genEvents(rec)); |
361 | 362 | mkdir(dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); |
362 | | - rec->DumpSettings(dir.c_str()); |
363 | 363 |
|
364 | | - gen->InitEventGenerator(); |
| 364 | + gen->InitEventGenerator(dir); |
365 | 365 |
|
366 | 366 | for (int32_t i = 0; i < (configStandalone.nEvents == -1 ? 10 : configStandalone.nEvents); i++) { |
367 | 367 | GPUInfo("Generating event %d/%d", i, configStandalone.nEvents == -1 ? 10 : configStandalone.nEvents); |
|
Collapse file
Copy file name to clipboardExpand all lines: GPU/GPUTracking/qa/genEvents.h +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ class genEvents |
28 | 28 | { |
29 | 29 | public: |
30 | 30 | genEvents(GPUChainTracking* rec) {} |
31 | | - void InitEventGenerator() {} |
| 31 | + void InitEventGenerator(const std::string& dir) {} |
32 | 32 | int32_t GenerateEvent(const GPUParam& sectorParam, const char* filename) { return 1; } |
33 | 33 | void FinishEventGenerator() {} |
34 | 34 |
|
@@ -41,7 +41,7 @@ class genEvents |
41 | 41 | { |
42 | 42 | public: |
43 | 43 | genEvents(GPUChainTracking* rec) : mRec(rec) {} |
44 | | - void InitEventGenerator(); |
| 44 | + void InitEventGenerator(const std::string& dir); |
45 | 45 | int32_t GenerateEvent(const GPUParam& sectorParam, const char* filename); |
46 | 46 | void FinishEventGenerator(); |
47 | 47 |
|
|