|
ATLAS Offline Software
|
Go to the documentation of this file.
22 #include "GaudiKernel/MsgStream.h"
23 #include "Gaudi/Property.h"
24 #include "GaudiKernel/TypeNameString.h"
49 m_tbin(0),m_fixShape(false)
77 return StatusCode::SUCCESS;
92 return StatusCode::FAILURE;
98 return StatusCode::FAILURE;
104 return StatusCode::FAILURE;
107 const std::vector<HWIdentifier>& roms = rodCont->getLArRoModIDvec();
108 ATH_MSG_DEBUG (
" Number of LArReadoutModuleIDs= " << roms.size() );
113 int ntot = it_end-
it;
114 ATH_MSG_DEBUG(
" Total number of online channels from LArOnlineID "
127 if (!
sc.isSuccess() ){
128 ATH_MSG_ERROR (
" Failed to retrieve ILArShape from DetStore");
134 if (!
sc.isSuccess() ){
135 ATH_MSG_ERROR (
" Failed to retrieve ILArNoise from DetStore");
141 if (!
sc.isSuccess() ){
142 ATH_MSG_ERROR (
" Failed to retrieve ILArRamp from DetStore");
147 if (!
sc.isSuccess() ){
148 ATH_MSG_ERROR (
" Failed to retrieve ILArDAC2uA from DetStore");
153 if (!
sc.isSuccess() ){
154 ATH_MSG_ERROR (
" Failed to retrieve ILAruA2MeV from DetStore");
159 if (!
sc.isSuccess() ){
160 ATH_MSG_ERROR (
" Failed to retrieve ILArAutoCorr from DetStore");
165 if (!
sc.isSuccess() ){
166 ATH_MSG_ERROR (
" Failed to retrieve ILArPedestal from DetStore");
171 if (!
sc.isSuccess() ){
172 ATH_MSG_ERROR (
" Failed to retrieve ILArfSampl from DetStore");
178 if (!
sc.isSuccess() ){
179 ATH_MSG_ERROR (
" Failed to retrieve ILArMinBias from DetStore");
183 for(;
it!=it_end;++
it) {
187 if(!
cabling->isOnlineConnected(sid))
214 const std::vector<HWIdentifier>&
215 calib = clCont->calibSlotLine(sid) ;
216 if(
calib.size()==0) {
232 float f = puA2MeV->
UA2MEV( sid ) ;
246 f = pNoise->
noise( sid , 0 ) ;
262 if(vShape.size() ==0 || vShapeDer.size() == 0 ) {
264 <<sid.
get_compact() <<
" size = " << vShape.size() <<
" " << vShapeDer.size());
270 for (
unsigned int i=0;
i < vShape.size(); ++
i){
271 msg()<<
" " << vShape[
i] ;
275 for (
unsigned int i=0;
i < vShapeDer.size(); ++
i){
276 msg()<<
" " << vShapeDer[
i] ;
284 float vPed = pPedestal->
pedestal( sid,0 ) ;
315 ATH_MSG_DEBUG (
" Number of Connected Channel ID = " <<nconnected );
317 if(nerr>0)
ATH_MSG_ERROR (
" Number channels with incorrect mapping= " <<nerr );
320 ATH_MSG_DEBUG (
" Number of channels without uA2MeV "<<n_err_uA2MeV);
322 ATH_MSG_DEBUG (
" Number of channels without DAC2uA"<<n_err_DAC2uA);
324 return StatusCode::SUCCESS;
339 return StatusCode::SUCCESS;
341 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual float pedestal(const HWIdentifier &id, 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 & UA2MEV(const HWIdentifier &id) const =0
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual ShapeRef_t ShapeDer(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
value_type get_compact() const
Get the compact id.
bool msgLvl(const MSG::Level lvl) const
const LArOnlineID * m_onlineID
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKey
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
SG::ReadCondHandleKey< LArFebRodMapping > m_RodKey
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
id_iterator channel_end() const
value_type get_compact() const
Get the compact id.
virtual AutoCorrRef_t autoCorr(const HWIdentifier &CellID, int gain) const =0
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
This class defines the interface for accessing AutoCorrelation parameters for each channel @stereotyp...
const LArOnlineID * m_emid
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual const float & FSAMPL(const HWIdentifier &id) const =0
virtual const float & noise(const HWIdentifier &id, int gain) const =0
This file defines the template class used for I/O of conditions data.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
virtual RampRef_t ADC2DAC(const HWIdentifier &id, int gain) const =0
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
LArCondDataTest(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize(bool used=true)
void print(Identifier id, const IdContext *context=0) const
Expanded print out of any identifier.
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
This file contains an algorithm for testing lar conditions data access.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
virtual const float & minBiasRMS(const HWIdentifier &id) const =0
access to RMS of E in minimum bias events index by Identifier
id_iterator channel_begin() const
Returns an iterator pointing to a channel identifier collection.
Exception class for LAr Identifiers.
Proxy for accessing a range of float values like a vector.
virtual ShapeRef_t Shape(const HWIdentifier &id, int gain, int tbin=0, int mode=0) const =0