30 ATH_MSG_INFO (
"======== initialize DumpLArDigits ========" );
39 return StatusCode::FAILURE;
46 ATH_MSG_INFO (
"======== test-stuff initialize successfully ========" );
47 return StatusCode::SUCCESS;
56 StatusCode
sc=
evtStore()->retrieve(thisEventInfo);
57 if (
sc!=StatusCode::SUCCESS)
61 std::cout <<
"*** Event #" << std::dec << thisEventInfo->
runNumber() <<
"/" << thisEventInfo->
eventNumber() << std::endl;
75 return StatusCode::FAILURE;
81 typedef std::vector< const LArDigit* > LArDigitVector;
83 LArDigitVector digitVector;
87 for(; it!=it_e; ++it){
89 digitVector.push_back(*it);
94 std::cout <<
"Event " <<
m_count <<
" contains " <<
m_chan <<
" digits\n";
97 std::sort(digitVector.begin(),digitVector.end(),aSort);
98 for (
const LArDigit* digit : digitVector)
110 if (!cabling->isOnlineConnected(chid))
111 {std::cout <<
"disconnected: \n";
115 const Identifier id=cabling->cnvToIdentifier(chid);
119 layer=
m_emId->sampling(
id);
121 if(!
m_emId->is_lar_em(
id))
122 {std::cout <<
"Is not EM! \n" << std::endl;
123 m_outfile <<
"Is not EM! \n" << std::endl;
127 {std::cout <<
"Endcap ";
131 {std::cout <<
"Barrel ";
134 std::cout <<
" l/e/p= " << layer <<
"/" <<
eta <<
"/" <<
phi <<
":";
135 for(
unsigned int i=0;i<digit->samples().size();i++)
136 std::cout <<
" " << digit->samples()[i];
137 std::cout <<
" G=" << digit->gain() << std::endl;
140 for(
unsigned int i=0;i<digit->samples().size();i++)
142 m_outfile <<
" G=" << digit->gain() << std::endl;
145 std::cout <<
"Event " <<
m_count <<
" contains " <<
m_chan <<
" (" <<digitVector.size() <<
") channels\n";
146 return StatusCode::SUCCESS;
152 ATH_MSG_INFO (
"======== finalize DumpLArDigit ========" );
153 return StatusCode::SUCCESS;
157{
return a->channelID() < b->channelID();}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Helper class for offline cell identifiers.
const LArEM_ID * em_idHelper() const
access to EM idHelper
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
bool operator()(const LArDigit *a, const LArDigit *b)
DumpLArDigits(const std::string &name, ISvcLocator *pSvcLocator)
const LArOnlineID * m_onlineHelper
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
value_type get_compact() const
Get the compact id.
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Container class for LArDigit.
Liquid Argon digit base class.
uint32_t runNumber() const
The current event's run number.
uint64_t eventNumber() const
The current event's event number.
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
EventInfo_v1 EventInfo
Definition of the latest event info version.