Skip to content

Commit

Permalink
Addressing rest-for-physics/framework#189 (comment) and adding override
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Apr 27, 2022
1 parent 109fb74 commit 610df73
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions inc/TRestDetectorHitsToTrackFastProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class TRestDetectorHitsToTrackFastProcess : public TRestEventProcess {
Int_t fNodes;

public:
inline any GetInputEvent() const { return fHitsEvent; }
inline any GetOutputEvent() const { return fTrackEvent; }
any GetInputEvent() const override { return fHitsEvent; }
any GetOutputEvent() const override { return fTrackEvent; }

void InitProcess();
TRestEvent* ProcessEvent(TRestEvent* eventInput);
Expand Down
4 changes: 2 additions & 2 deletions inc/TRestDetectorHitsToTrackProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class TRestDetectorHitsToTrackProcess : public TRestEventProcess {
Double_t fClusterDistance = 2.5;

public:
inline any GetInputEvent() const { return fHitsEvent; }
inline any GetOutputEvent() const { return fTrackEvent; }
any GetInputEvent() const override { return fHitsEvent; }
any GetOutputEvent() const override { return fTrackEvent; }

TRestEvent* ProcessEvent(TRestEvent* eventInput);

Expand Down
4 changes: 2 additions & 2 deletions inc/TRestDetectorSignalToRawSignalProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class TRestDetectorSignalToRawSignalProcess : public TRestEventProcess {
Double_t fIntegralThreshold;

public:
inline any GetInputEvent() const { return fInputSignalEvent; }
inline any GetOutputEvent() const { return fOutputRawSignalEvent; }
any GetInputEvent() const override { return fInputSignalEvent; }
any GetOutputEvent() const override { return fOutputRawSignalEvent; }

TRestEvent* ProcessEvent(TRestEvent* eventInput);

Expand Down
4 changes: 2 additions & 2 deletions inc/TRestGeant4ToDetectorHitsProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class TRestGeant4ToDetectorHitsProcess : public TRestEventProcess {
// add here the members of your event process

public:
inline any GetInputEvent() const { return fG4Event; }
inline any GetOutputEvent() const { return fHitsEvent; }
any GetInputEvent() const override { return fG4Event; }
any GetOutputEvent() const override { return fHitsEvent; }

void InitProcess();

Expand Down
4 changes: 2 additions & 2 deletions inc/TRestRawReadoutAnalysisProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class TRestRawReadoutAnalysisProcess : public TRestEventProcess {
//

public:
inline any GetInputEvent() const { return fSignalEvent; }
inline any GetOutputEvent() const { return fSignalEvent; }
any GetInputEvent() const override { return fSignalEvent; }
any GetOutputEvent() const override { return fSignalEvent; }

void InitProcess();
TRestEvent* ProcessEvent(TRestEvent* eventInput);
Expand Down
4 changes: 2 additions & 2 deletions inc/TRestRawSignalRecoverChannelsProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class TRestRawSignalRecoverChannelsProcess : public TRestEventProcess {
std::vector<Int_t> fChannelIds;

public:
inline any GetInputEvent() const { return fInputSignalEvent; }
inline any GetOutputEvent() const { return fOutputSignalEvent; }
any GetInputEvent() const override { return fInputSignalEvent; }
any GetOutputEvent() const override { return fOutputSignalEvent; }

void InitProcess();
TRestEvent* ProcessEvent(TRestEvent* eventInput);
Expand Down
4 changes: 2 additions & 2 deletions inc/TRestRawToDetectorSignalProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class TRestRawToDetectorSignalProcess : public TRestEventProcess {
Bool_t fBaseLineCorrection = false;

public:
inline any GetInputEvent() const { return fInputSignalEvent; }
inline any GetOutputEvent() const { return fOutputSignalEvent; }
any GetInputEvent() const override { return fInputSignalEvent; }
any GetOutputEvent() const override { return fOutputSignalEvent; }

TRestEvent* ProcessEvent(TRestEvent* eventInput);

Expand Down
4 changes: 2 additions & 2 deletions inc/TRestTrackToDetectorHitsProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class TRestTrackToDetectorHitsProcess : public TRestEventProcess {
Int_t fTrackLevel;

public:
inline any GetInputEvent() const { return fInputTrackEvent; }
inline any GetOutputEvent() const { return fOutputHitsEvent; }
any GetInputEvent() const override { return fInputTrackEvent; }
any GetOutputEvent() const override { return fOutputHitsEvent; }

void InitProcess();
TRestEvent* ProcessEvent(TRestEvent* eventInput);
Expand Down

0 comments on commit 610df73

Please sign in to comment.