Skip to content

Commit

Permalink
add channel type to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Sep 8, 2023
1 parent c9b53f9 commit 6ea475c
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions inc/TRestRawSignalAnalysisProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

//! An analysis process to extract valuable information from a TRestRawSignalEvent.
class TRestRawSignalAnalysisProcess : public TRestEventProcess {
private:
private:
/// A pointer to the specific TRestRawSignalEvent input
TRestRawSignalEvent* fSignalEvent; //!
TRestRawSignalEvent *fSignalEvent; //!

/// Just a flag to quickly determine if we have to apply the range filter
Bool_t fRangeEnabled = false; //!
Expand All @@ -51,27 +51,32 @@ class TRestRawSignalAnalysisProcess : public TRestEventProcess {
/// A parameter to define a minimum signal fluctuation. Measured in sigmas.
Double_t fSignalThreshold = 5;

/// avoid error when loading parameters (not used)
std::string fChannelType; //!

/// The minimum number of points over threshold to identify a signal as such
Int_t fPointsOverThreshold = 5;

/// It defines the signals id range where analysis is applied
TVector2 fSignalsRange = TVector2(-1, -1); //<

TRestRawReadoutMetadata* fReadoutMetadata = nullptr;
TRestRawReadoutMetadata *fReadoutMetadata = nullptr;

void Initialize() override;

std::set<std::string> fChannelTypes = {}; // this process will only be applied to selected channel types

protected:
protected:
// add here the members of your event process

public:
public:
RESTValue GetInputEvent() const override { return fSignalEvent; }

RESTValue GetOutputEvent() const override { return fSignalEvent; }

void InitProcess() override;
TRestEvent* ProcessEvent(TRestEvent* inputEvent) override;

TRestEvent *ProcessEvent(TRestEvent *inputEvent) override;

void InitFromConfigFile() override;

Expand All @@ -91,11 +96,13 @@ class TRestRawSignalAnalysisProcess : public TRestEventProcess {
EndPrintProcess();
}

const char* GetProcessName() const override { return "rawSignalAnalysis"; }
const char *GetProcessName() const override { return "rawSignalAnalysis"; }

TRestRawSignalAnalysisProcess();

~TRestRawSignalAnalysisProcess();

ClassDefOverride(TRestRawSignalAnalysisProcess, 5);
ClassDefOverride(TRestRawSignalAnalysisProcess, 5);
};

#endif

0 comments on commit 6ea475c

Please sign in to comment.