From 37710db4cd50de8af660747409d122a3f8406179 Mon Sep 17 00:00:00 2001 From: wiechula Date: Wed, 20 Dec 2023 12:49:39 +0100 Subject: [PATCH] Change threshold from uint to int, allow negative signals --- .../include/TPCMonitor/SimpleEventDisplay.h | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Detectors/TPC/monitor/include/TPCMonitor/SimpleEventDisplay.h b/Detectors/TPC/monitor/include/TPCMonitor/SimpleEventDisplay.h index 880eda5a2c36d..d9c51d0a1ee3b 100644 --- a/Detectors/TPC/monitor/include/TPCMonitor/SimpleEventDisplay.h +++ b/Detectors/TPC/monitor/include/TPCMonitor/SimpleEventDisplay.h @@ -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; } @@ -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();