Skip to content

Commit 4ae02fb

Browse files
Copilotplexoos
andcommitted
style: fix clang-format violations in src/GPURaytrace.h
Agent-Logs-Url: https://github.com/BNLNPPS/eic-opticks/sessions/7d338b72-d2c1-427f-916a-81051c4d4b5c Co-authored-by: plexoos <5005079+plexoos@users.noreply.github.com>
1 parent 4ef5fb8 commit 4ae02fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GPURaytrace.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,8 @@ struct SteppingAction : G4UserSteppingAction
524524
return;
525525
}
526526
// G4 11.x supports up to 3 scintillation components
527-
const G4int tcKeys[3] = {kSCINTILLATIONTIMECONSTANT1, kSCINTILLATIONTIMECONSTANT2, kSCINTILLATIONTIMECONSTANT3};
527+
const G4int tcKeys[3] = {kSCINTILLATIONTIMECONSTANT1, kSCINTILLATIONTIMECONSTANT2,
528+
kSCINTILLATIONTIMECONSTANT3};
528529
const G4int yieldKeys[3] = {kSCINTILLATIONYIELD1, kSCINTILLATIONYIELD2, kSCINTILLATIONYIELD3};
529530

530531
G4double tc[3] = {0, 0, 0};
@@ -537,9 +538,8 @@ struct SteppingAction : G4UserSteppingAction
537538
if (MPT->ConstPropertyExists(tcKeys[c]))
538539
{
539540
tc[c] = MPT->GetConstProperty(tcKeys[c]);
540-
yield[c] = MPT->ConstPropertyExists(yieldKeys[c])
541-
? MPT->GetConstProperty(yieldKeys[c])
542-
: (c == 0 ? 1.0 : 0.0);
541+
yield[c] = MPT->ConstPropertyExists(yieldKeys[c]) ? MPT->GetConstProperty(yieldKeys[c])
542+
: (c == 0 ? 1.0 : 0.0);
543543
yieldSum += yield[c];
544544
nComp = c + 1;
545545
}

0 commit comments

Comments
 (0)