|
ATLAS Offline Software
|
Go to the documentation of this file.
36 #include "GaudiKernel/ISvcLocator.h"
70 ATH_MSG_INFO(
"TileMuonReceiverReadCnt initialization completed" );
72 return StatusCode::SUCCESS;
80 if (muonReceiverContainer.
isValid()) {
94 int id = muonReceiverObj->GetID() & 0xFFF;
95 ATH_MSG_INFO(
"+-- Identifier of module: 0x" <<MSG::hex<<
id <<MSG::dec<<
" ros:" << (
id>>8) <<
" module:"<< (
id&0xFF));
98 const std::vector<float> &
thresh = muonReceiverObj->GetThresholds();
105 const std::vector<float> & ene = muonReceiverObj->GetEne();
107 ATH_MSG_INFO(
"--- energy vector size : " << ene.size() <<
" value: " << ene[0] <<
" " << ene[1] );
112 const std::vector<float> &
time = muonReceiverObj->GetTime();
119 const std::vector<bool> & decision = muonReceiverObj->GetDecision();
120 if (decision.size()>=4)
121 ATH_MSG_INFO(
"--- decision vector size : " << decision.size()
122 <<
" value: " << decision[0] <<
" " << decision[1] <<
" " << decision[2] <<
" " << decision[3] );
124 ATH_MSG_DEBUG(
"--- decision vector size : " << decision.size() );
133 const float TMDB_AMPLITUDE_FACTOR = 1.0;
140 int frag_id = rawChannelCollection->identify();
142 int drawer=(frag_id&0xFF);
144 HWIdentifier hwid = rawChannel->adc_HWID() ;
150 <<
" E[MeV]: " << lround(rawChannel->amplitude()*TMDB_AMPLITUDE_FACTOR));
158 if (digitsContainer.
isValid()) {
164 for (
const TileDigits* tile_digits : *digitsCollection) {
166 int frag_id = digitsCollection->identify();
168 int drawer=(frag_id&0xFF);
170 HWIdentifier hwid = tile_digits->adc_HWID() ;
174 const std::vector<float> digits = tile_digits->samples();
175 for (
uint ismp=0;ismp<digits.size();ismp++)
176 ATH_MSG_INFO(
"----- sample " << ismp <<
": " << digits.at(ismp));
184 ATH_MSG_INFO(
"TileMuonReceiverReadCnt execution completed successfully" );
186 return StatusCode::SUCCESS;
193 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
TileMuonReceiverReadCnt(const std::string &name, ISvcLocator *pSvcLocator)
const TileHWID * m_tileHWID
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.
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
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?
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Helpers for checking error return status codes and reporting errors.
SG::ReadHandleKey< TileMuonReceiverContainer > m_muonReceiverContainerKey
def time(flags, cells_name, *args, **kw)
virtual ~TileMuonReceiverReadCnt()
std::string to_string(const HWIdentifier &id, int level=0) const
extract all fields from HW identifier HWIdentifier get_all_fields ( const HWIdentifier & id,...
Handle class for reading from StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.