|
ATLAS Offline Software
|
Go to the documentation of this file.
26 ISvcLocator* pSvcLocator)
28 , m_fitOverflow(false)
57 ATH_MSG_INFO(
"TileRawChannelBuilder list is empty - will not do anything");
75 return StatusCode::SUCCESS;
83 const EventContext& ctx = Gaudi::Hive::currentContext();
88 if (!digitsContaner.
isValid()) {
92 return StatusCode::SUCCESS;
99 ATH_CHECK( rawChannelBuilder->createContainer(ctx) );
100 rawChannelBuilder->resetDrawer();
106 rawChannelBuilder->resetOverflows();
116 ATH_CHECK( rawChannelBuilder->build(digitsCollection, ctx) );
128 ATH_CHECK( rawChannelBuilder->commitContainer(ctx) );
133 return StatusCode::SUCCESS;
143 return StatusCode::SUCCESS;
150 Overflows_t overflows = rawChannelBuilder->getOverflowedChannels();
152 for (std::pair<TileRawChannel*, const TileDigits*>& overflow : overflows) {
164 std::vector<double> digits = pDigits->
get_digits();
165 for (
size_t ii = 0; ii<digits.size(); ii++) {
176 if ( !fitOK || nSatSamples > 2) {
183 float quality = 10000. * ( (nSatSamples) ? nSatSamples : 9);
184 if (fittedRwCh->
quality() > 99999.9) quality += 100000.;
185 rwCh->
insert(0.0, 0.0, quality);
189 float pedestal = (rwCh->
pedestal() < 29500.) ? (29400.)
192 " change ped from " << rwCh->
pedestal() <<
" to " << pedestal);
201 fittedRwCh->
quality()*(1./400.));
204 float pedestal = (rwCh->
pedestal() < 29500.) ? fittedRwCh->
pedestal() + 25000.
207 " change ped from " << rwCh->
pedestal() <<
" to " << pedestal);
def retrieve(aClass, aKey=None)
void fitOverflowedChannels(const EventContext &ctx)
float m_overflowReplacePedestalCut
int insert(float amplitude, float time, float quality)
float m_overflowReplaceChi2Cut
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
float pedestal(void) const
virtual StatusCode execute() override
Execute.
void setPedestal(float ped)
ToolHandleArray< TileRawChannelBuilder > m_tileRawChannelBuilderList
Vector of builder algtools.
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual ~TileRawChannelMaker()
Destructor.
float time(int ind=0) const
std::vector< std::pair< TileRawChannel *, const TileDigits * > > Overflows_t
TileRawChannelMaker(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
float quality(int ind=0) const
ToolHandle< TileRawChannelBuilder > m_tileRawChannelBuilderFitOverflow
std::vector< double > get_digits(void) const
float amplitude(int ind=0) const
float m_overflowReplaceTimeCut
::StatusCode StatusCode
StatusCode definition for legacy code.
const TileInfo * m_tileInfo
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode initialize() override
Initialize algorithm.
virtual StatusCode finalize() override
Finalize.
Helpers for checking error return status codes and reporting errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
int ADCmax() const
Returns the maximum ADC output (10 bits --> 1023)
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey