ATLAS Offline Software
LArCalorimeter
LArRawConditions
src
LArDSPThresholdsComplete.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include <limits>
6
#include "
LArRawConditions/LArDSPThresholdsComplete.h
"
7
8
9
//The default thresholds should be very high (eg. never go over threshold)
10
//We have to keep in mind that the data is casted to an int somewhere down the chain.
11
//This number shoudl we very high but can be safely casted to an int.
12
const
float
LArDSPThresholdsP::m_default
=
std::numeric_limits<int>::max
()*0.99;
13
14
15
void
LArDSPThresholdsComplete::set
(
const
HWIdentifier
chid,
16
const
float
tQThr,
const
float
samplesThr,
17
const
float
trigSumThr) {
18
LArDSPThresholdsP
data
(
tQThr
,
samplesThr
,
trigSumThr
);
19
this->
setPdata
(chid,
data
,0);
20
}
data
char data[hepevt_bytes_allocation_ATLAS]
Definition:
HepEvt.cxx:11
LArConditionsContainer< LArDSPThresholdsP >::setPdata
void setPdata(const HWIdentifier id, const LArDSPThresholdsP &payload, unsigned int gain=0)
put payload in persistent data
max
constexpr double max()
Definition:
ap_fixedTest.cxx:33
HWIdentifier
Definition:
HWIdentifier.h:13
LArDSPThresholdsComplete::samplesThr
float samplesThr(const HWIdentifier chid) const
Definition:
LArDSPThresholdsComplete.h:27
LArDSPThresholdsP
Definition:
LArDSPThresholdsP.h:9
LArDSPThresholdsP::m_default
static const float m_default
Definition:
LArDSPThresholdsP.h:34
LArDSPThresholdsComplete.h
A LArRawConditionsContainer holding thresholds used by the DSP.
LArDSPThresholdsComplete::trigSumThr
float trigSumThr(const HWIdentifier chid) const
Definition:
LArDSPThresholdsComplete.h:28
LArDSPThresholdsComplete::tQThr
float tQThr(const HWIdentifier chid) const
Definition:
LArDSPThresholdsComplete.h:26
LArDSPThresholdsComplete::set
void set(const HWIdentifier chid, const float tQThr, const float samplesThr, const float trigSumThr)
Definition:
LArDSPThresholdsComplete.cxx:15
Generated on Sun Dec 22 2024 21:13:25 for ATLAS Offline Software by
1.8.18