22#include "GaudiKernel/MsgStream.h"
23#include "Gaudi/Property.h"
24#include "GaudiKernel/TypeNameString.h"
61 return StatusCode::SUCCESS;
76 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
88 return StatusCode::FAILURE;
92 ATH_MSG_DEBUG (
" Number of LArReadoutModuleIDs= " << roms.size() );
94 std::vector<HWIdentifier>::const_iterator it =
m_onlineID->channel_begin();
95 std::vector<HWIdentifier>::const_iterator it_end =
m_onlineID->channel_end();
98 ATH_MSG_DEBUG(
" Total number of online channels from LArOnlineID "
111 if (!
sc.isSuccess() ){
112 ATH_MSG_ERROR (
" Failed to retrieve ILArShape from DetStore");
118 if (!
sc.isSuccess() ){
119 ATH_MSG_ERROR (
" Failed to retrieve ILArNoise from DetStore");
125 if (!
sc.isSuccess() ){
126 ATH_MSG_ERROR (
" Failed to retrieve ILArRamp from DetStore");
131 if (!
sc.isSuccess() ){
132 ATH_MSG_ERROR (
" Failed to retrieve ILArDAC2uA from DetStore");
137 if (!
sc.isSuccess() ){
138 ATH_MSG_ERROR (
" Failed to retrieve ILAruA2MeV from DetStore");
143 if (!
sc.isSuccess() ){
144 ATH_MSG_ERROR (
" Failed to retrieve ILArAutoCorr from DetStore");
149 if (!
sc.isSuccess() ){
150 ATH_MSG_ERROR (
" Failed to retrieve ILArPedestal from DetStore");
155 if (!
sc.isSuccess() ){
156 ATH_MSG_ERROR (
" Failed to retrieve ILArfSampl from DetStore");
162 if (!
sc.isSuccess() ){
163 ATH_MSG_ERROR (
" Failed to retrieve ILArMinBias from DetStore");
167 for(;it!=it_end;++it) {
171 if(! cabling->isOnlineConnected(sid))
184 Identifier id = cabling->cnvToIdentifier(sid);
189 <<
" "<<sid<<
" "<<
m_onlineID->show_to_string(sid)
190 <<
" offline id = "<<
id <<
" "<<
m_onlineID->show_to_string(
id)
191 <<
" sid2 = "<< sid2 <<
" "<<
m_onlineID->show_to_string(sid2)
198 const std::vector<HWIdentifier>&
200 if(calib.size()==0) {
216 float f = puA2MeV->
UA2MEV( sid ) ;
223 f = pDAC2uA->
DAC2UA( sid ) ;
230 f = pNoise->
noise( sid , 0 ) ;
246 if(vShape.size() ==0 || vShapeDer.size() == 0 ) {
248 <<sid.
get_compact() <<
" size = " << vShape.size() <<
" " << vShapeDer.size());
251 if (
msgLvl(MSG::VERBOSE)) {
253 msg()<<MSG::VERBOSE<<
" Shape= " ;
254 for (
unsigned int i=0; i < vShape.size(); ++i){
255 msg()<<
" " << vShape[i] ;
258 msg()<<MSG::VERBOSE<<
" ShapeDer=" ;
259 for (
unsigned int i=0; i < vShapeDer.size(); ++i){
260 msg()<<
" " << vShapeDer[i] ;
268 float vPed = pPedestal->
pedestal( sid,0 ) ;
294 std::string err =
m_onlineID->print_to_string(sid);
299 ATH_MSG_DEBUG (
" Number of Connected Channel ID = " <<nconnected );
301 if(nerr>0)
ATH_MSG_ERROR (
" Number channels with incorrect mapping= " <<nerr );
304 ATH_MSG_DEBUG (
" Number of channels without uA2MeV "<<n_err_uA2MeV);
306 ATH_MSG_DEBUG (
" Number of channels without DAC2uA"<<n_err_DAC2uA);
308 return StatusCode::SUCCESS;
323 return StatusCode::SUCCESS;
325 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_VERBOSE(x,...)
This file contains an algorithm for testing lar conditions data access.
This file defines the template class used for I/O of conditions data.
const ServiceHandle< StoreGateSvc > & detStore() const
bool msgLvl(const MSG::Level lvl) const
This class defines the interface for accessing AutoCorrelation parameters for each channel @stereotyp...
LArVectorProxy AutoCorrRef_t
virtual AutoCorrRef_t autoCorr(const HWIdentifier &CellID, int gain) const =0
virtual const float & DAC2UA(const HWIdentifier &id) const =0
access to DAC2UA conversion factor index by Identifier, and gain setting
virtual const float & minBiasRMS(const HWIdentifier &id) const =0
access to RMS of E in minimum bias events index by Identifier
virtual const float & noise(const HWIdentifier &id, int gain) const =0
virtual float pedestal(const HWIdentifier &id, int gain) const =0
virtual RampRef_t ADC2DAC(const HWIdentifier &id, int gain) const =0
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
LArVectorProxy ShapeRef_t
This class defines the interface for accessing Shape (Nsample variable, Dt = 25 ns fixed) @stereotype...
virtual ShapeRef_t Shape(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
virtual ShapeRef_t ShapeDer(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
virtual const float & FSAMPL(const HWIdentifier &id) const =0
virtual const float & UA2MEV(const HWIdentifier &id) const =0
value_type get_compact() const
Get the compact id.
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
const std::vector< HWIdentifier > & calibSlotLine(const HWIdentifier id) const
const LArOnlineID * m_emid
Gaudi::Property< int > m_tbin
Gaudi::Property< bool > m_fixShape
SG::ReadCondHandleKey< LArFebRodMapping > m_RodKey
const LArOnlineID * m_onlineID
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKey
StatusCode execute(const EventContext &ctx)
Execute method.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const std::vector< HWIdentifier > & getLArRoModIDvec() const
"iterator" on LArReadoutModuleIDs
Exception class for LAr Identifiers.