ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
LArFebErrorSummaryMaker Class Reference

#include <LArFebErrorSummaryMaker.h>

Inheritance diagram for LArFebErrorSummaryMaker:
Collaboration diagram for LArFebErrorSummaryMaker:

Public Member Functions

virtual ~LArFebErrorSummaryMaker ()=default
 
virtual StatusCode initialize () override final
 
virtual StatusCode execute (const EventContext &ctx) const override final
 
virtual StatusCode finalize () override final
 
 AthReentrantAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor with parameters: More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Static Private Member Functions

static bool masked (unsigned int hid, const std::set< unsigned int > &v_feb)
 

Private Attributes

std::atomic< int > m_missingFebsWarns {0}
 
std::mutex m_mtx
 
std::array< unsigned, LArFebErrorSummary::N_LArFebErrorType > m_errors ATLAS_THREAD_SAFE
 
std::map< unsigned, unsigned > m_errsPerFeb ATLAS_THREAD_SAFE
 
std::set< unsigned int > m_all_febs
 
bool m_isHec =false
 
bool m_isFcal =false
 
bool m_isEmb =false
 
bool m_isEmec =false
 
bool m_isEmPS =false
 
bool m_isAside =false
 
bool m_isCside =false
 
const LArOnlineIDm_onlineHelper =nullptr
 
Gaudi::Property< int > m_warnLimit { this, "warnLimit", 10, "Limit the number of warning messages for missing input" }
 
Gaudi::Property< bool > m_checkAllFeb { this, "CheckAllFEB", true, "Check all FEBS ?" }
 
Gaudi::Property< std::string > m_partition { this, "PartitionId", "", "Should contain DAQ partition (+ eventually the EventBuilder)" }
 
Gaudi::Property< std::set< unsigned int > > m_knownEvtId { this, "MaskFebEvtId", {}, "ignore these FEBs for EvtId" }
 
Gaudi::Property< std::set< unsigned int > > m_knownSCACStatus { this, "MaskFebScacStatus", {}, "ignore these FEBs for ScacStatus" }
 
Gaudi::Property< std::set< unsigned int > > m_knownZeroSample { this, "MaskFebZeroSample", {}, "ignore these FEBs for ZeroSample" }
 
Gaudi::Property< int > m_minFebsInError
 Minimum number of FEBs in error to trigger EventInfo::LArError Defined as 1 by default/bulk, 4 in online/express in CaloCellGetter (CaloRec package) More...
 
SG::ReadCondHandleKey< LArBadFebContm_bfKey {this,"BFKey","LArBadFeb","Key of the BadFebContainer in the conditions store"}
 
SG::ReadHandleKey< LArFebHeaderContainerm_readKey {this,"ReadKey","LArFebHeader"}
 
SG::ReadHandleKey< xAOD::EventInfom_eventInfoKey {this,"EventInfoKey","EventInfo"}
 
SG::WriteDecorHandleKey< xAOD::EventInfom_eventInfoDecorKey {this,"EventInfoDecorKey","EventInfo.larFlags"}
 
SG::WriteHandleKey< LArFebErrorSummarym_writeKey {this,"WriteKey","LArFebErrorSummary"}
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 39 of file LArFebErrorSummaryMaker.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ~LArFebErrorSummaryMaker()

virtual LArFebErrorSummaryMaker::~LArFebErrorSummaryMaker ( )
virtualdefault

Member Function Documentation

◆ AthReentrantAlgorithm()

AthReentrantAlgorithm::AthReentrantAlgorithm

Constructor with parameters:

Definition at line 90 of file AthReentrantAlgorithm.cxx.

22  :
24 {
25 
26  // Set up to run AthAlgorithmDHUpdate in sysInitialize before
27  // merging depedency lists. This extends the output dependency
28  // list with any symlinks implied by inheritance relations.
29  m_updateDataHandles =
30  std::make_unique<AthenaBaseComps::AthAlgorithmDHUpdate>
32  std::move (m_updateDataHandles));
33 }

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation 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.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation 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.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode LArFebErrorSummaryMaker::execute ( const EventContext &  ctx) const
finaloverridevirtual

Definition at line 86 of file LArFebErrorSummaryMaker.cxx.

