|
ATLAS Offline Software
|
Go to the documentation of this file.
27 std::vector<std::string> modules;
38 std::ostringstream
os;
53 return StatusCode::SUCCESS;
63 float amplitude[Tile::MAX_CHAN][Tile::MAX_GAIN];
64 float time[Tile::MAX_CHAN][Tile::MAX_GAIN];
65 float pedestal[Tile::MAX_CHAN][Tile::MAX_GAIN];
76 std::vector<float>
times;
77 std::vector<float> amplitudes;
81 IdentifierHash
hash =
static_cast<IdentifierHash
>(rchHashFunc(
fragID));
83 if (!rawChannelCollection || rawChannelCollection->
empty())
continue;
86 hash =
static_cast<IdentifierHash
>(digitsHashFunc(
fragID));
88 if (!digitsCollection || digitsCollection->
empty())
continue;
90 memset(amplitude, 0,
sizeof(amplitude));
91 memset(time, 0,
sizeof(time));
92 memset(pedestal, 0,
sizeof(pedestal));
96 HWIdentifier adc_id = rch->adc_HWID();
103 float ped = rch->pedestal();
114 for (
const TileDigits* tile_digits : *digitsCollection) {
116 adc_id = tile_digits->adc_HWID();
120 std::vector<float> digits = tile_digits->samples();
139 for (
double digit : digits) {
152 fill(
"TileTBPulseMonExecuteTime",
timer);
154 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
std::map< std::string, int > m_pulseGroups
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
#define ATH_MSG_VERBOSE(x)
Hash table for Tile fragments (==drawers ==collections in StoreGate)
HWIdentifier adc_HWID(void) const
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
def timer(name, disabled=False)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
std::map< std::string, int > m_pulseProfileGroups
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
int ItrigSample() const
The sample at which the pulse should ideally peak.
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
const TileHWID * m_tileHWID
Generic monitoring tool for athena components.
::StatusCode StatusCode
StatusCode definition for legacy code.
const T * front() const
Access the first element in the collection as an rvalue.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
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?
const TileInfo * m_tileInfo
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
std::string to_string(const DetectorType &type)
const TileFragHash & hashFunc() const
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
virtual StatusCode initialize() override
initialize
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
static std::string getDrawerString(unsigned int ros, unsigned int drawer)
Return the drawer name, e.g.
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
virtual StatusCode initialize() override
initialize
Gaudi::Property< std::vector< int > > m_fragIDs
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Handle class for reading from StoreGate.
Gaudi::Property< std::string > m_tileInfoName
bool empty() const noexcept
Returns true if the collection is empty.