22 #include "GaudiKernel/IInterface.h" 
   23 #include "GaudiKernel/MsgStream.h" 
   40   {0,  4,  8,  12,  16,  20,  24,  28,  32,  36,  40,  44,  48,  52,  56,  60,
 
   41    3,  7, 11,  15,  19,  23,  27,  31,  35,  39,  43,  47,  51,  55,  59,  63,
 
   42    1,  5,  9,  13,  17,  21,  25,  29,  33,  37,  41,  45,  49,  53,  57,  61,
 
   43    2,  6, 10,  14,  18,  22,  26,  30,  34,  38,  42,  46,  50,  54,  58,  62 };
 
   52     declareInterface<ZdcRecChannelToolV2>(
this);
 
   54     declareProperty(
"DeltaPeak", 
m_delta = 5,
"Minimum difference between min and max to be considered a signal");
 
   67   if ( inc.type() == IncidentType::EndEvent) {
 
   83     const ZdcID* zdcId = 
nullptr;
 
   85         msg(MSG::ERROR) << 
"execute: Could not retrieve ZdcID object from the detector store" << 
endmsg;
 
   86         return StatusCode::FAILURE;
 
   94     return StatusCode::SUCCESS;
 
   97     CHECK(incidentSvc.retrieve());
 
   98     incidentSvc->addListener(
this, IncidentType::EndEvent);
 
  107     return StatusCode::SUCCESS;
 
  115   typedef std::map<uint32_t,xAOD::ZdcModule*> hashmapType;
 
  116   hashmapType digits_map;
 
  129       uint32_t slinkChannel = asic*16 + pin;
 
  148       ATH_MSG_DEBUG( 
"Trying to set data of " << std::hex << chan_hash << std::dec << 
" side=" << 
side << 
" mod=" << 
mod << 
" type=" << 
type << 
" channel=" << 
channel << 
" gain=" << 
gain << 
" delay=" << 
delay);
 
  151       if (
iter == digits_map.end())
 
  155       ATH_MSG_DEBUG(
"new module for " << chan_hash << std::hex << 
" new_mod=" << new_mod);
 
  165       digits_map.insert(std::pair<uint32_t,xAOD::ZdcModule*>(chan_hash,new_mod));
 
  166       iter = digits_map.find(chan_hash);
 
  169       if (
iter != digits_map.end())
 
  171       ATH_MSG_DEBUG(
"adding data to " << std::hex << (*iter).first << 
" p=" << (*iter).second << 
" from tt=" << 
tt << 
" zdcModule=" << (*iter).second->zdcModule());
 
  180       ATH_MSG_DEBUG(
"added data to " << std::hex << (*iter).first << 
" p=" << (*iter).second << 
" from tt=" << 
tt);
 
  187   for (
int iside = 0;iside<2;iside++)