87 {
88  ATH_MSG_DEBUG(" execute " );
89 
91 
93  ATH_CHECK( febErrorSummary.record (std::make_unique<LArFebErrorSummary>()) );
94 
96  const LArBadFebCont* badFebs{*h_bf};
97 
98  // EventInfo
100  ATH_CHECK(eventInfo.isValid());
101 
102  unsigned int nbSamplesFirst=0;
103  uint32_t eventTypeFirst = 999;
104 
105  ATH_MSG_DEBUG( " LArFebHeaderContainer Size = "<< hdrCont->size() );
106 
107  std::set<unsigned int> all_febs;
109 
110  all_febs= m_all_febs;
111 
112  }
113 
114  int nbOfFebsInError = 0;
115 
116  for (const auto* const it : *hdrCont) {
117 
118  HWIdentifier febid = it->FEBId();
119  unsigned int int_id = febid.get_identifier32().get_compact();
120 
121  if (m_checkAllFeb || m_isHec || m_isFcal || m_isEmb || m_isEmec || m_isEmPS) {
122  all_febs.erase(int_id);
123  }
124  // ctrl3
125  // const std::vector <uint16_t> &febctrl3 = it->FebCtrl3();
126 
127  // Retrieve rodstatus from DSP header
128  uint32_t rodstatus = it->RodStatus();
129  // Retrieve SCA adresses
130  const std::vector<uint16_t>& sca = it->SCA();
131  // Eventype = 2 : transparent/raw data - 4 : Physic - 7 : calibration - 10 : pedestal
132  uint32_t eventType = it->DetEventType();
133 
134  // Check the type consistency among different FEBs
135  bool typeMism = false;
136  // The event type is not yet determined(1st FEB) - Take this as reference
137  if (eventTypeFirst == 999)
138  eventTypeFirst = eventType;
139  if (eventType != eventTypeFirst)
140  typeMism = true;
141 
142  std::bitset<32> rodstatusbits(rodstatus);
143 
144  bool scaOutOfRange = false;
145  bool badNbOfSp = false;
146  bool zeroSp = false;
147  bool checkSumErr = false;
148 
149  // Extract the number of samples for the first non zero samples block
150  // This allow to allow to always plot the number of samples in the histo
151  if (nbSamplesFirst == 0) {
152  // Raw data / transparent : Nb of samples is here determined with size of raw data vector
153  if (eventType == 2 && (!sca.empty()))
154  nbSamplesFirst = sca.size();
155  // Physic : Nb of samples is here determined with method of LArFEBMonHeader
156  if (eventType == 4 && (it->NbSamples() != 0))
157  nbSamplesFirst = it->NbSamples();
158  }
159  // Test the uniformity of number of samples and that sca # is inside [0;143] only in raw data
160  if (eventType == 2) {
161  if (nbSamplesFirst != sca.size() && !sca.empty())
162  badNbOfSp = true;
163  for (unsigned int i = 0; i < sca.size(); ++i) {
164  if (sca[i] > 143)
165  scaOutOfRange = true;
166  }
167  }
168  if (eventType == 4 && (nbSamplesFirst != it->NbSamples()) && (it->NbSamples() != 0))
169  badNbOfSp = true;
170 
171  // Test that the number of samples is not zero only in raw data and results mode
172  if (eventType == 2 && sca.empty())
173  zeroSp = true;
174  if (eventType == 4 && (it->RodResults1Size() == 0))
175  zeroSp = true;
176 
177  if (!zeroSp) {
178  if (!it->ChecksumVerification())
179  checkSumErr = true;
180  if (eventType == 4) {
181  int expSize1 = 0;
182  if ((it->FormatVersion() & 0xF) <= 11)
183  expSize1 = it->NbSweetCells1() + 83 + (int)ceilf((it->NbSamples() + 1) / 2.0); // Old DSP version
184  if ((it->FormatVersion() & 0xF) >= 12)
185  expSize1 = it->NbSweetCells1() + 84 + (int)ceilf((it->NbSamples() + 1) / 2.0); // New DSP version after 07/11 with new extra word SumE
186  if (expSize1 != it->RodResults1Size()) {
187  checkSumErr = true;
188  }
189  int nbOf32bits = (it->NbSweetCells2() * it->NbSamples() + 1) / 2.0;
190  if (nbOf32bits != it->RodResults2Size()) {
191  checkSumErr = true;
192  }
193  }
194  }
195 
196  uint16_t errw = 0;
197 
198  /* enum LArFebErrorType{
199  Parity,BCID,SampleHeader,EVTID,ScacStatus,ScaOutOfRange,
200  GainMismatch,TypeMismatch,NumOfSamples,EmptyDataBlock,DspBlockSize,CheckSum, BadGain, N_LArFebErrorType
201  } ;
202  */
203 
204  if (rodstatusbits[6])
205  errw = errw | (1 << LArFebErrorSummary::Parity);
206 
207  if (rodstatusbits[2] || rodstatusbits[7])
208  errw = errw | (1 << LArFebErrorSummary::BCID);
209 
210  if (rodstatusbits[3] || rodstatusbits[8])
211  errw = errw | (1 << LArFebErrorSummary::SampleHeader);
212 
213  if ((rodstatusbits[1] || rodstatusbits[9]) && !masked(int_id, m_knownEvtId))
214  errw = errw | (1 << LArFebErrorSummary::EVTID);
215 
216  if ((rodstatusbits[4] || rodstatusbits[11] || rodstatusbits[12]) && !masked(int_id, m_knownSCACStatus))
217  errw = errw | (1 << LArFebErrorSummary::ScacStatus);
218 
219  if (scaOutOfRange)
220  errw = errw | (1 << LArFebErrorSummary::ScaOutOfRange);
221 
222  if (rodstatusbits[5])
223  errw = errw | (1 << LArFebErrorSummary::GainMismatch);
224 
225  if (rodstatusbits[24])
226  errw = errw | (1 << LArFebErrorSummary::BadGain);
227 
228  if (typeMism)
229  errw = errw | (1 << LArFebErrorSummary::TypeMismatch);
230 
231  if (badNbOfSp)
232  errw = errw | (1 << LArFebErrorSummary::NumOfSamples);
233 
234  if (zeroSp && !masked(int_id, m_knownZeroSample))
235  errw = errw | (1 << LArFebErrorSummary::EmptyDataBlock);
236 
237  if (checkSumErr)
238  // if (zeroSp)
239  errw = errw | (1 << LArFebErrorSummary::CheckSum);
240 
241  if (errw != 0) {
242  // check which errors should be ignored for this feb
243  const LArBadFeb febStatus = badFebs->status(febid);
244  unsigned int err_toignore = febStatus.ignoreErrors();
245  if (err_toignore > 0) {
246  uint16_t erri = (uint16_t)(err_toignore);
247  errw = errw & (~erri);
248  }
249  }
250 
251  if (errw !=0) {
252  std::lock_guard lock(m_mtx);
253  for (unsigned int i = 0; i < LArFebErrorSummary::N_LArFebErrorType; ++i) {
254  if (errw & (1 << i)) {
255  m_errors[i] += 1;
256  }
257  ++(m_errsPerFeb[int_id]);
258  }
259  }
260  ATH_MSG_DEBUG(std::format(" Error for this FEB id {:#x} is {:#x}",int_id,errw));
261 
262  if (!febErrorSummary->set_feb_error(int_id, errw)) {
263 
264  ATH_MSG_DEBUG(" failed to insert the error into LArFebErrorSummary " << std::hex << febid << std::dec);
265  }
266 
267  if (errw != 0) { // should this FEB be counted as in error ?
268  const LArBadFeb febStatus = badFebs->status(febid);
269  if (!febStatus.inError() && !(febStatus.deadReadout() || febStatus.deadAll()))
270  nbOfFebsInError += 1;
271  }
272 
273  } // loop over headers
274 
275  if (m_checkAllFeb || m_isHec || m_isFcal || m_isEmb || m_isEmec || m_isEmPS) {
277  bool warn = false;
278  for (auto it : all_febs) {
279  const HWIdentifier febid = HWIdentifier(Identifier32(it));
280  const LArBadFeb febStatus = badFebs->status(febid);
281  if (febStatus.deadReadout() || febStatus.deadAll() || febStatus.deactivatedInOKS()) {
282  ATH_MSG_DEBUG(" This FEB is not read out 0x" << std::hex << it << std::dec);
283  } else {
284  // Print warning only for first couple of events and if we have at least one FEB read out
285  //(dont' flood log with useless message is LAr is not in the run)
286  // if (this->outputLevel()<=MSG::WARNING && m_missingFebsWarns < m_warnLimit && hdrCont->size()>0) {
287  if (msgLvl(MSG::WARNING) && m_missingFebsWarns.load() < m_warnLimit && !hdrCont->empty()) {
288  warn = true;
289  const std::string bec = m_onlineHelper->barrel_ec(febid) == 0 ? "BARREL/" : "ENDCAP/";
290  const std::string side = m_onlineHelper->pos_neg(febid) == 0 ? "C/" : "A/";
291  ATH_MSG_WARNING("FEB [" << bec << side << m_onlineHelper->feedthrough(febid) << "/" << m_onlineHelper->slot(febid) << "] not read out!");
292  }
293 
294  febErrorSummary->set_feb_error(it, errw);
295  m_errors[LArFebErrorSummary::MissingHeader] += 1;
296  } // end else missing FEB to report
297 
298  } // end loop over febs
299  if (warn) {
300  if ((++m_missingFebsWarns) == m_warnLimit)
301  ATH_MSG_WARNING("No more warnings about FEBs not read out!");
302  }
303  } // end if checkCompletness
304 
305  if (nbOfFebsInError >= m_minFebsInError) {
306  ATH_MSG_DEBUG(" set error bit for LAr for this event ");
307  if (!eventInfo->updateErrorState(xAOD::EventInfo::LAr, xAOD::EventInfo::Error)) {
308  ATH_MSG_WARNING(" cannot set error state for LAr ");
309  }
310  if (!eventInfo->updateEventFlagBit(xAOD::EventInfo::LAr, LArEventBitInfo::DATACORRUPTED)) {
311  ATH_MSG_WARNING(" cannot set event bit info for LAr ");
312  }
313  }
314 
315  return StatusCode::SUCCESS;
316 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ finalize()

