Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
49 NTupleFilePtr file1(
ntupleSvc(),
"/NTUPLES/FILE1");
52 return StatusCode::FAILURE;
54 NTuplePtr
nt(
ntupleSvc(),
"/NTUPLES/FILE1/LARDIGITS");
56 nt=
ntupleSvc()->book(
"/NTUPLES/FILE1/LARDIGITS",CLID_ColumnWiseTuple,
"LArDigits");
60 return StatusCode::FAILURE;
80 ATH_MSG_INFO(
"======== ReadLArDigits initialize successfully ========" );
81 return StatusCode::SUCCESS;
90 const EventContext& ctx = Gaudi::Hive::currentContext();
100 return StatusCode::FAILURE;
106 std::sort(larDigitCont.
begin(),larDigitCont.
end(),sortDigits);
108 unsigned cellCounter=0;
110 if (!larDigitCont.
empty())
116 const std::vector<short>& vSamples=
digit->samples();
126 m_eta[cellCounter]=0;
127 m_phi[cellCounter]=0;
132 m_eta[cellCounter]=-999;
133 m_phi[cellCounter]=-999;
149 if (
m_eta[cellCounter]==-999 &&
m_phi[cellCounter]==-999 &&
m_layer[cellCounter]==-999)
150 m_outfile <<
"Cell l/e/p= <ILLEGAL IDENTIFIER> ";
153 <<
"/" <<
m_phi[cellCounter] <<
" ";
157 << std::dec <<
" Ch= " <<
m_channel[cellCounter] <<
" ";
169 return StatusCode::SUCCESS;
177 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
int phi(const Identifier id) const
return phi according to :
CTB: code to read digits.
const LArEM_ID * em_idHelper() const
access to EM idHelper
ReadLArDigits(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::vector< short > & samples() const
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
NTuple::Array< long > m_channel
value_type get_compact() const
Get the compact id.
int sampling(const Identifier id) const
return sampling according to :
NTuple::Item< long > m_cellIndex
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
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.
NTuple::Array< long > m_layer
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.
::StatusCode StatusCode
StatusCode definition for legacy code.
NTuple::Array< long > m_slot
const T * front() const
Access the first element in the collection as an rvalue.
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
Helper class for offline cell identifiers.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
NTuple::Tuple * m_ntuplePtr
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
NTuple::Array< long > m_barrel_ec
NTuple::Array< long > m_eta
StatusCode initialize(bool used=true)
SG::ReadHandleKey< LArDigitContainer > m_containerKey
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
NTuple::Array< long > m_pos_neg
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
NTuple::Item< long > m_Nsamples
NTuple::Matrix< long > m_samples
const LArOnlineID * m_onlineHelper
NTuple::Array< long > m_phi
Container class for LArDigit.
SortDigits(const LArOnlineID *onlineHelper)
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const LArOnlineID * m_onlineHelper
Handle class for reading from StoreGate.
NTuple::Array< long > m_gain
bool is_lar_em(Identifier id) const
Exception class for LAr Identifiers.
bool empty() const noexcept
Returns true if the collection is empty.
NTuple::Array< long > m_FT
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.