9#include "GaudiKernel/SmartDataPtr.h"
44 return StatusCode::FAILURE;
48 return StatusCode::FAILURE;
52 return StatusCode::FAILURE;
60 return StatusCode::SUCCESS;
67 StatusCode
sc=
evtStore()->retrieve(thisEventInfo);
68 unsigned eventnumber=0;
69 if (
sc!=StatusCode::SUCCESS)
83 int nDigits=digit_cont->
size();
85 ATH_MSG_DEBUG (
"Event " << eventnumber <<
": Found " << nDigits <<
" Digits in container" );
88 ATH_MSG_ERROR (
"Event " << eventnumber <<
": Size of digit container changed! Now: " << nDigits <<
" Previous Event: " <<
m_nDigits );
94 unsigned nDoubleDigits=0;
95 for(; it!=it_e; ++it){
103 else if (barrel_ec==1)
120 ATH_MSG_ERROR (
"Event " << eventnumber <<
" Found duplicated cell! Location: (" << bc <<
"/" << pn <<
"/FT="
121 << FT <<
"/Slot=" << slot <<
"/Channel=" << channel <<
")" );
128 ATH_MSG_ERROR (
"Found " << nDoubleDigits <<
" duplicated digits in event " << eventnumber );
131 return StatusCode::SUCCESS;
140 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Header file for AthHistogramAlgorithm.
Helper class for offline cell identifiers.
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
const LArEM_ID * em_idHelper() const
access to EM idHelper
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
const LArOnlineID * m_onlineHelper
FindDuplicatedLArDigits(const std::string &name, ISvcLocator *pSvcLocator)
const LArFCAL_ID * m_fcalId
const LArHEC_ID * m_hecId
~FindDuplicatedLArDigits()
std::bitset< 200000 > m_bitpattern
This is a "hash" representation of an Identifier.
Container class for LArDigit.
uint64_t eventNumber() const
The current event's event number.
EventInfo_v1 EventInfo
Definition of the latest event info version.