1#ifndef EMCRAWDATAPROVIDER_H
2#define EMCRAWDATAPROVIDER_H
6#include "GaudiKernel/IIncidentListener.h"
20 EmcRawDataProvider(
const char* name, uint32_t adclow=0,uint32_t tlow=0,uint32_t thigh=60);
21 EmcRawDataProvider(
const char* name, std::vector<uint32_t>& hot,std::vector<uint32_t>& dead,
22 uint32_t elow=0,uint32_t tlow=0, uint32_t thigh=60);
25 void handle(
const Incident&);
28 virtual StatusCode
initialize(
bool mode=0, ISvcLocator* svcLoc=0, IMessageSvc* pMsg=0);
44 bool isGoodEmcDigi(uint32_t control, uint32_t
id, uint32_t measure, uint32_t adc, uint32_t tdc);
54 void setHotCrystals(
const std::vector<uint32_t>& idVec) { m_hotCrystals = idVec; };
56 void setDeadCrystals(
const std::vector<uint32_t>& idVec) { m_deadCrystals = idVec; };
71 uint32_t m_adcLowThreshold;
72 uint32_t m_tLowThreshold;
73 uint32_t m_tHighThreshold;
74 std::vector<uint32_t> m_hotCrystals;
75 std::vector<uint32_t> m_deadCrystals;
ObjectVector< EmcDigi > EmcDigiCol
bool removeDeadCrystal(const uint32_t id)
virtual ~EmcRawDataProvider()
uint32_t getTdcLowThreshold()
void setTLowThreshold(const uint32_t low)
bool isGoodEmcDigi(uint32_t control, uint32_t id, uint32_t measure, uint32_t adc, uint32_t tdc)
bool removeHotCrystal(const uint32_t id)
void doCalib(Identifier &id, uint32_t &measure, uint32_t &adc)
std::vector< uint32_t > & getDeadCrystals()
void setDeadCrystals(const std::vector< uint32_t > &idVec)
std::vector< uint32_t > & getHotCrystals()
void setHotCrystals(const std::vector< uint32_t > &idVec)
EmcDigiCol & getEmcDigiVec(uint32_t control)
void setELowThreshold(const uint32_t low)
void addDeadCrystal(const uint32_t id)
void addHotCrystal(const uint32_t id)
void handle(const Incident &)
virtual StatusCode initialize(bool mode=0, ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
uint32_t getTdcHighThreshold()
uint32_t getAdcLowThreshold()
void setTHighThreshold(const uint32_t high)