Skip to content

Commit

Permalink
Change threshold from uint to int, allow negative signals
Browse files Browse the repository at this point in the history
  • Loading branch information
wiechula committed Feb 5, 2024
1 parent 6a53a5e commit 37710db
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Detectors/TPC/monitor/include/TPCMonitor/SimpleEventDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class SimpleEventDisplay : public CalibRawBase

void setPedstals(CalPad* pedestals) { mPedestals = pedestals; }

void setSignalThreshold(UInt_t signalThreshold) { mSignalThreshold = signalThreshold; }
void setSignalThreshold(Int_t signalThreshold) { mSignalThreshold = signalThreshold; }

void setShowOccupancy(bool showOccupancy) { mShowOccupancy = showOccupancy; }

Expand All @@ -83,28 +83,28 @@ class SimpleEventDisplay : public CalibRawBase
void endEvent() final{};

private:
CalPad mPadMax; //!< Cal Pad with max Entry per channel
CalPad mPadOccupancy; //!< Cal Pad with Occupancy per channel
TH2D* mHSigIROC; //!< iroc signals
TH2D* mHSigOROC; //!< oroc signals
CalPad* mPedestals; //!< Pedestal calibratino object

Int_t mCurrentChannel; //!< current channel processed
Int_t mCurrentROC; //!< current ROC processed
Int_t mLastSector; //!< Last sector processed
Int_t mSelectedSector; //!< Sector selected for processing
Int_t mLastSelSector; //!< Last sector selected for processing
Int_t mCurrentRow; //!< current row processed
Int_t mCurrentPad; //!< current pad processed
Float_t mMaxPadSignal; //!< maximum bin of current pad
Int_t mMaxTimeBin; //!< time bin with maximum value
Bool_t mSectorLoop; //!< only process one sector
Int_t mFirstTimeBin; //!< first time bin to accept
Int_t mLastTimeBin; //!< last time bin to accept
UInt_t mSignalThreshold; //!< minimum adc value
Bool_t mShowOccupancy; //!< true iff occupancy should be calculated, false otherwise

const Mapper& mTPCmapper; //! mapper
CalPad mPadMax; ///< Cal Pad with max Entry per channel
CalPad mPadOccupancy; ///< Cal Pad with Occupancy per channel
TH2D* mHSigIROC; ///< iroc signals
TH2D* mHSigOROC; ///< oroc signals
CalPad* mPedestals; ///< Pedestal calibratino object

Int_t mCurrentChannel; ///< current channel processed
Int_t mCurrentROC; ///< current ROC processed
Int_t mLastSector; ///< Last sector processed
Int_t mSelectedSector; ///< Sector selected for processing
Int_t mLastSelSector; ///< Last sector selected for processing
Int_t mCurrentRow; ///< current row processed
Int_t mCurrentPad; ///< current pad processed
Float_t mMaxPadSignal; ///< maximum bin of current pad
Int_t mMaxTimeBin; ///< time bin with maximum value
Bool_t mSectorLoop; ///< only process one sector
Int_t mFirstTimeBin; ///< first time bin to accept
Int_t mLastTimeBin; ///< last time bin to accept
Int_t mSignalThreshold; ///< minimum adc value
Bool_t mShowOccupancy; ///< true iff occupancy should be calculated, false otherwise

const Mapper& mTPCmapper; /// mapper

void resetEvent() final;
void initHistograms();
Expand Down

0 comments on commit 37710db

Please sign in to comment.