|
ATLAS Offline Software
|
#include <LArBadChannelHunter.h>
|
| LArBadChannelHunter (const std::string &name, ISvcLocator *pSvcLocator) |
| Regular algorithm constructor. More...
|
|
| ~LArBadChannelHunter () |
| Destructor. More...
|
|
virtual StatusCode | initialize () override |
| Standard initialization method. More...
|
|
virtual StatusCode | execute () override |
| Standard execute method This method has to be emtpy since all the job is done in finalize. More...
|
|
virtual StatusCode stop | ATLAS_NOT_THREAD_SAFE () override |
| Standard stop method. 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 34 of file LArBadChannelHunter.h.
◆ StoreGateSvc_t
◆ AvgType
◆ LArBadChannelHunter()
LArBadChannelHunter::LArBadChannelHunter |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Regular algorithm constructor.
Definition at line 19 of file LArBadChannelHunter.cxx.
39 "Channels with pedestal rms x sigma or percent above average are tagged 'low noise' (in high gain) ");
41 "Channels with pedestal rms x sigma or percent above average are tagged 'low noise' (in medium gain) ");
43 "Channels with pedestal rms x sigma or percent above average are tagged 'low noise' (in low gain) ");
46 "Channels with pedestal rms x sigma or percent above average are tagged 'High noise' (in high gain) ");
48 "Channels with pedestal rms x sigma or percent above average are tagged 'High noise' (in medium gain) ");
50 "Channels with pedestal rms x sigma or percent above average are tagged 'High noise' (in low gain) ");
54 "Channels with amplitudes x sigma or percent above the average are tagged as 'deadReadout' or 'deadCalib' (H gain)");
56 "Channels with amplitudes x sigma or percent above the average are tagged as 'deadReadout' or 'deadCalib' (M gain)");
58 "Channels with amplitudes x sigma or percent above the average are tagged as 'deadReadout' or 'deadCalib' (L gain)");
61 "Channels with a width x sigma or percent above the average are tagged as 'distorted' (H gain)");
63 "Channels with a width x sigma or percent above the average are tagged as 'distorted' (M gain)");
65 "Channels with a width x sigma or percent above the average are tagged as 'distorted' (L gain)");
69 "Channels with a width x sigma or percent above the average are tagged as 'deadReadout' or 'deadCalib' (H gain)");
71 "Channels with a width x sigma or percent above the average are tagged as 'deadReadout' or 'deadCalib' (M gain)");
73 "Channels with a width x sigma or percent above the average are tagged as 'deadReadout' or 'deadCalib' (L gain)");
76 "Channels with a width x sigma or percent above the average are tagged as 'distorted' (H gain)");
78 "Channels with a width x sigma or percent above the average are tagged as 'distorted' (M gain)");
80 "Channels with a width x sigma or percent above the average are tagged as 'distorted' (L gain)");
84 "Distorted with a TamxAmpl x sigma or percent above the average are tagged as 'distorted' (H gain)");
86 "Distorted with a TamxAmpl x sigma or percent above the average are tagged as 'distorted' (M gain)");
88 "Distorted with a TamxAmpl x sigma or percent above the average are tagged as 'distorted' (L gain)");
◆ ~LArBadChannelHunter()
LArBadChannelHunter::~LArBadChannelHunter |
( |
| ) |
|
|
inline |
◆ ATLAS_NOT_THREAD_SAFE()
virtual StatusCode stop LArBadChannelHunter::ATLAS_NOT_THREAD_SAFE |
( |
| ) |
|
|
overridevirtual |
◆ channelDescription()
the format of output is changed a bit to be consistent with the output format of validation tools
Definition at line 438 of file LArBadChannelHunter.cxx.
444 std::ostringstream
output;
468 if (
cabling->isOnlineConnected(chid)) {
479 output <<
",disconnected";
◆ 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()
virtual StatusCode LArBadChannelHunter::execute |
( |
| ) |
|
|
inlineoverridevirtual |
Standard execute method This method has to be emtpy since all the job is done in finalize.
Definition at line 56 of file LArBadChannelHunter.h.
56 {
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();
◆ getSymId()
Definition at line 651 of file LArBadChannelHunter.cxx.
664 std::cout <<
"ERROR unexpected idetifier:"
665 << std::hex <<
" id=0x" <<
id <<
" regionId=0x" << regid
666 << std::dec <<
" reghash=" << reghash <<
" eta=" <<
eta
667 <<
" caloRegionHashMax=" << caloRegionHashMax
673 const unsigned retval= (
eta<<8) | reghash;
◆ initialize()
StatusCode LArBadChannelHunter::initialize |
( |
| ) |
|
|
overridevirtual |
Standard initialization method.
Definition at line 92 of file LArBadChannelHunter.cxx.
99 return StatusCode::FAILURE;
106 return StatusCode::FAILURE;
113 return StatusCode::SUCCESS;
◆ 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_amplTh
◆ m_avgType
AvgType LArBadChannelHunter::m_avgType |
|
private |
◆ m_avgTypeProp
std::string LArBadChannelHunter::m_avgTypeProp |
|
private |
◆ m_BCKey
◆ m_cablingKey
◆ m_caliWaveKey
std::string LArBadChannelHunter::m_caliWaveKey |
|
private |
◆ m_caloId
◆ m_CLKey
◆ m_cutType
std::string LArBadChannelHunter::m_cutType |
|
private |
◆ m_detStore
◆ m_distampTh
◆ m_distwidTh
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_highNoiseTh
◆ m_lowNoiseTh
◆ m_onlineId
◆ m_outFileName
std::string LArBadChannelHunter::m_outFileName |
|
private |
◆ m_outOnlyNew
bool LArBadChannelHunter::m_outOnlyNew |
|
private |
◆ m_pedKey
std::string LArBadChannelHunter::m_pedKey |
|
private |
◆ m_recalcPer
float LArBadChannelHunter::m_recalcPer |
|
private |
◆ m_tmaxampTh
◆ m_undoCorr
bool LArBadChannelHunter::m_undoCorr |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_widTh
The documentation for this class was generated from the following files:
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Identifier region_id(const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy) const
Make a region ID from constituting fields and subCalo index; for (Mini)FCAL and Tiles,...
float m_highNoiseTh[CaloGain::LARNGAIN]
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
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
const CaloCell_ID * m_caloId
std::string m_outFileName
float m_amplTh[CaloGain::LARNGAIN]
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKey
value_type get_compact() const
Get the compact id.
virtual void setOwner(IDataHandleHolder *o)=0
IdentifierHash calo_region_hash(const Identifier regionId) const
create hash id from 'global' region id
bool isFCALchannel(const HWIdentifier id) const
const LArOnlineID * m_onlineId
float m_tmaxampTh[CaloGain::LARNGAIN]
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
bool isEMECchannel(const HWIdentifier id) const override final
virtual StatusCode sysInitialize() override
Override sysInitialize.
SG::ReadCondHandleKey< LArBadChannelCont > m_BCKey
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
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...
int eta(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string m_caliWaveKey
StatusCode initialize(bool used=true)
bool isCalibration(const HWIdentifier id) const
bool isEMBchannel(const HWIdentifier id) const
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/...
#define ATH_MSG_WARNING(x)
std::string m_avgTypeProp
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
float m_widTh[CaloGain::LARNGAIN]
float m_distwidTh[CaloGain::LARNGAIN]
bool isHECchannel(const HWIdentifier id) const override final
size_type calo_region_hash_max(void) const
cell 'global' region table max size
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Exception class for LAr Identifiers.
float m_lowNoiseTh[CaloGain::LARNGAIN]
float m_distampTh[CaloGain::LARNGAIN]