|
ATLAS Offline Software
|
#include <L1CaloPprPhos4Shape.h>
|
| L1CaloPprPhos4Shape () |
|
| L1CaloPprPhos4Shape (const L1CaloPprPhos4Shape &rhs) |
|
void | operator= (const L1CaloPprPhos4Shape &rhs) |
|
unsigned int | CalculateFullDelayData (const int truePeakPosition) |
|
void | CorrectRawPedestal (void) |
|
void | CalculatePedCorrection (void) |
|
void | CalculatePedestal (TH1 *histo, float &pedMean, float &pedSigma) |
|
void | FindBinWithMaxValue (TH1 *histo, float &peakValue, unsigned int &peakBin) |
| Given a signal profile, this finds the maximum value and it's corresponding bin. More...
|
|
TF1 * | FitSignalPeak (TH1 *histo, const float maxPeakValue, const unsigned int maxPeakBin, const unsigned int pedestal, float &fitPeakValue, unsigned int &fitPeakBin) |
| Given a signal profile, this finds the maximum value and it's corresponding bin. More...
|
|
void | FillErrorCode (bool signalIsPresent, bool signalIsSaturated) |
|
bool | IsSignalPresent (TH1 *histo, const unsigned int threshold) const |
|
bool | IsSignalSaturated (TH1 *histo, const unsigned int saturationPoint) const |
|
void | CheckRisingSlope (TH1 *histo, unsigned int peakBin, float peakValue) |
|
std::string | GetPlotName (const std::string &base, const L1CaloCoolChannelId &coolId) const |
|
std::string | GetPlotTitle (const std::string &base, const L1CaloCoolChannelId &coolId) const |
|
std::string | CoolIdToString (const L1CaloCoolChannelId &coolId) const |
|
void | initMessaging () const |
| Initialize our message level and MessageSvc. More...
|
|
Definition at line 86 of file L1CaloPprPhos4Shape.h.
◆ CaloLayer
◆ L1CaloPprPhos4Shape() [1/3]
◆ ~L1CaloPprPhos4Shape()
L1CaloPprPhos4Shape::~L1CaloPprPhos4Shape |
( |
| ) |
|
◆ L1CaloPprPhos4Shape() [2/3]
L1CaloPprPhos4Shape::L1CaloPprPhos4Shape |
( |
| ) |
|
|
private |
◆ L1CaloPprPhos4Shape() [3/3]
◆ CalculateFullDelayData()
unsigned int L1CaloPprPhos4Shape::CalculateFullDelayData |
( |
const int |
truePeakPosition | ) |
|
|
private |
Definition at line 352 of file L1CaloPprPhos4Shape.cxx.
362 const int dt = idealPeakPosition - truePeakPosition;
364 const int newFullDelayData = (baseDelay +
dt);
365 if(newFullDelayData < 0){
366 ATH_MSG_WARNING(
"[CalculateFullDelayData]: New Full Delay data was calculated as zero. Should only be greater than zero. Returning 0 for safety. Channel 0x" <<
CoolIdToString(
m_coolId) <<
". Peak position passed was: " << truePeakPosition <<
" and the idealPeakPosition is: " << idealPeakPosition);
370 return (
unsigned int)newFullDelayData;
◆ CalculatePedCorrection()
void L1CaloPprPhos4Shape::CalculatePedCorrection |
( |
void |
| ) |
|
|
private |
◆ CalculatePedestal()
void L1CaloPprPhos4Shape::CalculatePedestal |
( |
TH1 * |
histo, |
|
|
float & |
pedMean, |
|
|
float & |
pedSigma |
|
) |
| |
|
private |
Definition at line 292 of file L1CaloPprPhos4Shape.cxx.
295 ATH_MSG_WARNING(
"[CalculatePedestal] Could not calculate pedestal due to lack of bins in " <<
histo->GetName());
299 float pedSum=0,pedSum2=0;
302 pedSum +=
histo->GetBinContent(
bin);
307 pedMean = pedSum/(
float)pedN;
308 pedSigma = sqrt( (1.0/(
float)pedN)*pedSum2 - pedMean*pedMean);
◆ CheckRisingSlope()
void L1CaloPprPhos4Shape::CheckRisingSlope |
( |
TH1 * |
histo, |
|
|
unsigned int |
peakBin, |
|
|
float |
peakValue |
|
) |
| |
|
private |
Definition at line 462 of file L1CaloPprPhos4Shape.cxx.
465 const float peakValue10percent = peakValue*0.10;
466 const float peakValue90percent = peakValue*0.90;
467 unsigned int peakBin10percent = 0;
468 unsigned int peakBin90percent = 0;
469 for(
unsigned int bin=peakBin;
bin>0;--
bin){
470 if(
histo->GetBinContent(
bin) < peakValue10percent && peakBin10percent == 0){
471 peakBin10percent =
bin;
474 if(
histo->GetBinContent(
bin) < peakValue90percent && peakBin90percent == 0){
475 peakBin90percent =
bin;
483 for(
unsigned int bin=peakBin10percent+1;
bin<=peakBin90percent;++
bin){
◆ CoolIdToString()
◆ CorrectRawPedestal()
void L1CaloPprPhos4Shape::CorrectRawPedestal |
( |
void |
| ) |
|
|
private |
◆ Fill() [1/3]
StatusCode L1CaloPprPhos4Shape::Fill |
( |
const unsigned int |
ns_step, |
|
|
const unsigned int |
adc |
|
) |
| |
Fill the profile with the ADC values at each nanosecond step.
Definition at line 78 of file L1CaloPprPhos4Shape.cxx.
88 return StatusCode::SUCCESS;
◆ Fill() [2/3]
StatusCode L1CaloPprPhos4Shape::Fill |
( |
const unsigned int |
rodHeaderStep, |
|
|
const std::vector< int > & |
adc |
|
) |
| |
Fill the profile with the ADC values at each nanosecond step Here I can accept the rodHeaderStep and a vector of the ADC values, which should only contain as many entries as there are ADC time slices since I use the vector to determine the number of time slices.
Definition at line 113 of file L1CaloPprPhos4Shape.cxx.
116 for(
unsigned int timeSlice = 0;timeSlice <
adc.size();++timeSlice){
129 return StatusCode::SUCCESS;
◆ Fill() [3/3]
StatusCode L1CaloPprPhos4Shape::Fill |
( |
const unsigned int |
timeSlice, |
|
|
const unsigned int |
rodHeaderStep, |
|
|
const int |
adc |
|
) |
| |
Fill the profile with the ADC values at each nanosecond step Here I can accept the rodHeaderStep and ADC time slice directly and I will calculate the nanosecond step.
Definition at line 94 of file L1CaloPprPhos4Shape.cxx.
105 return StatusCode::SUCCESS;
◆ FillErrorCode()
void L1CaloPprPhos4Shape::FillErrorCode |
( |
bool |
signalIsPresent, |
|
|
bool |
signalIsSaturated |
|
) |
| |
|
private |
◆ Finalize()
StatusCode L1CaloPprPhos4Shape::Finalize |
( |
void |
| ) |
|
In finalize I want the profile to be processed and extract some useful characteristics like the peak value and the peak location.
Definition at line 135 of file L1CaloPprPhos4Shape.cxx.
147 signalCut += pedestal;
157 return StatusCode::SUCCESS;
161 const unsigned short int saturationLevel = 1020;
164 if(signalIsSaturated){
176 std::string rawFitName =
"raw_";
198 std::string processedFitName =
"processed_";
210 return StatusCode::SUCCESS;
◆ FindBinWithMaxValue()
void L1CaloPprPhos4Shape::FindBinWithMaxValue |
( |
TH1 * |
histo, |
|
|
float & |
peakValue, |
|
|
unsigned int & |
peakBin |
|
) |
| |
|
private |
Given a signal profile, this finds the maximum value and it's corresponding bin.
Definition at line 214 of file L1CaloPprPhos4Shape.cxx.
219 if(peakValue < histo->GetBinContent(
bin)){
220 peakValue =
histo->GetBinContent(
bin);
◆ FitSignalPeak()
TF1 * L1CaloPprPhos4Shape::FitSignalPeak |
( |
TH1 * |
histo, |
|
|
const float |
maxPeakValue, |
|
|
const unsigned int |
maxPeakBin, |
|
|
const unsigned int |
pedestal, |
|
|
float & |
fitPeakValue, |
|
|
unsigned int & |
fitPeakBin |
|
) |
| |
|
private |
Given a signal profile, this finds the maximum value and it's corresponding bin.
Definition at line 226 of file L1CaloPprPhos4Shape.cxx.
231 const unsigned int fitRangeWidth = 13;
232 const unsigned int minFitRange = maxPeakBin - fitRangeWidth - 1;
233 const unsigned int maxFitRange = maxPeakBin + fitRangeWidth - 1;
238 TF1*
fit =
new TF1(fitName.c_str(),fitFunc,minFitRange,maxFitRange,5);
240 fit->FixParameter(4,pedestal);
246 const unsigned int xmax_init = maxPeakBin-1;
247 fit->SetParameter(0,xmax_init);
253 const float amp_init = (maxPeakValue-pedestal)*
exp(0.5);
254 fit->SetParameter(1,amp_init);
260 const unsigned int gSigma_init = 25;
261 fit->SetParameter(2,gSigma_init);
267 const unsigned int lSigma_init = 15;
268 fit->SetParameter(3,lSigma_init);
275 const float ampl =
fit->GetParameter(1);
280 fitPeakValue = ampl*
exp(-0.5)+pedestal;
284 fitPeakBin =
histo->FindBin(
fit->GetParameter(0));
◆ GetCoolId()
unsigned int L1CaloPprPhos4Shape::GetCoolId |
( |
void |
| ) |
|
|
inline |
◆ GetCurrentFullDelayData()
unsigned int L1CaloPprPhos4Shape::GetCurrentFullDelayData |
( |
void |
| ) |
|
|
inline |
◆ GetErrorCode()
unsigned int L1CaloPprPhos4Shape::GetErrorCode |
( |
void |
| ) |
|
|
inline |
◆ GetEta()
float L1CaloPprPhos4Shape::GetEta |
( |
void |
| ) |
const |
|
inline |
◆ GetL1aFadcSlice()
unsigned int L1CaloPprPhos4Shape::GetL1aFadcSlice |
( |
void |
| ) |
|
|
inline |
◆ GetLayer()
CaloLayer L1CaloPprPhos4Shape::GetLayer |
( |
void |
| ) |
const |
|
inline |
◆ GetMinimumSignalHeight()
unsigned int L1CaloPprPhos4Shape::GetMinimumSignalHeight |
( |
void |
| ) |
const |
|
inline |
◆ GetPedestalMean()
float L1CaloPprPhos4Shape::GetPedestalMean |
( |
void |
| ) |
|
|
inline |
◆ GetPedestalSigma()
float L1CaloPprPhos4Shape::GetPedestalSigma |
( |
void |
| ) |
|
|
inline |
◆ GetPedValue()
unsigned int L1CaloPprPhos4Shape::GetPedValue |
( |
void |
| ) |
|
|
inline |
◆ GetPhi()
float L1CaloPprPhos4Shape::GetPhi |
( |
void |
| ) |
const |
|
inline |
◆ GetPlotName()
◆ GetPlotTitle()
◆ GetProcessedFit()
TF1* L1CaloPprPhos4Shape::GetProcessedFit |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedFitFullDelayData()
unsigned int L1CaloPprPhos4Shape::GetProcessedFitFullDelayData |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedFitPeakBin()
unsigned int L1CaloPprPhos4Shape::GetProcessedFitPeakBin |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedFitPeakValue()
float L1CaloPprPhos4Shape::GetProcessedFitPeakValue |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedFitPerformed()
bool L1CaloPprPhos4Shape::GetProcessedFitPerformed |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedMaxFullDelayData()
unsigned int L1CaloPprPhos4Shape::GetProcessedMaxFullDelayData |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedMaxPeakBin()
unsigned int L1CaloPprPhos4Shape::GetProcessedMaxPeakBin |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedMaxPeakValue()
float L1CaloPprPhos4Shape::GetProcessedMaxPeakValue |
( |
void |
| ) |
|
|
inline |
◆ GetProcessedSignalShape()
TH1F* L1CaloPprPhos4Shape::GetProcessedSignalShape |
( |
void |
| ) |
|
|
inline |
◆ GetRawFit()
TF1* L1CaloPprPhos4Shape::GetRawFit |
( |
void |
| ) |
|
|
inline |
◆ GetRawFitFullDelayData()
unsigned int L1CaloPprPhos4Shape::GetRawFitFullDelayData |
( |
void |
| ) |
|
|
inline |
◆ GetRawFitPeakBin()
unsigned int L1CaloPprPhos4Shape::GetRawFitPeakBin |
( |
void |
| ) |
|
|
inline |
◆ GetRawFitPeakValue()
float L1CaloPprPhos4Shape::GetRawFitPeakValue |
( |
void |
| ) |
|
|
inline |
◆ GetRawFitPerformed()
bool L1CaloPprPhos4Shape::GetRawFitPerformed |
( |
void |
| ) |
|
|
inline |
◆ GetRawMaxFullDelayData()
unsigned int L1CaloPprPhos4Shape::GetRawMaxFullDelayData |
( |
void |
| ) |
|
|
inline |
◆ GetRawMaxPeakBin()
unsigned int L1CaloPprPhos4Shape::GetRawMaxPeakBin |
( |
void |
| ) |
|
|
inline |
◆ GetRawMaxPeakValue()
float L1CaloPprPhos4Shape::GetRawMaxPeakValue |
( |
void |
| ) |
|
|
inline |
◆ GetRawPhos4Setting()
unsigned int L1CaloPprPhos4Shape::GetRawPhos4Setting |
( |
void |
| ) |
|
|
inline |
◆ GetRawSignalShape()
TProfile* L1CaloPprPhos4Shape::GetRawSignalShape |
( |
void |
| ) |
|
|
inline |
◆ GetRisingSlopeMean()
float L1CaloPprPhos4Shape::GetRisingSlopeMean |
( |
void |
| ) |
|
|
inline |
◆ GetRisingSlopeSigma()
float L1CaloPprPhos4Shape::GetRisingSlopeSigma |
( |
void |
| ) |
|
|
inline |
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ IsEnabled()
bool L1CaloPprPhos4Shape::IsEnabled |
( |
void |
| ) |
|
|
inline |
◆ IsProcessed()
bool L1CaloPprPhos4Shape::IsProcessed |
( |
void |
| ) |
|
|
inline |
◆ IsSignalPresent()
bool L1CaloPprPhos4Shape::IsSignalPresent |
( |
TH1 * |
histo, |
|
|
const unsigned int |
threshold |
|
) |
| const |
|
private |
◆ IsSignalSaturated()
bool L1CaloPprPhos4Shape::IsSignalSaturated |
( |
TH1 * |
histo, |
|
|
const unsigned int |
saturationPoint |
|
) |
| const |
|
private |
◆ IsValidChannel()
bool L1CaloPprPhos4Shape::IsValidChannel |
( |
void |
| ) |
|
|
inline |
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ operator=()
◆ SetCurrentFullDelayData()
void L1CaloPprPhos4Shape::SetCurrentFullDelayData |
( |
unsigned int |
delay | ) |
|
|
inline |
◆ SetEnabled()
void L1CaloPprPhos4Shape::SetEnabled |
( |
bool |
enabled | ) |
|
|
inline |
◆ SetEta()
void L1CaloPprPhos4Shape::SetEta |
( |
const float |
eta | ) |
|
|
inline |
◆ SetL1aFadcSlice()
void L1CaloPprPhos4Shape::SetL1aFadcSlice |
( |
unsigned int |
slice | ) |
|
|
inline |
◆ SetLayer()
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ SetMinimumSignalHeight()
void L1CaloPprPhos4Shape::SetMinimumSignalHeight |
( |
const unsigned int |
min | ) |
|
|
inline |
◆ SetPedValue()
void L1CaloPprPhos4Shape::SetPedValue |
( |
unsigned int |
value | ) |
|
|
inline |
◆ SetPhi()
void L1CaloPprPhos4Shape::SetPhi |
( |
const float |
phi | ) |
|
|
inline |
◆ SetValidChannel()
void L1CaloPprPhos4Shape::SetValidChannel |
( |
bool |
validity | ) |
|
|
inline |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_coolId
◆ m_currentFullDelayData
unsigned int L1CaloPprPhos4Shape::m_currentFullDelayData |
|
private |
◆ m_errorCode
◆ m_eta
float L1CaloPprPhos4Shape::m_eta |
|
private |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_isEnabled
bool L1CaloPprPhos4Shape::m_isEnabled |
|
private |
◆ m_isValid
bool L1CaloPprPhos4Shape::m_isValid |
|
private |
◆ m_l1aFadcSlice
unsigned int L1CaloPprPhos4Shape::m_l1aFadcSlice |
|
private |
◆ m_layer
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_minSignalHeight
unsigned int L1CaloPprPhos4Shape::m_minSignalHeight |
|
private |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_pedCorrectionMean
std::vector<float> L1CaloPprPhos4Shape::m_pedCorrectionMean |
|
private |
◆ m_pedCorrectionN
std::vector<unsigned int> L1CaloPprPhos4Shape::m_pedCorrectionN |
|
private |
◆ m_pedCorrectionSigma
std::vector<float> L1CaloPprPhos4Shape::m_pedCorrectionSigma |
|
private |
◆ m_pedCorrectionSum
std::vector<unsigned int> L1CaloPprPhos4Shape::m_pedCorrectionSum |
|
private |
◆ m_pedCorrectionSum2
std::vector<unsigned int> L1CaloPprPhos4Shape::m_pedCorrectionSum2 |
|
private |
◆ m_pedValue
unsigned int L1CaloPprPhos4Shape::m_pedValue |
|
private |
◆ m_phi
float L1CaloPprPhos4Shape::m_phi |
|
private |
◆ m_processed_fit
TF1* L1CaloPprPhos4Shape::m_processed_fit |
|
private |
◆ m_processed_fitFullDelayData
unsigned int L1CaloPprPhos4Shape::m_processed_fitFullDelayData |
|
private |
◆ m_processed_fitPeakBin
unsigned int L1CaloPprPhos4Shape::m_processed_fitPeakBin |
|
private |
◆ m_processed_fitPeakValue
float L1CaloPprPhos4Shape::m_processed_fitPeakValue |
|
private |
◆ m_processed_fitPerformed
bool L1CaloPprPhos4Shape::m_processed_fitPerformed |
|
private |
◆ m_processed_maxFullDelayData
unsigned int L1CaloPprPhos4Shape::m_processed_maxFullDelayData |
|
private |
◆ m_processed_maxPeakBin
unsigned int L1CaloPprPhos4Shape::m_processed_maxPeakBin |
|
private |
◆ m_processed_maxPeakValue
float L1CaloPprPhos4Shape::m_processed_maxPeakValue |
|
private |
◆ m_processed_signalShape
TH1F* L1CaloPprPhos4Shape::m_processed_signalShape |
|
private |
◆ m_processSignalShape
bool L1CaloPprPhos4Shape::m_processSignalShape |
|
private |
◆ m_raw_fit
TF1* L1CaloPprPhos4Shape::m_raw_fit |
|
private |
◆ m_raw_fitFullDelayData
unsigned int L1CaloPprPhos4Shape::m_raw_fitFullDelayData |
|
private |
◆ m_raw_fitPeakBin
unsigned int L1CaloPprPhos4Shape::m_raw_fitPeakBin |
|
private |
◆ m_raw_fitPeakValue
float L1CaloPprPhos4Shape::m_raw_fitPeakValue |
|
private |
◆ m_raw_fitPerformed
bool L1CaloPprPhos4Shape::m_raw_fitPerformed |
|
private |
◆ m_raw_maxFullDelayData
unsigned int L1CaloPprPhos4Shape::m_raw_maxFullDelayData |
|
private |
◆ m_raw_maxPeakBin
unsigned int L1CaloPprPhos4Shape::m_raw_maxPeakBin |
|
private |
◆ m_raw_maxPeakValue
float L1CaloPprPhos4Shape::m_raw_maxPeakValue |
|
private |
◆ m_raw_signalShape
TProfile* L1CaloPprPhos4Shape::m_raw_signalShape |
|
private |
◆ m_rawPedestalMean
float L1CaloPprPhos4Shape::m_rawPedestalMean |
|
private |
◆ m_rawPedestalSigma
float L1CaloPprPhos4Shape::m_rawPedestalSigma |
|
private |
◆ m_risingSlopeMean
float L1CaloPprPhos4Shape::m_risingSlopeMean |
|
private |
◆ m_risingSlopeSigma
float L1CaloPprPhos4Shape::m_risingSlopeSigma |
|
private |
◆ MAX_ADC_TIME_SLICES
const unsigned int L1CaloPprPhos4Shape::MAX_ADC_TIME_SLICES = 15 |
|
staticprivate |
◆ MAX_PEDESTAL_SIGMA
const unsigned int L1CaloPprPhos4Shape::MAX_PEDESTAL_SIGMA = 4 |
|
staticprivate |
◆ NANOSEC_PER_LHC_CLOCK_TICK
const unsigned int L1CaloPprPhos4Shape::NANOSEC_PER_LHC_CLOCK_TICK = 25 |
|
staticprivate |
◆ SATURATED_ADC
const unsigned int L1CaloPprPhos4Shape::SATURATED_ADC = 1000 |
|
staticprivate |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
unsigned int m_processed_maxFullDelayData
bool phos4ScanSignalSaturated() const
unsigned int m_raw_maxFullDelayData
void FillErrorCode(bool signalIsPresent, bool signalIsSaturated)
bool m_processSignalShape
bool phos4ScanNoSignal() const
unsigned int m_processed_maxPeakBin
unsigned int m_minSignalHeight
Scalar phi() const
phi method
TH1F * m_processed_signalShape
unsigned int m_l1aFadcSlice
L1CaloCoolChannelId m_coolId
Scalar eta() const
pseudorapidity method
bool phos4ScanBadSignal() const
unsigned int m_currentFullDelayData
static const unsigned int NANOSEC_PER_LHC_CLOCK_TICK
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
IMessageSvc * getMessageSvc(bool quiet=false)
float m_processed_maxPeakValue
void CalculatePedCorrection(void)
void CheckRisingSlope(TH1 *histo, unsigned int peakBin, float peakValue)
bool IsSignalPresent(TH1 *histo, const unsigned int threshold) const
bool IsSignalSaturated(TH1 *histo, const unsigned int saturationPoint) const
AthMessaging()
Default constructor:
TProfile * m_raw_signalShape
def TProfile(*args, **kwargs)
unsigned int m_raw_maxPeakBin
TF1 * FitSignalPeak(TH1 *histo, const float maxPeakValue, const unsigned int maxPeakBin, const unsigned int pedestal, float &fitPeakValue, unsigned int &fitPeakBin)
Given a signal profile, this finds the maximum value and it's corresponding bin.
static const unsigned int MAX_PEDESTAL_SIGMA
double delay(std::size_t d)
ChanCalibErrorCode m_errorCode
bool m_processed_fitPerformed
unsigned int errorCode(ChanErrorComponent component) const
void SetBinContent(int, double)
MsgStream & msg() const
The standard message stream.
std::vector< float > m_pedCorrectionMean
std::string GetPlotTitle(const std::string &base, const L1CaloCoolChannelId &coolId) const
float m_processed_fitPeakValue
void FindBinWithMaxValue(TH1 *histo, float &peakValue, unsigned int &peakBin)
Given a signal profile, this finds the maximum value and it's corresponding bin.
std::string CoolIdToString(const L1CaloCoolChannelId &coolId) const
#define ATH_MSG_WARNING(x)
unsigned int CalculateFullDelayData(const int truePeakPosition)
std::string m_nm
Message source name.
void CalculatePedestal(TH1 *histo, float &pedMean, float &pedSigma)
void CorrectRawPedestal(void)
unsigned int m_raw_fitFullDelayData
unsigned int m_raw_fitPeakBin
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
void initMessaging() const
Initialize our message level and MessageSvc.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
std::vector< unsigned int > m_pedCorrectionN
unsigned int m_processed_fitPeakBin
std::vector< unsigned int > m_pedCorrectionSum2
std::vector< float > m_pedCorrectionSigma
static const unsigned int MAX_ADC_TIME_SLICES
unsigned int m_processed_fitFullDelayData
std::string GetPlotName(const std::string &base, const L1CaloCoolChannelId &coolId) const
std::vector< unsigned int > m_pedCorrectionSum
double GetBinContent(int) const