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

Small changes in TRestRawSignalChannelActivityProcess #132

Merged
merged 2 commits into from
May 10, 2024
Merged
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
9 changes: 0 additions & 9 deletions inc/TRestRawSignalChannelActivityProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@
//! activity
class TRestRawSignalChannelActivityProcess : public TRestEventProcess {
protected:
/// The value of the lower signal threshold to add it to the histogram
Double_t fLowThreshold = 25;

/// The value of the higher signal threshold to add it to the histogram
Double_t fHighThreshold = 50;

/// The number of bins at the daq channels histogram
Int_t fDaqChannels = 300;

Expand Down Expand Up @@ -75,9 +69,6 @@ class TRestRawSignalChannelActivityProcess : public TRestEventProcess {
RESTMetadata << "channelType : " << fChannelType << RESTendl;
}

RESTMetadata << "Low signal threshold activity : " << fLowThreshold << RESTendl;
RESTMetadata << "High signal threshold activity : " << fHighThreshold << RESTendl;

RESTMetadata << "Number of daq histogram channels : " << fDaqChannels << RESTendl;
RESTMetadata << "Start daq channel : " << fDaqStartChannel << RESTendl;
RESTMetadata << "End daq channel : " << fDaqEndChannel << RESTendl;
Expand Down
6 changes: 5 additions & 1 deletion src/TRestRawSignalChannelActivityProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ void TRestRawSignalChannelActivityProcess::Initialize() {
///
void TRestRawSignalChannelActivityProcess::InitProcess() {
if (!fReadOnly) {
fDaqChannelsHisto = new TH1D("daqChannelActivityRaw", "daqChannelActivityRaw", fDaqChannels,
// Create a unique histogram name based on signal type
string histogramName = "daqChannelActivityRaw_" + fChannelType;

// Create the histogram using the unique name
fDaqChannelsHisto = new TH1D(histogramName.c_str(), histogramName.c_str(), fDaqChannels,
fDaqStartChannel, fDaqEndChannel);
}
}
Expand Down
Loading