26 ISvcLocator* pSvcLocator)
57 ATH_MSG_INFO(
"TileRawChannelBuilder list is empty - will not do anything");
75 return StatusCode::SUCCESS;
87 if (!digitsContaner.
isValid()) {
91 return StatusCode::SUCCESS;
98 ATH_CHECK( rawChannelBuilder->createContainer(ctx) );
99 rawChannelBuilder->resetDrawer();
105 rawChannelBuilder->resetOverflows();
115 ATH_CHECK( rawChannelBuilder->build(digitsCollection, ctx) );
127 ATH_CHECK( rawChannelBuilder->commitContainer(ctx) );
132 return StatusCode::SUCCESS;
142 return StatusCode::SUCCESS;
149 Overflows_t overflows = rawChannelBuilder->getOverflowedChannels();
151 for (std::pair<TileRawChannel*, const TileDigits*>& overflow : overflows) {
163 std::vector<double> digits = pDigits->
get_digits();
164 for (
size_t ii = 0; ii<digits.size(); ii++) {
175 if ( !fitOK || nSatSamples > 2) {
182 float quality = 10000. * ( (nSatSamples) ? nSatSamples : 9);
183 if (fittedRwCh->
quality() > 99999.9) quality += 100000.;
184 rwCh->
insert(0.0, 0.0, quality);
188 float pedestal = (rwCh->
pedestal() < 29500.) ? (29400.)
191 " change ped from " << rwCh->
pedestal() <<
" to " << pedestal);
200 fittedRwCh->
quality()*(1./400.));
203 float pedestal = (rwCh->
pedestal() < 29500.) ? fittedRwCh->
pedestal() + 25000.
206 " change ped from " << rwCh->
pedestal() <<
" to " << pedestal);
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Helpers for checking error return status codes and reporting errors.
Handle class for reading from StoreGate.
std::vector< std::pair< TileRawChannel *, const TileDigits * > > Overflows_t
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::vector< double > get_digits(void) const
float m_overflowReplacePedestalCut
void fitOverflowedChannels(const EventContext &ctx)
ToolHandleArray< TileRawChannelBuilder > m_tileRawChannelBuilderList
Vector of builder algtools.
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
virtual StatusCode execute(const EventContext &ctx) override
Execute.
virtual ~TileRawChannelMaker()
Destructor.
TileRawChannelMaker(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
float m_overflowReplaceTimeCut
virtual StatusCode finalize() override
Finalize.
const TileInfo * m_tileInfo
float m_overflowReplaceChi2Cut
ToolHandle< TileRawChannelBuilder > m_tileRawChannelBuilderFitOverflow
virtual StatusCode initialize() override
Initialize algorithm.
float pedestal(void) const
float time(int ind=0) const
float quality(int ind=0) const
void setPedestal(float ped)
int insert(float amplitude, float time, float quality)
float amplitude(int ind=0) const