|
ATLAS Offline Software
|
Go to the documentation of this file.
18 m_thistSvc (
"THistSvc",
name)
32 ATH_MSG_INFO (
"======== initialize DumpLArRawChanels ========" );
42 return StatusCode::FAILURE;
55 m_tree=
new TTree(
"RC",
"LArRawChannels");
56 const std::string ntupStream=
"/"+
m_ntup+
"/LArRawChanenls";
69 ATH_MSG_INFO (
"======== test-stuff initialize successfully ========" );
70 return StatusCode::SUCCESS;
80 if (
sc!=StatusCode::SUCCESS)
84 if (
m_toLog) std::cout <<
"*** Event #" << std::dec << thisEventInfo->
runNumber() <<
"/" << thisEventInfo->
eventNumber() << std::endl;
92 return StatusCode::FAILURE;
100 ATH_MSG_INFO (
"Retrieved LArRawChannelContainer from StoreGate! key=" <<
m_key );
105 typedef std::vector< const LArRawChannel* > LArRawChannelVector;
107 LArRawChannelVector channelVector;
108 LArRawChannelContainer::const_iterator it_chan_coll = channel_cont->begin();
109 LArRawChannelContainer::const_iterator it_chan_coll_end = channel_cont->end();
111 for( ; it_chan_coll!=it_chan_coll_end;++it_chan_coll) {
113 channelVector.push_back(&(*it_chan_coll));
119 std::sort(channelVector.begin(),channelVector.end(),aSort);
128 if (!
cabling->isOnlineConnected(chid)) {
129 if (
m_toLog) std::cout <<
" disconnected" << std::endl;
140 if (
m_toLog) std::cout <<
" Endcap l/e/p= " <<
layer <<
"/" <<
eta <<
"/" <<
phi <<
":";
144 if (
m_toLog) std::cout <<
" Barrel l/e/p= " <<
layer <<
"/" <<
eta <<
"/" <<
phi <<
":";
149 if (
m_toLog) std::cout <<
" (is not EM)";
163 if (
m_toLog) std::cout <<
" E= " <<
chan->energy() <<
" t= " <<
Time <<
" Q= " <<
chan->quality() <<
" P=0x"
164 << std::hex <<
chan->provenance() << std::dec <<
" G=" <<
chan->gain() << std::endl;
167 << std::hex <<
chan->provenance() << std::dec <<
" G=" <<
chan->gain() << std::endl;
179 std::cout <<
"Event " <<
m_count <<
" contains " <<
m_chan <<
" (" <<channelVector.size() <<
") channels\n";
180 return StatusCode::SUCCESS;
186 ATH_MSG_INFO (
"======== finalize DumpLArRawChannel ========" );
187 return StatusCode::SUCCESS;
191 {
return a->channelID() <
b->channelID();}
def retrieve(aClass, aKey=None)
int phi(const Identifier id) const
return phi according to :
ServiceHandle< ITHistSvc > m_thistSvc
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
DumpLArRawChannels(const std::string &name, ISvcLocator *pSvcLocator)
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.
int sampling(const Identifier id) const
return sampling according to :
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.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Liquid Argon ROD output object base class.
::StatusCode StatusCode
StatusCode definition for legacy code.
Helper class for offline cell identifiers.
const LArOnlineID * m_onlineHelper
bool operator()(const LArRawChannel *a, const LArRawChannel *b)
StatusCode initialize(bool used=true)
Class describing the basic event information.
#define ATH_MSG_WARNING(x)
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
bool is_lar_em(Identifier id) const
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
Container for LArRawChannel (IDC using LArRawChannelCollection)