Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
30 ATH_MSG_INFO (
"======== initialize DumpLArDigits ========" );
39 return StatusCode::FAILURE;
46 ATH_MSG_INFO (
"======== test-stuff initialize successfully ========" );
47 return StatusCode::SUCCESS;
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);
110 if (!
cabling->isOnlineConnected(chid))
111 {std::cout <<
"disconnected: \n";
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 <<
":";
136 std::cout <<
" " <<
digit->samples()[
i];
137 std::cout <<
" 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();}
def retrieve(aClass, aKey=None)
bool operator()(const LArDigit *a, const LArDigit *b)
int phi(const Identifier id) const
return phi according to :
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
uint64_t eventNumber() const
The current event's event number.
const LArEM_ID * em_idHelper() const
access to EM idHelper
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
value_type get_compact() const
Get the compact id.
int sampling(const Identifier id) const
return sampling according to :
const std::string & key() const
Return the StoreGate ID for the referenced object.
value_type get_compact() const
Get the compact id.
uint32_t runNumber() const
The current event's run number.
int eta(const Identifier id) const
return eta according to :
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
Liquid Argon digit base class.
int channelInSlotMax(const HWIdentifier Id) const
Return the Maximum channel number of a given feb slot.
::StatusCode StatusCode
StatusCode definition for legacy code.
const LArOnlineID * m_onlineHelper
Helper class for offline cell identifiers.
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
StatusCode initialize(bool used=true)
Class describing the basic event information.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
#define ATH_MSG_WARNING(x)
Container class for LArDigit.
bool isEmEndcapOnline(const HWIdentifier id) const
bool is_lar_em(Identifier id) const
bool isEmBarrelOnline(const HWIdentifier id) const
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
DumpLArDigits(const std::string &name, ISvcLocator *pSvcLocator)