![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
44 , m_tileDspThreshold(
"TileCondToolDspThreshold")
69 return StatusCode::SUCCESS;
93 for (; collItr != collEnd; ++collItr) {
96 auto outputDigitsCollection = std::make_unique<ConstDataVector<TileDigitsCollection> >
99 int fragId = digitsCollection->
identify();
102 for (
const TileDigits* tile_digits : *digitsCollection) {
109 const std::vector<float>& digits = tile_digits->samples();
110 auto minMaxDigits = std::minmax_element(digits.begin(), digits.end());
111 float minDigit = *minMaxDigits.first;
112 float maxDigit = *minMaxDigits.second;
114 if (maxDigit - minDigit > dspThreshold) {
115 outputDigitsCollection->push_back(tile_digits);
125 return StatusCode::SUCCESS;
133 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ToolHandle< ITileCondToolDspThreshold > m_tileDspThreshold
SG::ReadHandleKey< TileDigitsContainer > m_inputDigitsContainerKey
virtual ~TileDigitsThresholdFilter()
StatusCode finalize()
finalize method
TileDigitsThresholdFilter(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< TileDigitsContainer > m_outputDigitsContainerKey
const std::string & key() const
Return the StoreGate ID for the referenced object.
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
void set_bsflags(uint32_t bsflags)
Handle class for recording to StoreGate.
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
const TileHWID * m_tileHWID
::StatusCode StatusCode
StatusCode definition for legacy code.
uint32_t get_bsflags() const
StatusCode execute()
execute method
const_iterator end() const
return const_iterator for end of container
#define CHECK(...)
Evaluate an expression and check for errors.
const_iterator begin() const
return const_iterator for first entry
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?
IdentifierHash hashId() const
hashId of the pointed-to element
Helpers for checking error return status codes and reporting errors.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Handle class for reading from StoreGate.
static unsigned int getDrawerIdxFromFragId(unsigned int fragId)
Returns a drawer hash from fragId This function assumes drawer context (i.e.
StatusCode initialize()
initialize method