Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Jun 5, 2024
1 parent b589645 commit 16be349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/TRestDetectorSignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ TRestDetectorSignal::GetPeakLandau() // returns a 2vector with the time of the

// copying the signal peak to a histogram
for (int i = 0; i < GetNumberOfPoints(); i++) {
h.Fill(GetTime(i), GetData(i));
h.SetBinContent(i + 1, GetData(i));
}

Expand Down Expand Up @@ -441,7 +440,6 @@ TRestDetectorSignal::GetPeakAget() // returns a 2vector with the time of the pe

// copying the signal peak to a histogram
for (int i = 0; i < GetNumberOfPoints(); i++) {
h.Fill(GetTime(i), GetData(i));
h.SetBinContent(i + 1, GetData(i));
}

Expand Down
4 changes: 2 additions & 2 deletions src/TRestDetectorSignalToHitsProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@ TRestEvent* TRestDetectorSignalToHitsProcess::ProcessEvent(TRestEvent* inputEven
if (GetVerboseLevel() >= TRestStringOutput::REST_Verbose_Level::REST_Debug) {
cout << "Signal event : " << signal->GetSignalID()
<< "--------------------------------------------------------" << endl;
cout << "Method: " << fMethod << " : time " << time << " ns and energy : " << energy << endl;
cout << "Method: " << fMethod << " : time " << time << " us and energy : " << energy << endl;
cout << "Signal to hit info : zPosition : " << zPosition
<< "; fieldZDirection : " << fieldZDirection << " and driftV : " << fDriftVelocity
<< endl;
cout << "Adding hit. Time : " << time << " ns x : " << x << " y : " << y << " z : " << z
cout << "Adding hit. Time : " << time << " us x : " << x << " y : " << y << " z : " << z
<< " Energy : " << energy << endl;
}

Expand Down

0 comments on commit 16be349

Please sign in to comment.