![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/MsgStream.h"
13 #include "CLHEP/Units/SystemOfUnits.h"
21 #define MAXINT 2147483000
22 #define MAXINT2 -2147483000
25 const std::string&
name,
28 m_larOFIterCont(nullptr),
29 m_storeGate(
"StoreGateSvc",
name),
30 m_peakReco(
"LArOFPeakRecoTool") {
50 "Create container of LArOFIterResults in StoreGate");
52 "Key of the LArOFIterResultsContainer in StoreGate");
54 " take noise from LArNoise instead of LArPedestal");
64 if(
sc.isFailure() ) {
65 log << MSG::ERROR <<
"Unable to retrieve LArOFPeakRecoTool" <<
endmsg;
66 return StatusCode::FAILURE;
71 log << MSG::ERROR <<
"StoreGate service not found" <<
endmsg;
92 return StatusCode::SUCCESS;
100 if (
sc.isFailure()) {
102 log << MSG::ERROR <<
"Failed to record a LArOFIterResultsContainer with key " <<
m_timingContKey <<
" to StoreGate." <<
endmsg;
112 const std::vector<float>& ramps,
117 const EventContext& ctx = Gaudi::Hive::currentContext();
132 unsigned int sampsize = (
unsigned int)
samples.size();
133 float peakval = -999.;
134 unsigned int ipeak = 0;
138 for (
unsigned int ii = 0; ii < sampsize; ii++) {
141 <<
"Saturation on channel 0x" << MSG::hex << chid.
get_compact() << MSG::dec
151 iprovenance = iprovenance | 0x0400;
191 if (ipeak > sampsize - 3) ipeak = sampsize - 3 ;
192 if (ipeak < 2) ipeak = 2;
195 unsigned int peak_min = ipeak - 1 ;
196 unsigned int peak_max = ipeak + 1 ;
203 ipeak,peak_min, peak_max
212 ADCPeak =
results.getAmplitude();
230 for(
unsigned int i=0;
i<ramps.size();
i++)
245 if (iqua > 0xFFFF) iqua=0xFFFF;
246 iquality = (
uint16_t)(iqua & 0xFFFF);
247 iprovenance = iprovenance | 0x2000;
257 iprovenance |= 0x0100;
258 iprovenance = iprovenance & 0x3FFF;
262 const float fMAXINT =
static_cast<float>(
MAXINT);
263 const float fMAXINT2 =
static_cast<float>(
MAXINT2);
273 #if __GNUC__ >= 11 && __GNUC__ <= 13
274 # pragma GCC diagnostic push
275 # pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
278 #if __GNUC__ >= 11 && __GNUC__ <= 13
279 # pragma GCC diagnostic pop
CaloGain::CaloGain curr_gain
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void setErrorString(unsigned int nerr, const std::string &s)
Returns various counters from the LArRawChannel building.
void incrementErrorCount(unsigned int nerr)
int curr_shiftTimeSamples
msgSvc
Provide convenience handles for various services.
Liquid Argon digit base class.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual const float & noise(const HWIdentifier &id, int gain) const =0
StatusCode initialize(bool used=true)
value_type get_compact(void) const
Get the compact id.
unsigned int returnBitPattern() const
std::string debugPrint(const IDC_Container *container, unsigned numprint=25)
Diagnostic output of Identifiable Containers.
virtual float pedestalRMS(const HWIdentifier &id, int gain) const =0
access to RMS of Pedestal index by Identifier, and gain setting
unsigned int qualityBitPattern