Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRestRawSignalAnalysisProcess. fIntegralRange renamed to fAnalysisRange #109

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions inc/TRestRawSignalAnalysisProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class TRestRawSignalAnalysisProcess : public TRestEventProcess {
TVector2 fBaseLineRange = TVector2(5, 55);

/// The range where the observables will be calculated
TVector2 fIntegralRange = TVector2(10, 500);
TVector2 fAnalysisRange = TVector2(10, 500);

/// Option for calculation of baseline parameters, can be set to "ROBUST"
std::string fBaseLineOption = ""; //<
Expand Down Expand Up @@ -74,7 +74,7 @@ class TRestRawSignalAnalysisProcess : public TRestEventProcess {

RESTMetadata << "Baseline range : ( " << fBaseLineRange.X() << " , " << fBaseLineRange.Y() << " ) "
<< RESTendl;
RESTMetadata << "Integral range : ( " << fIntegralRange.X() << " , " << fIntegralRange.Y() << " ) "
RESTMetadata << "Integral range : ( " << fAnalysisRange.X() << " , " << fAnalysisRange.Y() << " ) "
<< RESTendl;
RESTMetadata << "Point Threshold : " << fPointThreshold << " sigmas" << RESTendl;
RESTMetadata << "Signal threshold : " << fSignalThreshold << " sigmas" << RESTendl;
Expand All @@ -90,6 +90,6 @@ class TRestRawSignalAnalysisProcess : public TRestEventProcess {
TRestRawSignalAnalysisProcess(); // Constructor
~TRestRawSignalAnalysisProcess(); // Destructor

ClassDefOverride(TRestRawSignalAnalysisProcess, 5);
ClassDefOverride(TRestRawSignalAnalysisProcess, 6);
};
#endif
2 changes: 1 addition & 1 deletion src/TRestRawSignalAnalysisProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ TRestEvent* TRestRawSignalAnalysisProcess::ProcessEvent(TRestEvent* inputEvent)
// This will affect the calculation of observables, but not the stored
// TRestRawSignal data.
fSignalEvent->SetBaseLineRange(fBaseLineRange, fBaseLineOption);
fSignalEvent->SetRange(fIntegralRange);
fSignalEvent->SetRange(fAnalysisRange);

for (int s = 0; s < fSignalEvent->GetNumberOfSignals(); s++) {
TRestRawSignal* sgnl = fSignalEvent->GetSignal(s);
Expand Down