StatusCode LArFebErrorSummaryMaker::finalize ( )
finaloverridevirtual

Definition at line 324 of file LArFebErrorSummaryMaker.cxx.

325 {
326 
327  ATH_MSG_INFO(" In finalize: Number of Errors for each type" );
328 
329  for (unsigned int i=0;i<LArFebErrorSummary::N_LArFebErrorType;++i){
330  uint16_t err = 1<<i;
331  ATH_MSG_INFO( " type, name, count = " << i << " " << LArFebErrorSummary::error_to_string(err) << " " << m_errors[i] );
332  }
333 
334  for (auto feb_err : m_errsPerFeb) {
335  ATH_MSG_INFO(std::format("Feb {:#x} {} had errors for {} event(s)",feb_err.first,m_onlineHelper->channel_name(HWIdentifier(feb_err.first)),feb_err.second));
336 
337  }
338 
339  return StatusCode::SUCCESS;
340 
341 }

◆ initialize()

StatusCode LArFebErrorSummaryMaker::initialize ( )
finaloverridevirtual

Definition at line 15 of file LArFebErrorSummaryMaker.cxx.

16 {
17  ATH_MSG_DEBUG(" initialize " );
18 
20 
21  if (m_checkAllFeb) {
22  for (const HWIdentifier id : m_onlineHelper->feb_range()) {
23  m_all_febs.insert(id.get_identifier32().get_compact());
24  }
25  ATH_MSG_INFO(" number of FEBs from LArOnlineID "<< m_all_febs.size() );
26  }
27  else { // We should chack partition id
28  if(m_partition.size() > 0) {
29  unsigned length = m_partition.size();
30  if(m_partition.value().find("LArgHecFcal") < length && m_partition.value().find("EB-HEC") < length) m_isHec=true;
31  if(m_partition.value().find("LArgHecFcal") < length && m_partition.value().find("EB-FCAL") < length) m_isFcal=true;
32  if(m_partition.value().find("LArgBarrelPS") < length) {
33  m_isEmPS = true;
34  if(m_partition.value().find("EB-EMBA") < length) m_isAside = true;
35  if(m_partition.value().find("EB-EMBC") < length) m_isCside = true;
36  }
37  if(m_partition.value().find("LArgEm") < length && m_partition.value().find("EB-EMB") < length) {
38  m_isEmb = true;
39  if(m_partition.value().find("EB-EMBA") < length) m_isAside = true;
40  if(m_partition.value().find("EB-EMBC") < length) m_isCside = true;
41  }
42  if(m_partition.value().find("LArgEm") < length && m_partition.value().find("EB-EMEC") < length) {
43  m_isEmec = true;
44  if(m_partition.value().find("EB-EMECA") < length) m_isAside = true;
45  if(m_partition.value().find("EB-EMECC") < length) m_isCside = true;
46  }
47  }
48  if(m_isHec || m_isFcal || m_isEmb || m_isEmec || m_isEmPS) {
49  ATH_MSG_DEBUG("m_isHec: "<<m_isHec<<" m_isFcal: "<< m_isFcal <<" m_isEmb: "<< m_isEmb <<" m_isEmec: "<< m_isEmec <<" m_isEmbPS: "<< m_isEmPS );
50  } else {
51  ATH_MSG_WARNING("Wrong PartitionId property: "<<m_partition.value() );
52  ATH_MSG_WARNING("Missing FEB's will be not checked " );
53  }
54  // Now let's build the list of FEB's according partition
55  for (const HWIdentifier id : m_onlineHelper->feb_range()) {
56  if(m_isHec && m_onlineHelper->isHECchannel(id)) { m_all_febs.insert(id.get_identifier32().get_compact()); continue; }
57  if(m_isFcal && m_onlineHelper->isFCALchannel(id)) { m_all_febs.insert(id.get_identifier32().get_compact()); continue; }
58  if((m_isEmb && m_onlineHelper->isEMBchannel(id) && (!m_onlineHelper->isPS(id)))
60  || (m_isEmPS && m_onlineHelper->isPS(id) && (!m_onlineHelper->isEMBchannel(id))) ) {
61  if(m_isAside && m_onlineHelper->pos_neg(id) == 1) {m_all_febs.insert(id.get_identifier32().get_compact()); continue; }
62  if(m_isCside && m_onlineHelper->pos_neg(id) == 0) {m_all_febs.insert(id.get_identifier32().get_compact()); continue; }
63  }
64  }
65  }
66  ATH_MSG_INFO("Number of expected FEB's: "<<m_all_febs.size() );
67 
70  ATH_CHECK( m_bfKey.initialize());
73 
74  //Set error counters to 0
75  for (unsigned int i=0;i<LArFebErrorSummary::N_LArFebErrorType;++i){
76  m_errors[i]=0;
77  }
78 
79  ATH_MSG_INFO(" initialized " );
80 
81  return StatusCode::SUCCESS ;
82 
83 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ masked()

bool LArFebErrorSummaryMaker::masked ( unsigned int  hid,
const std::set< unsigned int > &  v_feb 
)
staticprivate

Definition at line 318 of file LArFebErrorSummaryMaker.cxx.

318  {
319 
320  //return v_feb.contains(hid); //C++20 only ..
321  return v_feb.find(hid) != v_feb.end();
322 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/2]

std::array<unsigned, LArFebErrorSummary::N_LArFebErrorType> m_errors LArFebErrorSummaryMaker::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 56 of file LArFebErrorSummaryMaker.h.

◆ ATLAS_THREAD_SAFE [2/2]

std::map<unsigned,unsigned> m_errsPerFeb LArFebErrorSummaryMaker::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 57 of file LArFebErrorSummaryMaker.h.

◆ m_all_febs

std::set<unsigned int> LArFebErrorSummaryMaker::m_all_febs
private

Definition at line 61 of file LArFebErrorSummaryMaker.h.

◆ m_bfKey

SG::ReadCondHandleKey<LArBadFebCont> LArFebErrorSummaryMaker::m_bfKey {this,"BFKey","LArBadFeb","Key of the BadFebContainer in the conditions store"}
private

Definition at line 86 of file LArFebErrorSummaryMaker.h.

◆ m_checkAllFeb

Gaudi::Property<bool> LArFebErrorSummaryMaker::m_checkAllFeb { this, "CheckAllFEB", true, "Check all FEBS ?" }
private

Definition at line 74 of file LArFebErrorSummaryMaker.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_eventInfoDecorKey

SG::WriteDecorHandleKey<xAOD::EventInfo> LArFebErrorSummaryMaker::m_eventInfoDecorKey {this,"EventInfoDecorKey","EventInfo.larFlags"}
private

Definition at line 89 of file LArFebErrorSummaryMaker.h.

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> LArFebErrorSummaryMaker::m_eventInfoKey {this,"EventInfoKey","EventInfo"}
private

Definition at line 88 of file LArFebErrorSummaryMaker.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_isAside

bool LArFebErrorSummaryMaker::m_isAside =false
private

Definition at line 67 of file LArFebErrorSummaryMaker.h.

◆ m_isCside

bool LArFebErrorSummaryMaker::m_isCside =false
private

Definition at line 68 of file LArFebErrorSummaryMaker.h.

◆ m_isEmb

bool LArFebErrorSummaryMaker::m_isEmb =false
private

Definition at line 64 of file LArFebErrorSummaryMaker.h.

◆ m_isEmec

bool LArFebErrorSummaryMaker::m_isEmec =false
private

Definition at line 65 of file LArFebErrorSummaryMaker.h.

◆ m_isEmPS

bool LArFebErrorSummaryMaker::m_isEmPS =false
private

Definition at line 66 of file LArFebErrorSummaryMaker.h.

◆ m_isFcal

bool LArFebErrorSummaryMaker::m_isFcal =false
private

Definition at line 63 of file LArFebErrorSummaryMaker.h.

◆ m_isHec

bool LArFebErrorSummaryMaker::m_isHec =false
private

Definition at line 62 of file LArFebErrorSummaryMaker.h.

◆ m_knownEvtId

Gaudi::Property<std::set<unsigned int> > LArFebErrorSummaryMaker::m_knownEvtId { this, "MaskFebEvtId", {}, "ignore these FEBs for EvtId" }
private

Definition at line 76 of file LArFebErrorSummaryMaker.h.

◆ m_knownSCACStatus

Gaudi::Property<std::set<unsigned int> > LArFebErrorSummaryMaker::m_knownSCACStatus { this, "MaskFebScacStatus", {}, "ignore these FEBs for ScacStatus" }
private

Definition at line 77 of file LArFebErrorSummaryMaker.h.

◆ m_knownZeroSample

Gaudi::Property<std::set<unsigned int> > LArFebErrorSummaryMaker::m_knownZeroSample { this, "MaskFebZeroSample", {}, "ignore these FEBs for ZeroSample" }
private

Definition at line 78 of file LArFebErrorSummaryMaker.h.

◆ m_minFebsInError

Gaudi::Property<int> LArFebErrorSummaryMaker::m_minFebsInError
private
Initial value:
{this,"minFebInError",1,
"Minimum number of FEBs in error to trigger EventInfo::LArError (1 by default/bulk, 4 in online/express"}

Minimum number of FEBs in error to trigger EventInfo::LArError Defined as 1 by default/bulk, 4 in online/express in CaloCellGetter (CaloRec package)

Definition at line 83 of file LArFebErrorSummaryMaker.h.

◆ m_missingFebsWarns

std::atomic<int> LArFebErrorSummaryMaker::m_missingFebsWarns {0}
mutableprivate

Definition at line 53 of file LArFebErrorSummaryMaker.h.

◆ m_mtx

std::mutex LArFebErrorSummaryMaker::m_mtx
mutableprivate

Definition at line 55 of file LArFebErrorSummaryMaker.h.

◆ m_onlineHelper

const LArOnlineID* LArFebErrorSummaryMaker::m_onlineHelper =nullptr
private

Definition at line 70 of file LArFebErrorSummaryMaker.h.

◆ m_partition

Gaudi::Property<std::string> LArFebErrorSummaryMaker::m_partition { this, "PartitionId", "", "Should contain DAQ partition (+ eventually the EventBuilder)" }
private

Definition at line 75 of file LArFebErrorSummaryMaker.h.

◆ m_readKey

SG::ReadHandleKey<LArFebHeaderContainer> LArFebErrorSummaryMaker::m_readKey {this,"ReadKey","LArFebHeader"}
private

Definition at line 87 of file LArFebErrorSummaryMaker.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_warnLimit

Gaudi::Property<int> LArFebErrorSummaryMaker::m_warnLimit { this, "warnLimit", 10, "Limit the number of warning messages for missing input" }
private

Definition at line 73 of file LArFebErrorSummaryMaker.h.

◆ m_writeKey

SG::WriteHandleKey<LArFebErrorSummary> LArFebErrorSummaryMaker::m_writeKey {this,"WriteKey","LArFebErrorSummary"}
private

Definition at line 90 of file LArFebErrorSummaryMaker.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
LArFebErrorSummary::CheckSum
@ CheckSum
Definition: LArFebErrorSummary.h:28
LArFebErrorSummaryMaker::m_isEmPS
bool m_isEmPS
Definition: LArFebErrorSummaryMaker.h:66
Identifier32
Definition: Identifier32.h:25
LArFebErrorSummary::set_feb_error
bool set_feb_error(unsigned int febid, uint16_t e)
Add another FEB error record, return true if added successfully.
Definition: LArFebErrorSummary.cxx:34
vtune_athena.format
format
Definition: vtune_athena.py:14
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
LArFebErrorSummaryMaker::m_missingFebsWarns
std::atomic< int > m_missingFebsWarns
Definition: LArFebErrorSummaryMaker.h:53
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArFebErrorSummaryMaker::m_bfKey
SG::ReadCondHandleKey< LArBadFebCont > m_bfKey
Definition: LArFebErrorSummaryMaker.h:86
LArBadXCont
Conditions-Data class holding LAr Bad Channel or Bad Feb information.
Definition: LArBadChannelCont.h:28
LArFebErrorSummaryMaker::m_writeKey
SG::WriteHandleKey< LArFebErrorSummary > m_writeKey
Definition: LArFebErrorSummaryMaker.h:90
LArFebErrorSummaryMaker::m_eventInfoDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: LArFebErrorSummaryMaker.h:89
AthCommonDataStore::renounce
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
Definition: AthCommonDataStore.h:380
skel.it
it
Definition: skel.GENtoEVGEN.py:396
LArBadFeb::deadReadout
bool deadReadout() const
FEB is not sending readout data, but the L1 trigger path is working.
Definition: LArBadFeb.h:33
LArFebErrorSummaryMaker::m_knownSCACStatus
Gaudi::Property< std::set< unsigned int > > m_knownSCACStatus
Definition: LArFebErrorSummaryMaker.h:77
LArOnlineID_Base::slot
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...
Definition: LArOnlineID_Base.cxx:1957
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
LArEventBitInfo::DATACORRUPTED
@ DATACORRUPTED
Definition: LArEventBitInfo.h:14
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
AthCommonMsg< Gaudi::Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
LArFebErrorSummaryMaker::m_checkAllFeb
Gaudi::Property< bool > m_checkAllFeb
Definition: LArFebErrorSummaryMaker.h:74
LArFebErrorSummaryMaker::masked
static bool masked(unsigned int hid, const std::set< unsigned int > &v_feb)
Definition: LArFebErrorSummaryMaker.cxx:318
LArFebErrorSummary::error_to_string
static std::string error_to_string(uint16_t error)
interpret the error in string
Definition: LArFebErrorSummary.cxx:58
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HWIdentifier
Definition: HWIdentifier.h:13
LArOnlineID_Base::barrel_ec
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
Definition: LArOnlineID_Base.cxx:1938
xAOD::EventInfo_v1::LAr
@ LAr
The LAr calorimeter.
Definition: EventInfo_v1.h:335
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition: Identifier32.h:44
LArFebErrorSummary::BadGain
@ BadGain
Definition: LArFebErrorSummary.h:28
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
xAOD::EventInfo_v1::Error
@ Error
The sub-detector issued an error.
Definition: EventInfo_v1.h:349
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
TRT::Hit::side
@ side
Definition: HitInfo.h:83
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
LArOnlineID_Base::isFCALchannel
bool isFCALchannel(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1653
LArFebErrorSummaryMaker::m_isEmb
bool m_isEmb
Definition: LArFebErrorSummaryMaker.h:64
LArFebErrorSummaryMaker::m_knownZeroSample
Gaudi::Property< std::set< unsigned int > > m_knownZeroSample
Definition: LArFebErrorSummaryMaker.h:78
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArFebErrorSummary::TypeMismatch
@ TypeMismatch
Definition: LArFebErrorSummary.h:28
LArOnlineID::isEMECchannel
bool isEMECchannel(const HWIdentifier id) const override final
Definition: LArOnlineID.cxx:763
AthCommonDataStore
Definition: AthCommonDataStore.h:52
LArOnlineID_Base::feb_range
id_range feb_range() const
Definition: LArOnlineID_Base.cxx:1916
LArFebErrorSummaryMaker::m_isEmec
bool m_isEmec
Definition: LArFebErrorSummaryMaker.h:65
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
LArFebErrorSummaryMaker::m_knownEvtId
Gaudi::Property< std::set< unsigned int > > m_knownEvtId
Definition: LArFebErrorSummaryMaker.h:76
LArBadFeb::deadAll
bool deadAll() const
FEB is completely missing, e.g. powered off.
Definition: LArBadFeb.h:30
LArFebErrorSummary::ScacStatus
@ ScacStatus
Definition: LArFebErrorSummary.h:27
LArFebErrorSummaryMaker::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: LArFebErrorSummaryMaker.h:88
LArOnlineID_Base::pos_neg
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...
Definition: LArOnlineID_Base.cxx:1950
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArBadFeb::ignoreErrors
unsigned int ignoreErrors() const
Definition: LArBadFeb.h:65
LArBadFeb
Definition: LArBadFeb.h:10
LArFebErrorSummary::EmptyDataBlock
@ EmptyDataBlock
Definition: LArFebErrorSummary.h:28
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
LArFebErrorSummaryMaker::m_warnLimit
Gaudi::Property< int > m_warnLimit
Definition: LArFebErrorSummaryMaker.h:73
LArFebErrorSummary::EVTID
@ EVTID
Definition: LArFebErrorSummary.h:27
LArBadFeb::inError
bool inError() const
FEB has readout errors, cannot be used.
Definition: LArBadFeb.h:36
ReadBadBitsFromCool.warn
warn
Definition: ReadBadBitsFromCool.py:43
LArFebErrorSummaryMaker::m_onlineHelper
const LArOnlineID * m_onlineHelper
Definition: LArFebErrorSummaryMaker.h:70
LArFebErrorSummaryMaker::m_minFebsInError
Gaudi::Property< int > m_minFebsInError
Minimum number of FEBs in error to trigger EventInfo::LArError Defined as 1 by default/bulk,...
Definition: LArFebErrorSummaryMaker.h:83
LArOnlineID_Base::isEMBchannel
bool isEMBchannel(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1648
LArBadFeb::deactivatedInOKS
bool deactivatedInOKS() const
Deactivated in OKS.
Definition: LArBadFeb.h:39
LArFebErrorSummaryMaker::m_isFcal
bool m_isFcal
Definition: LArFebErrorSummaryMaker.h:63
LArFebErrorSummaryMaker::m_isHec
bool m_isHec
Definition: LArFebErrorSummaryMaker.h:62
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
LArOnlineID_Base::feedthrough
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
Definition: LArOnlineID_Base.cxx:1944
LArFebErrorSummaryMaker::m_all_febs
std::set< unsigned int > m_all_febs
Definition: LArFebErrorSummaryMaker.h:61
a
TList * a
Definition: liststreamerinfos.cxx:10
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
h
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
LArFebErrorSummary::N_LArFebErrorType
@ N_LArFebErrorType
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::Parity
@ Parity
Definition: LArFebErrorSummary.h:27
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArFebErrorSummaryMaker::m_readKey
SG::ReadHandleKey< LArFebHeaderContainer > m_readKey
Definition: LArFebErrorSummaryMaker.h:87
LArFebErrorSummaryMaker::m_mtx
std::mutex m_mtx
Definition: LArFebErrorSummaryMaker.h:55
LArOnlineID_Base::isPS
bool isPS(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1677
LArFebErrorSummaryMaker::m_partition
Gaudi::Property< std::string > m_partition
Definition: LArFebErrorSummaryMaker.h:75
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
LArFebErrorSummaryMaker::m_isCside
bool m_isCside
Definition: LArFebErrorSummaryMaker.h:68
LArFebErrorSummary::SampleHeader
@ SampleHeader
Definition: LArFebErrorSummary.h:27
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
LArFebErrorSummary::ScaOutOfRange
@ ScaOutOfRange
Definition: LArFebErrorSummary.h:27
LArFebErrorSummary::BCID
@ BCID
Definition: LArFebErrorSummary.h:27
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
LArOnlineID::isHECchannel
bool isHECchannel(const HWIdentifier id) const override final
Definition: LArOnlineID.cxx:723
LArOnlineID_Base::channel_name
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
Definition: LArOnlineID_Base.cxx:219
LArFebErrorSummary::NumOfSamples
@ NumOfSamples
Definition: LArFebErrorSummary.h:28
length
double length(const pvec &v)
Definition: FPGATrackSimLLPDoubletHoughTransformTool.cxx:26
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
LArFebErrorSummaryMaker::m_isAside
bool m_isAside
Definition: LArFebErrorSummaryMaker.h:67
fitman.k
k
Definition: fitman.py:528
LArFebErrorSummary::MissingHeader
@ MissingHeader
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::GainMismatch
@ GainMismatch
Definition: LArFebErrorSummary.h:28
ServiceHandle< ICondSvc >