|
ATLAS Offline Software
|
#include <LArIdCablingTest.h>
|
| ~LArIdCablingTest () |
|
virtual StatusCode | initialize () final |
|
virtual StatusCode | execute () final |
|
| AthAlgorithm (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor with parameters: More...
|
|
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 |
|
Definition at line 14 of file LArIdCablingTest.h.
◆ StoreGateSvc_t
◆ ~LArIdCablingTest()
LArIdCablingTest::~LArIdCablingTest |
( |
| ) |
|
|
default |
◆ AthAlgorithm()
AthAlgorithm::AthAlgorithm |
Constructor with parameters:
Definition at line 51 of file AthAlgorithm.cxx.
32 std::make_unique<AthenaBaseComps::AthAlgorithmDHUpdate>
34 std::move (m_updateDataHandles));
◆ 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 LArIdCablingTest::execute |
( |
| ) |
|
|
finalvirtual |
Definition at line 28 of file LArIdCablingTest.cxx.
58 unsigned nConnected = 0;
59 std::array<unsigned,2> nEMECIW{0,0};
60 std::array<unsigned,2> nEMECOW{0,0};
61 std::array<unsigned,2> nBarrel{0,0};
62 std::array<unsigned,2> nHEC{0,0};
63 std::array<unsigned,2> nFCAL{0,0};
68 if (!
cabling->isOnlineConnected(chid))
continue;
72 ATH_MSG_ERROR(
"Invalid offline id for online id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid));
75 std::string subdet=
"Unkown";
76 int posneg=larOnlineID->
pos_neg(chid);
77 if (caloId->
is_em_barrel(
id)) {subdet=
"Barrel"; ++nBarrel[posneg];}
80 if (caloId->
is_hec(
id)) {subdet=
"HEC"; ++nHEC[posneg];}
81 if (caloId->
is_fcal(
id)) {subdet=
"FCAL"; ++nFCAL[posneg];}
83 ATH_MSG_DEBUG(
"Channel 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
84 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" " << subdet);
86 ATH_MSG_ERROR(
"isEMB mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
87 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
91 ATH_MSG_ERROR(
"isEMECIW mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
92 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
96 ATH_MSG_ERROR(
"isEMECOW mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
97 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
101 ATH_MSG_ERROR(
"isEMEC mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
102 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
106 ATH_MSG_ERROR(
"isHEC mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
107 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
111 ATH_MSG_ERROR(
"isFCAL mismatch online Id 0x" << std::hex << chid.get_identifier32().get_compact() << std::dec <<
" " << larOnlineID->
channel_name(chid)
112 <<
" offline id 0x" << std::hex <<
id.get_identifier32().get_compact() << std::dec <<
" onl "
121 ATH_MSG_INFO(
"checked " << nConnected <<
" super-cell channels.");
123 ATH_MSG_INFO(
"checked " << nConnected <<
" regular channels.");
126 ATH_MSG_INFO(
"Barrel " << nBarrel[0] <<
"/" << nBarrel[1]);
128 ATH_MSG_INFO(
"EMECOW " << nEMECIW[0] <<
"/" << nEMECIW[1]);
130 ATH_MSG_INFO(
"EMECIW " << nEMECOW[0] <<
"/" << nEMECOW[1]);
136 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();
◆ initialize()
StatusCode LArIdCablingTest::initialize |
( |
| ) |
|
|
finalvirtual |
◆ 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()
◆ action
◆ args
◆ AtlasVersion
LArIdCablingTest.AtlasVersion |
◆ cfg
LArIdCablingTest.cfg = MainServicesCfg(flags) |
◆ DatabaseInstance
LArIdCablingTest.DatabaseInstance |
◆ default
◆ doAlign
◆ errorLimit
LArIdCablingTest.errorLimit |
◆ flags
LArIdCablingTest.flags = initConfigFlags() |
◆ GlobalTag
LArIdCablingTest.GlobalTag |
◆ help
◆ int
◆ isMC
◆ isSC
LArIdCablingTest.isSC = args.SC |
◆ leftover
LArIdCablingTest.leftover |
◆ m_cablingKey
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_isSC
Gaudi::Property<bool> LArIdCablingTest::m_isSC {this,"isSC",false} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ None
◆ parser
LArIdCablingTest.parser = argparse.ArgumentParser() |
◆ RunNumbers
LArIdCablingTest.RunNumbers |
◆ type
◆ x7fffffff
LArIdCablingTest.x7fffffff |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
bool is_em_endcap_outer(const Identifier id) const
test if the id belongs to the EM Endcap outer wheel
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
virtual bool isEMECIW(const HWIdentifier id) const =0
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
bool isFCALchannel(const HWIdentifier id) const
virtual StatusCode sysInitialize() override
Override sysInitialize.
id_range channel_range() const
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Helper class for offline supercell identifiers.
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
virtual bool isHECchannel(const HWIdentifier id) const =0
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool isEMECOW(const HWIdentifier id) const =0
bool is_em_endcap_inner(const Identifier id) const
test if the id belongs to the EM Endcap inner wheel
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
Helper class for offline cell identifiers.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
Helper for the Liquid Argon Calorimeter cell identifiers.
virtual bool isEMECchannel(const HWIdentifier id) const =0
StatusCode initialize(bool used=true)
bool isEMBchannel(const HWIdentifier id) const
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
DataObjIDColl m_extendedExtraObjects
Gaudi::Property< bool > m_isSC
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
Helper base class for offline cell identifiers.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>