|
ATLAS Offline Software
|
Athena algorithm used for testing LAr conditions data access.
More...
#include <LArCondDataTest.h>
|
| LArCondDataTest (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~LArCondDataTest () |
|
StatusCode | initialize () |
|
StatusCode | execute () |
|
StatusCode | finalize () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Athena algorithm used for testing LAr conditions data access.
Definition at line 35 of file LArCondDataTest.h.
◆ StoreGateSvc_t
◆ LArCondDataTest()
LArCondDataTest::LArCondDataTest |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~LArCondDataTest()
LArCondDataTest::~LArCondDataTest |
( |
| ) |
|
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode LArCondDataTest::execute |
( |
| ) |
|
Definition at line 84 of file LArCondDataTest.cxx.
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;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode LArCondDataTest::finalize |
( |
| ) |
|
Definition at line 334 of file LArCondDataTest.cxx.
339 return StatusCode::SUCCESS;
341 return StatusCode::SUCCESS;
◆ initialize()
StatusCode LArCondDataTest::initialize |
( |
| ) |
|
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_cablingKey
◆ m_CLKey
◆ m_detStore
◆ m_emid
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_fixShape
bool LArCondDataTest::m_fixShape |
|
private |
◆ m_onlineID
◆ m_RodKey
◆ m_tbin
int LArCondDataTest::m_tbin |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
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
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
std::vector< SG::VarHandleKeyArray * > m_vhka
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.
virtual void setOwner(IDataHandleHolder *o)=0
This class defines the interface for accessing AutoCorrelation parameters for each channel @stereotyp...
const LArOnlineID * m_emid
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::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
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
virtual void renounce()=0
virtual RampRef_t ADC2DAC(const HWIdentifier &id, int gain) const =0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
StatusCode initialize(bool used=true)
void print(Identifier id, const IdContext *context=0) const
Expanded print out of any identifier.
DataObjIDColl m_extendedExtraObjects
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
#define ATH_MSG_WARNING(x)
virtual const float & minBiasRMS(const HWIdentifier &id) const =0
access to RMS of E in minimum bias events index by Identifier
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
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