Skip to content

Commit

Permalink
TRestGeant4ToDetectorHitsProcess.cxx - removed redundant this->
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Apr 1, 2022
1 parent 4a29a1b commit 77c74c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TRestGeant4ToDetectorHitsProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void TRestGeant4ToDetectorHitsProcess::InitProcess() {
TRestEvent* TRestGeant4ToDetectorHitsProcess::ProcessEvent(TRestEvent* evInput) {
fG4Event = (TRestGeant4Event*)evInput;

if (this->GetVerboseLevel() >= REST_Extreme) {
if (GetVerboseLevel() >= REST_Extreme) {

This comment has been minimized.

Copy link
@jgalan

jgalan Apr 1, 2022

Member

Not that terrible that this-> is there so that it is clear that is a method from the class, and not from a namespace.

cout << "------ TRestGeant4ToDetectorHitsProcess --- Printing Input Event --- START ----" << endl;
fG4Event->PrintEvent();
cout << "------ TRestGeant4ToDetectorHitsProcess --- Printing Input Event ---- END ----" << endl;
Expand All @@ -202,7 +202,7 @@ TRestEvent* TRestGeant4ToDetectorHitsProcess::ProcessEvent(TRestEvent* evInput)
fHitsEvent->SetSubEventTag(fG4Event->GetSubEventTag());
fHitsEvent->SetTimeStamp(fG4Event->GetTimeStamp());
fHitsEvent->SetState(fG4Event->isOk());

for (int i = 0; i < fG4Event->GetNumberOfTracks(); i++) {
const auto& track = fG4Event->GetTrack(i);
const auto& hits = track.GetHits();
Expand All @@ -216,7 +216,7 @@ TRestEvent* TRestGeant4ToDetectorHitsProcess::ProcessEvent(TRestEvent* evInput)
}
}

if (this->GetVerboseLevel() >= REST_Debug) {
if (GetVerboseLevel() >= REST_Debug) {
cout << "TRestGeant4ToDetectorHitsProcess. Hits added : " << fHitsEvent->GetNumberOfHits() << endl;
cout << "TRestGeant4ToDetectorHitsProcess. Hits total energy : " << fHitsEvent->GetEnergy() << endl;
}
Expand Down

0 comments on commit 77c74c1

Please sign in to comment.