GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • GPU/GPUTracking/qa
    • genEvents.cxx
    • genEvents.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎GPU/GPUTracking/qa/genEvents.cxx‎

Copy file name to clipboardExpand all lines: GPU/GPUTracking/qa/genEvents.cxx
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ double genEvents::GetGaus(double sigma)
101101
return x;
102102
}
103103

104-
void genEvents::InitEventGenerator()
104+
void genEvents::InitEventGenerator(const std::string& dir)
105105
{
106106
for (int32_t i = 0; i < 3; i++) {
107107
for (int32_t j = 0; j < 2; j++) {
@@ -115,6 +115,7 @@ void genEvents::InitEventGenerator()
115115
mClusterError[i][j]->GetXaxis()->SetTitle("Cluster Error [cm]");
116116
}
117117
}
118+
mRec->rec()->DumpSettings(dir.c_str()); // the chain's own override does not write settings.dump
118119
}
119120

120121
void genEvents::FinishEventGenerator()
@@ -359,9 +360,8 @@ void genEvents::RunEventGenerator(GPUChainTracking* rec, const std::string& dir)
359360
{
360361
std::unique_ptr<genEvents> gen(new genEvents(rec));
361362
mkdir(dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
362-
rec->DumpSettings(dir.c_str());
363363

364-
gen->InitEventGenerator();
364+
gen->InitEventGenerator(dir);
365365

366366
for (int32_t i = 0; i < (configStandalone.nEvents == -1 ? 10 : configStandalone.nEvents); i++) {
367367
GPUInfo("Generating event %d/%d", i, configStandalone.nEvents == -1 ? 10 : configStandalone.nEvents);
Collapse file

‎GPU/GPUTracking/qa/genEvents.h‎

Copy file name to clipboardExpand all lines: GPU/GPUTracking/qa/genEvents.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class genEvents
2828
{
2929
public:
3030
genEvents(GPUChainTracking* rec) {}
31-
void InitEventGenerator() {}
31+
void InitEventGenerator(const std::string& dir) {}
3232
int32_t GenerateEvent(const GPUParam& sectorParam, const char* filename) { return 1; }
3333
void FinishEventGenerator() {}
3434

@@ -41,7 +41,7 @@ class genEvents
4141
{
4242
public:
4343
genEvents(GPUChainTracking* rec) : mRec(rec) {}
44-
void InitEventGenerator();
44+
void InitEventGenerator(const std::string& dir);
4545
int32_t GenerateEvent(const GPUParam& sectorParam, const char* filename);
4646
void FinishEventGenerator();
4747

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.