Skip to content

Commit

Permalink
Merge pull request #132 from rest-for-physics/solve-histogram-name-issue
Browse files Browse the repository at this point in the history
Small changes in TRestRawSignalChannelActivityProcess
  • Loading branch information
lobis authored May 10, 2024
2 parents 745951c + 1512c5c commit ef70e99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
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

0 comments on commit ef70e99

Please sign in to comment.