![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
26 ISvcLocator* pSvcLocator)
28 , m_fitOverflow(false)
56 ATH_MSG_INFO(
"TileRawChannelBuilder list is empty - will not do anything");
74 return StatusCode::SUCCESS;
82 const EventContext& ctx = Gaudi::Hive::currentContext();
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);
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